Closed jamadden closed 6 years ago
This looks like a bug in zope.preference
too, because this snippet also breaks:
context = xmlconfig.string('''
<configure
xmlns="http://namespaces.zope.org/zope"
i18n_domain="test">
<preferenceGroup
id="ZMISettings2.Folder"
title="Folder Settings"
schema="zope.preference.README.IFolderSettings"
/>
</configure>''', context)
The problem is that it's using a dotted name for id, but the schema declares id to be of type PythonIdentifier
, which is clearly not correct.
This breaks in zope.preference:
In this package, we have contradictory tests, expecting fromUnicode to behave one way, and validation to behave another, because
fromUnicode
didn't previously validate (see #28).I think we have to allow empty strings in validation (which is what zope.schema does).
cf #35