I don't know if the solution I found is a little overkill or not, but
without modding TG it's the only way I figured.
I ended making a expose decorator myself:
def expose(show_menu=True, *deco_args, **deco_kw):
def decorator(func):
@turbogears.expose(*deco_args, **deco_kw)
def decorated(*args, **kw):
output = func(*args, **kw)
if isinstance(output, dict):
output['show_menu'] = show_menu
return output
return decorated
return decorator
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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
-~----------~----~----~----~------~----~------~--~---