Attachment 'EmbedObject.py.diff'
Download 1 --- EmbedObject.py 2010-03-14 01:20:10.000000000 -0600
2 +++ EmbedObject_new.py 2010-03-14 01:23:36.000000000 -0600
3 @@ -56,7 +56,8 @@
4 alt=u'',
5 play=False, stop=True, loop=False, quality=(u'high', u'low', u'medium'),
6 op=True, repeat=False, autostart=False, align=(u'middle', u'top', u'bottom'), hidden=False,
7 - menu=True, wmode=u'transparent', url_mimetype=None):
8 + menu=True, wmode=u'transparent', url_mimetype=None,
9 + scale='false'):
10 """ This macro is used to embed an object into a wiki page """
11 # Join unit arguments with their units
12 if width:
13 @@ -134,7 +135,7 @@
14
15 embed_src = '''
16 <object %(ob_data)s %(ob_type)s %(ob_width)s %(ob_height)s %(ob_align)s %(ob_standby)s %(ob_stop)s>
17 -%(wmode)s%(movie)s%(play)s%(stop)s%(repeat)s%(autostart)s%(op)s%(menu)s
18 +%(wmode)s%(movie)s%(play)s%(stop)s%(repeat)s%(autostart)s%(op)s%(menu)s%(scale)s
19 <p>%(alt)s</p>
20 </object>''' % {
21 "ob_data": _check_object_value("data", url),
22 @@ -153,6 +154,7 @@
23 "op": _check_param_value("op", op, "data"),
24 "menu": _check_param_value("menu", menu, "data"),
25 "alt": wikiutil.escape(alt),
26 + "scale": _check_param_value("scale", scale, "data")
27 }
28
29 elif mt.major in ['image', 'chemical', 'x-world']:
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.You are not allowed to attach a file to this page.