Re: [Zope] How to import a basic class in Script (Python)

2007-07-19 Thread Sascha Welter
(Wed, Jul 18, 2007 at 12:26:06PM +0300) Tudor Gabriel wrote/schrieb/egrapse: 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

Re: [Zope] How to import a basic class in Script (Python)

2007-07-18 Thread Andreas Jung
--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)

Re: [Zope] How to import a basic class in Script (Python)

2007-07-18 Thread Paul Winkler
On Wed, Jul 18, 2007 at 12:26:06PM +0300, Tudor Gabriel wrote: I've searched Zope Help and it mentions in there that i have to make a new dir in Products called whatever and add to __init__.py the allowimport or something like that, for my package. i tried that too ... same error (haven't

Re: [Zope] How to import a basic class in Script (Python)

2007-07-18 Thread Dieter Maurer
Tudor Gabriel wrote at 2007-7-18 12:26 +0300: ... 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