[Zope] How can I import python script into another python script?

2006-08-31 Thread Ferhat Ayaz
Hi,

I have a Script (Python) called 'functions'.
I want to import this script into another Script
(Python).

import Include.Functions.requests

says

import of Include.Functions.requests is unauthorized

Where am I wrong?

Thanks,
Ferhat

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
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] How can I import python script into another python script?

2006-08-31 Thread Gabriel Genellina

At Thursday 31/8/2006 18:11, Ferhat Ayaz wrote:


I have a Script (Python) called 'functions'.
I want to import this script into another Script
(Python).

import Include.Functions.requests

says

import of Include.Functions.requests is unauthorized


You don't import it; you can reference it as 
container.Include.Functions.whatever(args...)



Gabriel Genellina
Softlab SRL 






__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas


___
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 )