yes, that what i face too.
first : the same request might have the different value, e.g. 
request.folder in web browser return 
/Users/test/site/web2py/applications/test/ yet in terminal return 
 applications/test/
second : the storage dict is not fully covered in terminal e.g. request.env 
in this value in browser, there is a value for server_software, but no 
value in terminal

so i take the it general (use python module e.g. os or something else) and 
have the same value for both side (terminal & browser).
e.g.
*models/db.py*
environment_base = (os.uname()[1] != myconf.get(myconf_env + '_' + 
'environment.server_name') ) or \
  (request.env.web2py_path != myconf.get(myconf_env + '_' + 
'environment.web2py_path') ) or \
  (request.application != myconf.get(myconf_env + '_' + 
'environment.application') )

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/d/optout.

Reply via email to