+---[ iarly selbir | ski0s ]--
| 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
return printed
--
Andrew Milton
a...@theinter
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!
On Fri, Jun 5, 2009 at 1:07 PM, Tres Seaver wrote:
> -BEGIN PGP SIGNED
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
iarly selbir | ski0s wrote:
> There are some variable similar $_SERVER['HTTP_HOST'] ( in php ) using
> Plone?
http://docs.zope.org/zope2/zope2book/source/BasicScripting.html#accessing-the-http-request
Tres.
- --
=
On 05.06.09 14:40, iarly selbir | ski0s wrote:
> There are some variable similar $_SERVER['HTTP_HOST'] ( in php ) using
> Plone?
The 'request' object has everything you need.
-aj
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbi
There are some variable similar $_SERVER['HTTP_HOST'] ( in php ) using
Plone?
Thanks in advance.
Regards,
- -
iarly selbir | ski0s
:wq!
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encodin