Hi Carl,

2008/8/30 Carl Zmola <[EMAIL PROTECTED]>:
> Frank,
>
> This looks like an excuse for a slightly more flexible layout class for
> editor pages.
> As it stands, fields usually have a label (on the left) with a data
> entry widget.
> What would be nice is optional fields that can be turned on from the
> taskcoach.ini file.
> If every field was optional (with a good default), then the framework
> would be very extensible.

I would welcome that. I'm not sure the description of the layout
should be in the TaskCoach.ini file though. I'd prefer the editors to
use introspection on the domain object they have to display and thus
decide what fields to show and how to group them in tabs. Something
like:

for attributeGroup in domainObject.attributeGroups():
    tab = self.addTab(attributeGroup, domainObject)
    for field in attributeGroup:
        self.addEntry(tab, field, domainObject)

where self is a DomainObjectEditor.

Cheers, Frank

Reply via email to