I added following code to a python script and when try to save it returns
Prints, never read 'printed' variable.
Code:
req = context.REQUEST
addr = req.get('URL')
print addr
Regards,
- -
iarly selbir | ski0s
:wq!
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
http://docs.zope.org/zope2/zope2book/source/BasicScripting.html#accessing-the-http-request
iarly selbir | ski0s wrote:
> There are some variable similar $_SERVER['HTTP_HOST'] ( in php ) using
> Plone?
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver@palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFKKULF+gerLs4ltQ4RAoaDAKCKsUpBH0Ehoeq1P7atU4jmMP31sQCfcbrO
r5zVeV4j6W8ViON0vxrPrRo=
=uaBa
-----END PGP SIGNATURE-----
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )