durusmail: quixote-users: ANN: Generating Python FSM/REST apps for Quixote
ANN: Generating Python FSM/REST apps for Quixote
2003-03-26
2003-03-30
ANN: Generating Python FSM/REST apps for Quixote
Greg Ward
2003-03-30
On 26 March 2003, Dave Kuhlman said:
> I'm continuing my work with FSM (finite state machines) and REST.
> I'm now doing a more complete job of generating an FSM/REST
> applications that runs on top of the Quixote Web application
> framework.
>
> I've implemented a harness (fsmGenerate.py) that reads an XML FSM
> document and, from it, generates the following:
>
>   - State definition modules -- These are Python modules that
>     implement a Quixote application.  One module is generated for
>     each state in the FSM.  Each generated module contains a class
>     that implements the state.

Neat idea.  But why generate code?  I've always thought that there's
something wrong with generating Python code, because you can do so much
more at runtime.  Why not take a cue from libglade and read the XML FSM
file at runtime, and generate the state objects (and UI) from it?

        Greg
--
Greg Ward                          http://www.gerg.ca/
Any priest or shaman must be presumed guilty until proven innocent.

reply