zope.schema.interfaces tells a few lies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.schema |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I've been working on a package, plone.supermodel, which can serialize and de-serialize schema fields to/from XML. To do so, it looks at the interfaces describing a particular field to determine which attributes the field supports, relying on the self-describing nature of zope.schema.
Unfortunately, there are a few errors and omissions that would be nice to rectify:
- The DottedName field does not have an interface. Thus, the min_dots and max_dots properties are not described anywhere.
- IChoice omits to mention vocabularyName, which should be a TextLine
- IChoice says 'vocabulary' is an Attribute. It should be an IObject(
- ICollection specifies value_type as a Field. It should probably be an Object(
- IDict specifies key_type and value_type as plain Attribute's. Again, they should be Object(
Changed in zope.schema: | |
status: | New → In Progress |
Changed in zope3: | |
status: | In Progress → Won't Fix |
Fix partially committed in 97796 and 97797