18 Jul
2007
18 Jul
'07
9:37 a.m.
--On 18. Juli 2007 12:26:06 +0300 Tudor Gabriel <tdrgabi@gmail.com> 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. -aj