[ZPT] Web Design with ZPT
Christian Theune
ct@gocept.com
Thu, 7 Mar 2002 17:29:12 +0100
Joseph,
On Thu, Mar 07, 2002 at 11:14:42AM -0600, Joseph Griffin wrote:
> Christian,
> What your're saying is true. You could take the resulting SQL text and
> call a CreateZSQL interface to add the query to the database. But that
> calls for creating the Python code necessary to automate the
No, i wouldn't create it out of the sql code, instead i would suggest to
hang in another generator, that creates not sql but sets of zpt and
ZSQL creation scripts.
> installation of the ZSQL method. I'm wondering where I could dig up the
> interface definitions for doing this. The procedure might be something
> like this:
>
> 1) Create the Website with your productive tool.
> 2) Click on button and generate the Python installation script.
> 3) Run the script outside of Zope.
> 4) Script checks to see if there is existing structure. If so, if
> searches for tags to see if objects in structure were generated by the
> productive tool or inserted by the user. It should only remove the
> objects it puts in the structure (Round Trip Engineering). The ZPT
> stuff should be added here.
> 5) Take a sip of coffee.
Well actually the tool generating a framework (better: workingground?)
for an application would generate a huge pythonscript, which
- imported into zope, or as external method - would create a big set
of those objects, so steps 1 and 3 would be the same as i think.
>
> Tools not productive? In the 10th grade, we had a multiple choice
> question that read - "What tool would an archaeologist use to unearth
> fossil remains? A) fine chisel-like instrument or B) dynamite". I
> choose B. May not find any bones, but it sure is impressive to watch.
> Joseph
>
*LOL
Greetings
Christian
--
Christian Theune - ct@gocept.com
gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981
reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])