thank you so much massimo, it works now when i rename the module file name
and the module name on controller
*/test/modules/justforlearn.py*
from gluon import *
def ip(): return current.request.client
*/test/controllers/default.py*
from gluon.custom_import import track_changes; track_changes(True)
import justforlearn
def index():
return "Your ip is " + justforlearn.ip()
best regards,
stifan
--
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/groups/opt_out.