durusmail: quixote-users: reusing bigger chunks
reusing bigger chunks
2003-10-01
2003-10-04
reusing bigger chunks
Mark Bucciarelli
2003-09-28
recently, i created a quixote form that reads in ini file, generates a form
from the contents of the ini file, and writes any changes back to the ini
file.  it's generic, in that all it needs to know is the path to the ini
file.

 i would like to reuse this logic.  i could create a widget subclass that
renders itself appropriately, but I would have to "manually" call the
widget's (custom) process and action methods from the form's procss and
action methods (branching on the name of the submit button that was clicked).

the calendar i'm buidling is another example of an entire form you want to
reuse.

a login form is another example.

since you can compose an HTML page with multiple forms, it should be possible
with quixote as well.  i suspect this would greatly improve the propects for
code reuse in quixote apps.

regards,

--
Mark Bucciarelli, www.hubcapconsulting.com
    He who receives an idea from me, receives instruction himself
without lessening mine; as he who lights his taper at mine receives
light without darkening me.   -- Thomas Jefferson


reply