On Jul 10, 5:33 am, "Mark Ramm" <[EMAIL PROTECTED]> wrote:
> > maybe last line should be
>
> > root_vars.update({'tg':tg_vars})
>
> > without quote ?
>
> That certainly looks like a bug. Fix going into SVN now....
But how do I get access to this from inside the template ?
>>> data.keys()
['c', 'display', 'XML', 'tg_flash', 'contacts', 'defined', 'screen',
'sidebar_top', 'header', 'tmpl_context', 'value_of', 'HTML',
'sidebar_bottom', 'tg', 'ET', 'footer', 'contact_class',
'contact_classes']
>>> data['tmpl_context']
<pylons.util.AttribSafeContextObj at 0xac56fac
action=u'routes_placeholder', controller=u'root',
controller_url=u'contact/index', environ={'AUTH_TYPE': 'cookie',
'routes.route': <routes.route.Route ...300'}, form=DataGrid(None,
children=[], **{'fields': [('ID', 'id'), ('Cl...')]}), form_errors={},
form_values=UnicodeMultiDict([]), grid=FlexiGrid('flex', children=[],
**{'usepager': True, 'fetchUR...'}]}), identity=<repoze.who identity
(hidden, dict-like) at 179858284>, pylons=<pylons.util.PylonsContext
object at 0xac56fec>, start_response=<function repl_start_response at
0xad0fa04>, url=u'contact/index'>
BUT no tg_vars !!!
Nowhere !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---