コード例 #1
0
ファイル: __init__.py プロジェクト: SmallsLIVE/mediadrop
 def display(self, *args, **kw):
     # TODO: See if this is still necessary. Furthermore, find out which variables it actually adds.
     # Update the kwargs with the same values that are included in main templates
     # this allows us to access the following objects in widget templates:
     # ['tmpl_context', 'translator', 'session', 'ungettext', 'response', '_',
     #  'c', 'app_globals', 'g', 'url', 'h', 'request', 'helpers', 'N_', 'tg',
     #  'config']
     kw.update(tmpl_globals())
     return forms.Widget.display(self, *args, **kw)
コード例 #2
0
ファイル: __init__.py プロジェクト: sudheesh001/mediadrop
 def display(self, *args, **kw):
     # TODO: See if this is still necessary. Furthermore, find out which variables it actually adds.
     # Update the kwargs with the same values that are included in main templates
     # this allows us to access the following objects in widget templates:
     # ['tmpl_context', 'translator', 'session', 'ungettext', 'response', '_',
     #  'c', 'app_globals', 'g', 'url', 'h', 'request', 'helpers', 'N_', 'tg',
     #  'config']
     kw.update(tmpl_globals())
     return forms.Widget.display(self, *args, **kw)