[Zope-dev] Problem testing CatalogAware class
Hi all, does someone knows about problems testing CatalogAware subclasses ? I have unit tests for my class and work well, but if I subclass also from CatalogAware I receive: File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 267, in _setObject object.manage_afterAdd(object, self) File /usr/lib/zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 42, in manage_afterAdd self.index_object() File /usr/lib/zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 112, in index_object getattr(self, self.default_catalog).catalog_object(self, self.url()) File /usr/lib/zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 85, in url else: url=self.absolute_url() File /usr/lib/zope/lib/python/OFS/Traversable.py, line 48, in absolute_url return join([req['SERVER_URL']] + req._script + path, '/') KeyError: SERVER_URL Suggestions? Thanks, Vincenzo. -- Vincenzo Di Somma - Responsabile Ricerca e Sviluppo - Icube S.r.l. Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia E-mail: [EMAIL PROTECTED] WWW: www.icube.it Tel:(+39) 050 97 02 07 Fax: (+39) 050 31 36 588 signature.asc Description: This is a digitally signed message part
[Zope-dev] ZCatalog and not registered clasees
Hi all, I have a product with a main class (registeredin the __init__.py) and some utility classes I don`t want to register, does the ZCatalog have problem finding istances of not registered classes ? I`m not able to index them. -- Vincenzo Di Somma - Responsabile Ricerca e Sviluppo - Icube S.r.l. Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia E-mail: [EMAIL PROTECTED] WWW: www.icube.it Tel:(+39) 050 97 02 07 Fax: (+39) 050 31 36 588 signature.asc Description: This is a digitally signed message part
Re: [Zope-dev] ZCatalog and not registered clasees
On Tue, 2002-06-04 at 15:38, Vincenzo Di Somma wrote: Hi all, I have a product with a main class (registeredin the __init__.py) and some utility classes I don`t want to register, does the ZCatalog have problem finding istances of not registered classes ? I`m not able to index them. I`ve found the solution, is not a registration but a traverse problem. -- Vincenzo Di Somma - Responsabile Ricerca e Sviluppo - Icube S.r.l. Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia E-mail: [EMAIL PROTECTED] WWW: www.icube.it Tel:(+39) 050 97 02 07 Fax: (+39) 050 31 36 588 signature.asc Description: This is a digitally signed message part
Re: [Zope-dev] I have two question. Would you help me please.
Hi, Q1. How call the ZSQLMethod into script python. take a look at http://www.zope.org/Members/spinwing/ZSQL_Results Q2. How to display the list type data. You should give us more info, errors or trace back. -- Vincenzo Di Somma - Responsabile Ricerca e Sviluppo - Icube S.r.l. Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia E-mail: [EMAIL PROTECTED] WWW: www.icube.it Tel:(+39) 050 97 02 07 Fax: (+39) 050 31 36 588 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )