[Zope] How do I import packages/modules from Products?

Chris Beaven chris@d-designz.co.nz
Wed, 12 Feb 2003 18:19:23 +1300


Why don't you make the product a subclass of ZCatalog instead of folder?

Sean K wrote:

>Hi all,
>
>I want to make ZCatalog an attribute of a product. The
>product is a subclass of folder, and I could add a
>ZCatalog in the product's constructor  with  something
> like this
>object.manage_addProduct['ZCatalog'].manage_addZcatalog(id="zc1")
>
>however an attribute will not show up in the contents
>tab of the product and will not be tampered with.
>
>I have tried to import ZCatalog into my product, but a
>look at the path from my product shows that
>zope/lib/python/products is not in the path. I do not
>want to tamper with the path without advice - ie. is
>there security reasons for not adding products to the
>path? 
>
>Is there another way of importing it (maybe a
>conveniance method) that will allow me to import it
>without manually changing the path?
>
>Thanks in advance
>
>Sean Kemplay
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Shopping - Send Flowers for Valentine's Day
>http://shopping.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 )
>
>  
>