manage_changeProperties() and manage_addProperty() behave differently for "lines"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Low
|
Unassigned |
Bug Description
For "lines"-properties manage_
This PythonScript:
"""
## Script (Python) "testbug"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=
##parameters=
##title=
##
def is_int(i):
try:
i + 1
return "is int"
except:
return "isn't int"
try: obj.manage_
except: pass
obj = script
print "Add property..."
obj.manage_
for i in obj.testproperty: print is_int(i)
print "Change property..."
obj.manage_
for i in obj.testproperty: print is_int(i)
return printed
"""
returns
"""
Add property...
isn't int
isn't int
isn't int
Change property...
is int
is int
is int
"""
which is not what one would expect.
Changed in zope2: | |
status: | New → Confirmed |
Status: Pending => Wontfix
Type converters only deal with the outer type but not with the types of contained elements. This should be handled on the application level.