[Modeling-cvs] ZModeling/ZModelizationTool/dtml model_properties.dtml,1.8,1.9
Status: Abandoned
Brought to you by:
sbigaret
|
From: <sbi...@us...> - 2003-05-27 19:49:21
|
Update of /cvsroot/modeling/ZModeling/ZModelizationTool/dtml
In directory sc8-pr-cvs1:/tmp/cvs-serv4596/ZModelizationTool/dtml
Modified Files:
model_properties.dtml
Log Message:
Updated the ZModeler: now includes the "base" mode for python
code. Plus it also introduces the 'dry-run' mode (show what would be
generated/overwritten without making any changes on the filesystem).
Index: model_properties.dtml
===================================================================
RCS file: /cvsroot/modeling/ZModeling/ZModelizationTool/dtml/model_properties.dtml,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** model_properties.dtml 22 Apr 2003 09:35:23 -0000 1.8
--- model_properties.dtml 27 May 2003 19:49:17 -0000 1.9
***************
*** 202,221 ****
<hr noshade>
<br>
! <h3>Building the model</h3>
- <h4>Python code</h4>
<form action="manage_build" method="post">
! This will write the «skeleton»-package for the current model:
! initialization code, modules & model.
<p>
<table width="100%"><tr><td>
<b>
! <font color="#FF0000" valign=middle size="+1">!!! WARNING!!!</font>
</b></td>
! <td> This will <b>permanently</b> erase all changes you might have done in
! the corresponding directory/package!<br>
! <u>Please consider making backups of your work before proceeding!</u>
</td></tr></table>
--- 202,235 ----
<hr noshade>
<br>
! <h3>Generating python code</h3>
<form action="manage_build" method="post">
! Two different kind of python package can be generated:<ul>
! <li/> "compact": puts all generated file in the same directory (the package
! for the model). When re-generating the files, only the two files
! containing the model are overwritten, every other file that already exists
! is never overwritten
!
! <li/> "base": adds a sub-module 'MDL' within the generated package. All files
! within MDL/ are ALWAYS overwritten when the python code is regenerated,
! while others (in the root package) are never overwritten if they exist.
! This is probably the one you want to use if your model changes often.
!
! Note: this can be used if and only if there is no entity sharing the same
! module with one of its (direct or indirect) subentities. If this is
! not the case, the generation will raise and indicate the problem.
!
! </ul>
<p>
<table width="100%"><tr><td>
<b>
! <font color="#FF0000" valign=middle size="+1">Attention!</font>
</b></td>
! <td> To avoid overwriting valuable files, make sure the
! <b><i>dry-run</i></b> checkbox below is checked: you'll get a complete
! overview of which files would be generated/overwritten by the generation
! process with the insurance that none of them are actually changed.
</td></tr></table>
***************
*** 227,234 ****
<td valign=top>Generate templates for: </td>
<td valign=top>
! <input type="radio" name="typeOfCode" value="python" checked>python
! <!-- <input type="radio" name="typeOfCode" value="CMF">CMF-->
</td>
</tr>
<tr>
<td valign=top>rootPath</td>
--- 241,251 ----
<td valign=top>Generate templates for: </td>
<td valign=top>
! <input type="radio" name="generation_scheme" value="compact" checked>python / ''compact'' mode<br>
! <input type="radio" name="generation_scheme" value="base">python / ''base'' mode
</td>
</tr>
+ <tr><td>Dry run:</td>
+ <td><input type="checkbox" value="1" name="fake_mode" checked/> do not create or change any file, just report what would be done</td>
+ </tr>
<tr>
<td valign=top>rootPath</td>
***************
*** 238,241 ****
--- 255,262 ----
<input type="submit" value="Build skeletons! (Please read the notice above carefully)">
</td>
+ </tr><tr>
+ <td colspan=2 align=left>Note: this can also be done with script
+ <code>mdl_generate_python_code.py</code> (<code>--help</code> for
+ details)</td>
</tr>
</table>
***************
*** 244,248 ****
<hr noshade>
! <h3>Database schema</h3>
<form action="&dtml-absolute_url;" method="POST">
--- 265,269 ----
<hr noshade>
! <h3>Generating the database schema</h4>
<form action="&dtml-absolute_url;" method="POST">
***************
*** 305,311 ****
<underline>NB: </underline>the 'Show me the SQL statements' button will not
show the DROP/CREATE DATABASE statements.
!
</p>
</center>
</form>
--- 326,334 ----
<underline>NB: </underline>the 'Show me the SQL statements' button will not
show the DROP/CREATE DATABASE statements.
! <br>
</p>
</center>
+ Note: this can also be done with script
+ <code>mdl_generate_DB_schema.py</code> (<code>--help</code> for details)
</form>
|