i'm trying to figure out some paradigms in pyramid

using the pyramid_sqla template...

if i have:

    @action(renderer='/account/test_a.mako')
    def test_a(self):
        return {'project':'myapp'}

    @action(renderer='/account/test_b.mako')
    def test_b(self):
        return {'project':'myapp'}

how can i do something like:

    def test_c(self):
        if 1:
            return self.test_a()
        else:
            return self.test_b()

i've tried this with @action and @view_config ; i'd love to figure out
how to do using either.

I spent about 30 minutes playing around with Response,
render_to_response, and hacking on the core... and no luck.  i can't
figure out how to do this cleanly.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to