Inside a class of a Zope Product: container = "self.aq_inner.aq_parent" context = self So if you have a ZCatalog named "Catalog" you could call the searchResults method of "Catalog" from a Zope product like so: catalog = self.Catalog # acquire the Catalog results = catalog.searchResults({'meta_type':'foo'}) HTH, - C Ioannis Koukos wrote:
I've been trying to find documentation on how to search the ZCatalog from within a Zope product but there is a lack of documentation on that. Can this be done? If this is the case, how can external python products 'see' the context and container objects?
Could there be an alternative solution based on the creation of a Python Script inside Zope (thus binding the context-container) and then calling it from the Product code? Same question for a DTML method.
Regards,
John
------------------------------------------------------------------------ *Do You Yahoo!?* Αποκτήστε την δωρεάν σας @yahoo.gr διεύθυνση στο Yahoo! Mail <http://www.otenet.gr/>.
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones"