At 02:27 AM 7/20/2005 -0700, Andi Vajda wrote:
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.
Pity. It makes it harder to find where the broken assignment is in that
case, since the commit could be much later.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev