I have a FunFormKit form and I need to make a 'basic' and advanced form
I could just make all of the 'advanced' fields hidden but could I subclass for the
servlet itself?
In all of the examples the fields and formdef are declared in the module, not the
serlvet class itself. Could I make it a class
variable?
so rather then
formDefs = [ FormDefinition('Login','writeForm',fields,formValidators=[loginUser()]) ]
class BasicQ(SitePage, FormServlet):
def __init__(self):
Can I write
class BasicQ(SitePage, FormServlet):
formDefs = [ FormDefinition('Login','writeForm',fields,formValidators=[loginUser()]) ]
def __init__(self):
This seems to work ok. Any reason not to write it this way?
Thanks,
-Aaron
===================================================================
As Isaac Newton would say now:
If I see further than others, it is because I stand on
the shoulders of giants too dumb to patent their discoveries.
(Gregory Palast, http://www.observer.co.uk/ )
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss