Hi folks,
I'm trying to use AHAH (http://microformats.org/wiki/rest/ahah) and
the _same_ controller to provide two kinds of responses:
1. with first incoming request, I'd like to return a dictionary of
response elements with the appropriate tg_template, and
2. on subsequent requests, I'd like to just send a snippet of
valid XHTML (via AHAH) so data refreshes are just in-place
and don't require page refreshes. This url would be a slight
variant of the original indicating minimal response.
Would it be possible to do it this ways:
...
@turbogears.expose(format="xhtml-strict")
def default(self, *args, **kwargs):
...
if req_type_1:
# case 1:
...
return (tg_template="xyz", data=data...)
else:
# case 2: no template info needed ?...
return (data=data)
Thanks,
/venkat
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---