I have a lot of objects in a BTreeFolder2 instance. When I select any object and click on edit, I get an error message that says "Attribute error: __call__". This was not happening just a few weeks ago. Could this indicate that the BTreeFolder2 instance is damaged or could it be that the BTreeFolder2 product is damaged? Any thoughts? Thanks.
--On Dienstag, 8. Februar 2005 21:50 Uhr -0500 Kevin Carlson <khcarlso@bellsouth.net> wrote:
I have a lot of objects in a BTreeFolder2 instance. When I select any object and click on edit, I get an error message that says "Attribute error: __call__".
Please provide a reasonable traceback including a description how to reproduce the error (these are the basic requirements for reporting such problems if you want help). -aj
Andreas Jung wrote:
Please provide a reasonable traceback including a description how to reproduce the error (these are the basic requirements for reporting such problems if you want help).
Here is a traceback of the problem occurring whenever I select an object from the BTreeFolder2 instance and click the edit button. Exception Type AttributeError Exception Value __call__ Traceback (innermost last): * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module App.special_dtml, line 175, in _exec * Module Shared.DC.Scripts.Bindings, line 320, in __render_with_namespace__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module App.special_dtml, line 175, in _exec * Module DocumentTemplate.DT_With, line 76, in render * Module Products.CMFCore.DynamicType, line 82, in getIcon AttributeError: __call__ Does this give anyone any ideas on what could be wrong? Thanks very much for any assistance.
Kevin Carlson wrote at 2005-2-9 23:49 -0500:
... * Module Products.CMFCore.DynamicType, line 82, in getIcon
AttributeError: __call__
You probably should check what code you find in line 82 of ".../CMFCore/DynamicType.py". I do not see anything in the neighborhood of line 82 which could result in an "AttributeError '__call__'" -- Dieter
Dieter Maurer wrote:
You probably should check what code you find in line 82 of ".../CMFCore/DynamicType.py".
I do not see anything in the neighborhood of line 82 which could result in an "AttributeError '__call__'"
For those who may experience a similar problem, I noticed the code in line 81 of DynamicType.py was attempting to load the portal_url tool. Upon inspection of the event.log file, I noticed that this particular tool (URLTool.py) was not loading. That fixed this issue. Thanks to all who provided help. Kevin
Kevin Carlson wrote at 2005-2-8 21:50 -0500:
I have a lot of objects in a BTreeFolder2 instance. When I select any object and click on edit, I get an error message that says "Attribute error: __call__".
This was not happening just a few weeks ago. Could this indicate that the BTreeFolder2 instance is damaged or could it be that the BTreeFolder2 product is damaged?
Very unlikely.
Any thoughts?
Maybe, the class of your BTreeFolder2 values could no longer imported. In this case, you should see a log entry in your log file. Zope would then replace this class with "Broken" which can behave very different from your own class. -- Dieter
participants (3)
-
Andreas Jung -
Dieter Maurer -
Kevin Carlson