H
Hartmut Goebel
Hi,
I'm currently implementing a tool for auto-generating webforms from a
desription file. The output should become a php-script, an asp-script,
zope-formulator or such. Each if it may (or may not) have javascript
additions. The output format should be defined ar runtime (php,
php+javascrip, asp, asp+javascript, etc.).
Currently I have a fixed class hierarchy:
generic : implements generic html widgets (input, radiobuttons)
php : "mixin" for adding php-specifi code to the widget,
eg. getting values from HTTP_POST_VARS/_POST
javascript : adds javascript scripts, eg. error checking
Obviously this does not scale as soon as I add more mid-layers (asp,
psp, etc.).
For me this sounds like I could benefit from using metaclasses here.
Before I start implementing such a beast, I want to be shure, there will
be a benefit.
Any suggestions?
--
Schönen Gruß - Regards
Hartmut Goebel
| Hartmut Goebel | IT-Security -- effizient |
| (e-mail address removed) | www.goebel-consult.de |
I'm currently implementing a tool for auto-generating webforms from a
desription file. The output should become a php-script, an asp-script,
zope-formulator or such. Each if it may (or may not) have javascript
additions. The output format should be defined ar runtime (php,
php+javascrip, asp, asp+javascript, etc.).
Currently I have a fixed class hierarchy:
generic : implements generic html widgets (input, radiobuttons)
php : "mixin" for adding php-specifi code to the widget,
eg. getting values from HTTP_POST_VARS/_POST
javascript : adds javascript scripts, eg. error checking
Obviously this does not scale as soon as I add more mid-layers (asp,
psp, etc.).
For me this sounds like I could benefit from using metaclasses here.
Before I start implementing such a beast, I want to be shure, there will
be a benefit.
Any suggestions?
--
Schönen Gruß - Regards
Hartmut Goebel
| Hartmut Goebel | IT-Security -- effizient |
| (e-mail address removed) | www.goebel-consult.de |