>     def expose_matplot_figure(f=None, **render_opts):
>
>         def get_fig(result):
>             if isinstance(result, dict):
>                           fig = result['fig']
>                           del result['fig']
>                           return fig
>             else:
>                 return result
>
>               def get_render_opts(result):
>                   if isinstance(result, dict):
>                           render_opts.update(result)
>                   return render_opts

You didn't properly indent your code - you are aware that python uses 
indention to demark blocks? The get_render_opts-function is local to the 
get_fig-function, but you want it one level up I presume.

Diez

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to