[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nuxeo-localizer] Using LocalPropertyManager in ZClasses
From: |
Juan David Ibáñez Palomar |
Subject: |
Re: [Nuxeo-localizer] Using LocalPropertyManager in ZClasses |
Date: |
Thu, 21 Mar 2002 13:35:39 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020214 |
Thanks for the report, but it's a bug in Zope.
I have never used this feature, it worked when I added it, but some
Zope version has introduced an error.
The line 271 of "lib/python/ZClasses/ZClass.py" (Zope 2.5.0) looks:
for option in c.manage_options:
Where "c" is the class LocalPropertyManager, but "manage_options"
is not a sequence, it's a method that returns a sequence.
The right code in Zope could be:
manage_options = c.manage_options
if callable(manage_options):
manage_options = manage_options()
for option in manage_options:
...
Feel free to report to the collector of Zope:
http://collector.zope.org/Zope/
Garikoitz Araolaza wrote:
Has somebody used LocalPropertyManager in ZClasses?
I can't even create a ZClass inheriting from LPM.
I'm trying to add CatalogAware and LocalPropertyManager as base
Classes for my ZClass, but I get the next error:
Error Type: TypeError
Error Value: loop over non-sequence
Traceback (innermost last): File
/usr/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 150, in
publish_module File /usr/codesy/Products/Localizer/__init__.py, line
65, in new_publish File
/usr/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 114, in publish
File /usr/zope/2.5.0/lib/python/Zope/__init__.py, line 158, in
zpublisher_exception_hook (Object: Erosketa) File
/usr/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 98, in publish
File /usr/zope/2.5.0/lib/python/ZPublisher/mapply.py, line 88, in
mapply (Object: manage_addZClass) File
/usr/zope/2.5.0/lib/python/ZPublisher/Publish.py, line 39, in
call_object (Object: manage_addZClass) File
/usr/zope/2.5.0/lib/python/ZClasses/ZClass.py, line 146, in
manage_addZClass (Object: Erosketa) File
/usr/zope/2.5.0/lib/python/ZClasses/ZClass.py, line 271, in __init__
(Object: ErosgarriKlass)
Gari
_______________________________________
Garikoitz Araolaza
Code&Syntax
address@hidden
BIC-Berrilan
Azitaingo Industrialdea
E-20600-EIBAR
Tel: +34 943 82 06 06
_______________________________________________
Nuxeo-localizer mailing list
address@hidden
http://mail.freesoftware.fsf.org/mailman/listinfo/nuxeo-localizer
--
J. David Ibáñez, Nuxeo.com
Zope developer (http://www.zope.org)