problem with property sheet interface and multiple selection
Hi all, when I try to add an editable property sheet interface for a propertysheet with a multiple selection property, this runs into the error shown below: 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 ZClasses.Property, line 84, in manage_createView Module ZClasses.Property, line 188, in manage_createEditor Module ZClasses.Method, line 103, in manage_addDTMLMethod Module OFS.DTMLMethod, line 403, in addDTMLMethod AttributeError: 'unicode' object has no attribute 'read' Does anybody have suggestions? Regards Thomas P.S.: I'm currently working on (Zope 2.7.3-0, python 2.3.4, win32) under Windows XP with Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
File a bug report for this *including* a detailed description how to reproduce the rror. -aj --On Sonntag, 16. Januar 2005 17:39 Uhr +0100 Thomas Adams <thomas.adams@onlinehome.de> wrote:
Hi all,
when I try to add an editable property sheet interface for a propertysheet with a multiple selection property, this runs into the error shown below:
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 ZClasses.Property, line 84, in manage_createView Module ZClasses.Property, line 188, in manage_createEditor Module ZClasses.Method, line 103, in manage_addDTMLMethod Module OFS.DTMLMethod, line 403, in addDTMLMethod AttributeError: 'unicode' object has no attribute 'read'
Does anybody have suggestions?
Regards Thomas
P.S.: I'm currently working on (Zope 2.7.3-0, python 2.3.4, win32) under Windows XP with Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
_______________________________________________ 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 )
Thomas Adams wrote at 2005-1-16 17:39 +0100:
when I try to add an editable property sheet interface for a propertysheet with a multiple selection property, this runs into the error shown below:
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 ZClasses.Property, line 84, in manage_createView Module ZClasses.Property, line 188, in manage_createEditor Module ZClasses.Method, line 103, in manage_addDTMLMethod Module OFS.DTMLMethod, line 403, in addDTMLMethod AttributeError: 'unicode' object has no attribute 'read'
This traceback does not correspond to your subject: The traceback tells you that you try to create a "DTMLMethod" from a "unicode" string. However, "DTMLMethod" only supports normal (non unicode) strings or file like objects. Check, where the string comes from that you want to convert into a "DTMLMethod". Ensure, it is a simple string and not unicode. -- Dieter
participants (3)
-
Andreas Jung -
Dieter Maurer -
Thomas Adams