Re: [Zope] call http_host script
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=BCbingen;;72070;Germany email;internet:i...@zopyx.com title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard ___ 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 )
Re: [Zope] call http_host script
-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. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://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 )
Re: [Zope] call http_host script
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 tsea...@palladion.com wrote: -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. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://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 ) ___ 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 )
Re: [Zope] call http_host script
+---[ 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...@theinternet.com.au ___ 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 )