Hello,
I had pretty weird issue with commented block of code. I was in the process
to migrate to 2.9.5 and I had code in controllers file that were not
executing at all. I have been searching for wild and finally discover that
I had leave an opening triple double quote in dash commented block of
code... Something like this :
# Controllers
# Begin
def this_func_execute():
return dict(a='Works!')
# Commented block
# Code with the triple double quotes """
def this_func_not_execute():
"""This docstring is required for the issue to kickin!!"""
return dict(a="I don't execute")
# End
Just copy the code above and than try to access the
"this_func_not_execute": not working. Try removing the docstring or the
triple double quotes and it works ok.
Both are required for the issue to happen. If only the commented triple
double quote is there and no docstring in the following functions the issue
is not happening.
Thanks
Richard
--
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.