Chuck wrote:
> That specific validation is already there. The
> columns are called Min and Max, and yes they are
> asserted in the set columns.
>
> Also you can add any columns you want to the object
> model, either as a direct CSV column, or as a field
> in extras:
> Extras
> foo=1; bar='c'
>
> And then use those in code you write that examines
> MK Attrs, which are
> essentially dictionaries. (Attr inherits UserDict.)
> Here is a silly example:
>
> for attr in klass.allAttrs():
> print attr.get('Min', None)
>
> Breeze through MiddleKit/Core which doesn't do much
> more than define the code classes that MK uses to
> represent an object model.
So both could be implemented:
1)
formDef = formDefFromKlass(assetKlass)
(needs a heavyly extended model file - less flexible,
except after tunining a mutual copy)
2)
Generate.py --sql --py [--ffk --view] ....
(first time creation of several .py fragments useful
to built WKPages to edit/insert klass objects with
FunFormKit (--ffk) and/or create <table> output for
them. Much more flexible and transparent like a
wizard, but maybe pain for later changes in the model)
BTW: What happened to the Webware FormKit, mentioned
in elder docs ? What do you use, Chuck - proprietary
;-)
Hands up Webware users - lets vote for 1) or 2)
I say 2)
=====
kind regards,
Thomas Kumlehn
PIXEL PARTNER (R)
mobile +44 7960 384334
__________________________________________________________________
Es ist soweit: das Nokia Game beginnt. Sei bereit f�r das multimediale Abenteuer.
Melde dich bis zum 3. November bei http://de.promotions.yahoo.com/info/nokiagame an!
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss