Schema fields don't work with PersistentList and Dict

Bug #131112 reported by Damien Genet
2
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(IKlass['list'])

    def __init__(self):
        self.list = PersistentList ()

Revision history for this message
Damien Genet (damien-genet) wrote :
Tres Seaver (tseaver)
Changed in zope3:
status: New → Won't Fix
Tres Seaver (tseaver)
tags: added: bugday20100424
Revision history for this message
Tres Seaver (tseaver) wrote :

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.

Changed in zope.schema:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Tres Seaver (tseaver) wrote :
Changed in zope.schema:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.