I looked at the code and I can't see anything wrong with your suggestion. Unfortunately I'm far from an expert in this area of the code.
Glen --- Jeremias Maerki <[EMAIL PROTECTED]> wrote: > I'm currently looking at implementing > text-decoration. ATM it's > specified as an EnumProperty but should be more like > a set of enums with > certain validation rules applied. I'm unsure about > the approach. If > anyone already has an idea how it should look like > I'd appreciate any > insight. > > My first idea was to implement a special property > class > (TextDecorationProperty) that handles the conversion > of a ListProperty > of NCNames to an internal set of variables while at > the same time > validating the enum combinations. I think my > approach would work even if > it look a bit awkward. But I wanted to check first > so I didn't implement > something really ugly. > > Jeremias Maerki > >