[Chandler-dev] a new kind of enumeration type

Grant Baillie grant at osafoundation.org
Wed Aug 30 16:49:20 PDT 2006


On 30 Aug, 2006, at 15:43, Andi Vajda wrote:

>
> On Wed, 30 Aug 2006, Grant Baillie wrote:
>
>> I think PJE was talking about the dump-and-reload schema upgrade  
>> strategy: Presumably, we would store the .value for that.
>
> For dump and reload, I'd store the .name or the full name such as  
> TriageEnum.now, not the value since there may be more than one  
> constant with the same value.

... in the crazy dict-based way of doing things, sure ;)

Actually, as I understand things, if you're writing a sharing schema  
for a kind that has an enumerated attribute, you can persist the  
value any way you choose. Presumably, though, we're talking about the  
default behaviour here...

--Grant




More information about the chandler-dev mailing list