[Dev] Interationalization Schema Update

Andi Vajda vajda at osafoundation.org
Wed Jul 20 02:27:25 PDT 2005


>> 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..



More information about the Dev mailing list