Hello,
I have a simple app where I return data in XML and I'm wondering if I can
also include auth.user.
Here is some code:
def questions():
response.title = None
all_questions = questionsinmydatabase
try:
for question in all_questions:
if question['id']==int(request.vars['chal']):
xmlQuest = XML(question['question'])
except:
xmlQuest='Please Refresh'
return dict(xmlQuest=xmlQuest, correct_questions=correct_questions)
How can I include something like {{auth.username}} in the XML? Is this the
right way to approach the problem?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.