Thanks Anthony.
Am trying to import modules to the controller then run the functions imported from a list (r_lst). From here the several functions will print out different messages to view depending on user input.
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/JeJEbqVpxKo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi. Am not a professional python programmer so please bear with my crude code.
--
I can see your point though. And the input from Anthony. Let me work on the code again and try return a dict. The code is very long that's why I only took a snippet
--
Thanks Anthony.
Am trying to import modules to the controller then run the functions imported from a list (r_lst). From here the several functions will print out different messages to view depending on user input.
import datetime
def myfunction():
if "snooze" in request.args[0]:
result = "Please rest until %s" % (request.now.timedelta(minutes=10).isoformat())
return dict(result = result)
Hi. Am not a professional python programmer so please bear with my crude code.