Attachment 'gvid.py'

Download

   1 # -*- coding: iso-8859-1 -*-
   2 
   3 def execute(macro, text):
   4     if text.find('http://')> -1:
   5         url = text
   6     else:
   7         url = 'http://video.google.com/googleplayer.swf?docId=%s' % text
   8     html = '''
   9 <embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="%(gvidlink)s&hl=en" flashvars=""> </embed>
  10     ''' % {"gvidlink": url}
  11     return html

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2007-01-27 22:20:44, 0.4 KB) [[attachment:gvid.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.