--On 18. Juli 2007 12:26:06 +0300 Tudor Gabriel <[EMAIL PROTECTED]> wrote:

To learn zope I am trying to write a basic library page.
I wrote a book_py class ... and from search_books_py try to return a
list of books to show in a ZPT.

now let's suppose all the files (all the py and zpt files) are in the
same directory:Library

in search_books_py i tried importing the book class in this ways:

from book_py import *
from Library.book_py import *
from here.book_py import *
from container.book_py import *

Move your code into a "Product" (see Zope Developers Guide) or use
an external method. PythonScripts are not equal to an unrestricted
Python environment.


Attachment: pgpCZGLho3usV.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to