Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

call http_host script

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


iarlyy at gmail

Jun 5, 2009, 5:40 AM

Post #1 of 5 (1428 views)
Permalink
call http_host script

There are some variable similar $_SERVER['HTTP_HOST'] ( in php ) using
Plone?

Thanks in advance.


Regards,

- -
iarly selbir | ski0s

:wq!


lists at zopyx

Jun 5, 2009, 5:43 AM

Post #2 of 5 (1318 views)
Permalink
Re: call http_host script [In reply to]

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
Attachments: lists.vcf (0.31 KB)


tseaver at palladion

Jun 5, 2009, 9:07 AM

Post #3 of 5 (1314 views)
Permalink
Re: call http_host script [In reply to]

-----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 tseaver [at] palladion
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 [at] zope
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 )


iarlyy at gmail

Jun 5, 2009, 9:50 AM

Post #4 of 5 (1317 views)
Permalink
Re: call http_host script [In reply to]

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 <tseaver [at] palladion> 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 tseaver [at] palladion
> 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 [at] zope
> 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 )
>


akm at theinternet

Jun 5, 2009, 9:50 AM

Post #5 of 5 (1319 views)
Permalink
Re: call http_host script [In reply to]

+-------[ 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
akm [at] theinternet
_______________________________________________
Zope maillist - Zope [at] zope
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 users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.