Ajout de scripts manquants
darcs-hash:20090610100826-69ccb-32281005e3cc3d598d4b10a440fe9c29826e32a0.gz
This commit is contained in:
parent
4f69918eba
commit
c1d5e45ce1
3 changed files with 294 additions and 0 deletions
13
wiki/macro/BackgroundImage.py
Normal file
13
wiki/macro/BackgroundImage.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
def execute(macro, args):
|
||||
|
||||
argv = args.split(',')
|
||||
pic = argv[0].strip()
|
||||
|
||||
html_fmt = '''
|
||||
<div style="background: transparent url('%s') center left no-repeat;">
|
||||
%s
|
||||
</div>
|
||||
'''
|
||||
pic0 = AttachFile.getAttachUrl(pn, pic0, self.request)
|
||||
pic0 = wikiutil.escape(pic0)
|
Loading…
Add table
Add a link
Reference in a new issue