The schema.Text type will raise an error if assigned either a Python
unicode or str object. It only accepts LocalizableString's and UString's.
FYI, I *proposed* this, but I don't know what it would take to actually
implement; I seem to recall that the repository doesn't have any type
enforcement that would allow this to produce an immediate error. Perhaps
Andi can comment?
The repository doesn't enforce types until commit. If the Text alias type
doesn't recognize a value stored in an attribute upon commit, an error is
raised.
Andi..
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev