On Sun, Nov 23, 2008 at 9:49 AM, Jason <[EMAIL PROTECTED]> wrote: > > hello all > > this is straight out of my controller and produces an error > @expose(template = 'thing.templates.signup') > def index(self, *args, **kw): > override_template(self.index, 'thing.templates.index') > return dict(page = "signup") > > the error can be overcome if this: > override_template(self.index, 'thing.templates.index') > is changed to this > override_template(self.index, 'genshi:thing.templates.index') > > is this expected behavior? >
I recently ran into this issue myself. I also needed to change the content_type within the method so I've recently written some code that seems (to me at least) to be much cleaner. Patch: http://trac.turbogears.org/ticket/2054 And usage: http://paste.turbogears.org/paste/16016 I haven't committed the patch yet as I wanted to see what people thought. -- Lee McFadden blog: http://www.splee.co.uk rejaw: http://rejaw.com/splee twitter: http://twitter.com/splee --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
