[mod_python] restricting access to certain variables using mod_python.publisher

Jan Huelsbergen jan at huelsbergen.de
Mon Mar 14 19:40:27 EST 2005


Hi,

The mod_python.publisher documentation states at
http://modpython.org/live/current/doc-html/hand-pub-alg-trav.html that
if
"Any of the traversed object's names begin with an underscore ("_")." 
they are not accsessable through the web, yet, when I put a 
_foo = 'bar'
in my index.py, http://my.site/_foo returns 'bar'. 

Am I missinterpreting the documentation? 
How to protect a variable from outside access?

TIA
		Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050315/e201fc34/attachment.bin


More information about the Mod_python mailing list