Schema fields don't work with PersistentList and Dict
Bug #131112 reported by
Damien Genet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.schema |
Won't Fix
|
Low
|
Unassigned |
Bug Description
PersistentList & PersistentDict aren't valid types for List & Dict schema fields. For instance the following code fails (where IKLass is a zope.schema.List) :
class Klass(Peristent):
list = FieldProperty(
def __init__(self):
self.list = PersistentList ()
Changed in zope3: | |
status: | New → Won't Fix |
tags: | added: bugday20100424 |
To post a comment you must log in.
The intent of the patch looks reasonable, although it doesn't apply cleanly to the current zope.schema trunk. However, the patch needs to be extended with new tests showing the use of the new PersistentList / PersistentDict types.