Am 26.02.2011 um 11:21 schrieb Christoph Zwerschke:

Am 26.02.2011 02:56 schrieb vhiremath4:
I tried setting up a function in the root.py file in "controllers" as
follows:

@expose('honutv.templates.index')
    def get_shinfo(self):
        result = rdshinfo()
        return result

That should work, but the expose decorator must have the same identation as the def statement.

It does? Under wich name does the result appear in the template namespace? I was always under the impression for that you need to return dicts.

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