[CMF-checkins] CVS: CMF/CMFSetup/www - sutExportSteps.zpt:1.1
sutImportSteps.zpt:1.1 sutProperties.zpt:1.1
Tres Seaver
tseaver at zope.com
Mon May 24 10:36:53 EDT 2004
Update of /cvs-repository/CMF/CMFSetup/www
In directory cvs.zope.org:/tmp/cvs-serv23784/www
Added Files:
sutExportSteps.zpt sutImportSteps.zpt sutProperties.zpt
Log Message:
- __init__.py:
o Register tool for adding via the ZMI.
- context.py:
o Add accessor for archive filename to TarballExportContext.
- tool.py:
o Add ZMI for properties, importing, and exporting (import actions
still shimmed out).
o Rename export / import XML files (no hyphens in filenames!)
o Allow calling 'getProfileDirectory( relative_to_product=True )'
even if no product is assigned (eases ZMI usage).
- profiles/default/*.xml:
o Initial dump of "stock" CMF config for current steps.
- tests/default_profile/*.xml:
o Rename export / import XML files (no hyphens in filenames!)
=== Added File CMF/CMFSetup/www/sutExportSteps.zpt ===
<h1 tal:replace="structure here/manage_page_header"> PAGE HEADER </h1>
<h2 tal:replace="structure here/manage_tabs"> PAGE HEADER </h2>
<h3> Site Configuration Export Steps </h3>
<p class="form-help">
Download selected export steps as tarball.
</p>
<h3>Available Export Steps</h3>
<form action="." method="POST"
tal:attributes="action here/absolute_url" >
<input type="hidden" name="ids:default:tokens" value="" />
<table cellspacing="0" cellpadding="4">
<thead>
<tr class="list-header">
<td class="list-item">Sel.</td>
<td class="list-item">#</td>
<td class="list-item">Title / Description</td>
<td class="list-item">Handler</td>
</tr>
</thead>
<tbody tal:define="registry here/getExportStepRegistry;
step_ids registry/listSteps;
">
<tal:loop tal:repeat="step_id step_ids">
<tr valign="top"
tal:define="info python: registry.getStepMetadata( step_id );"
tal:attributes="class python:
repeat[ 'step_id' ].odd and 'row-normal' or 'row-hilite'" >
<td class="list-item" width="16">
<input type="checkbox" name="ids:list" value="STEP_ID"
tal:attributes="value step_id" />
</td>
<td align="right" class="list-item"
tal:content="repeat/step_id/number">1</td>
<td class="list-item">
<span tal:content="info/title">STEP TITLE</span><br />
<em tal:content="info/description">STEP DESCRIPTION</em>
</td>
<td class="list-item"
tal:content="info/handler">DOTTED.NAME</td>
</tr>
</tal:loop>
<tr valign="top" class="list-header">
<td />
<td colspan="3">Export Configuration</td>
</tr>
<tr valign="top">
<td />
<td colspan="3">
<input class="form-element" type="submit"
name="manage_exportSelectedSteps:method"
value=" Export selected steps " />
<input class="form-element" type="submit"
name="manage_exportAllSteps:method"
value=" Export all steps " />
</td>
</tr>
</tbody>
</table>
</form>
<h1 tal:replace="structure here/manage_page_footer"> PAGE FOOTER </h1>
=== Added File CMF/CMFSetup/www/sutImportSteps.zpt ===
<h1 tal:replace="structure here/manage_page_header"> PAGE HEADER </h1>
<h2 tal:replace="structure here/manage_tabs"> PAGE HEADER </h2>
<h2> Site Configuration Import Steps </h2>
<p class="form-help">
This tool allows one to re-run individual steps of the site setup
procedure, in order to pick up changes since the site was created.
</p>
<h3>Available Import Steps</h3>
<form action="." method="POST"
tal:attributes="action here/absolute_url" >
<input type="hidden" name="ids:default:tokens" value="" />
<table cellspacing="0" cellpadding="4">
<thead>
<tr class="list-header">
<td class="list-item">Sel.</td>
<td class="list-item">#</td>
<td class="list-item">Title / Description</td>
<td class="list-item">Handler</td>
</tr>
</thead>
<tbody tal:define="registry here/getImportStepRegistry;
step_ids registry/sortSteps;
">
<tal:loop tal:repeat="step_id step_ids">
<tr valign="top"
tal:define="info python: registry.getStepMetadata( step_id );"
tal:attributes="class python:
repeat[ 'step_id' ].odd and 'row-normal' or 'row-hilite'" >
<td class="list-item" width="16">
<input type="checkbox" name="ids:list" value="STEP_ID"
tal:attributes="value step_id" />
</td>
<td align="right" class="list-item"
tal:content="repeat/step_id/number">1</td>
<td class="list-item">
<span tal:content="info/title">STEP TITLE</span><br />
<em tal:content="info/description">STEP DESCRIPTION</em>
</td>
<td class="list-item"
tal:content="info/handler">DOTTED.NAME</td>
</tr>
</tal:loop>
<tr valign="top" class="list-header">
<td />
<td colspan="3">Import Configuration</td>
</tr>
<tr valign="top">
<td />
<td colspan="3">
<input type="hidden" name="run_dependencies:int:default" value="0" />
<input class="form-element" type="checkbox" id="run_dependencies"
name="run_dependencies:boolean" value="1" checked="checked" />
<label for="run_dependencies">Include dependencies?</label>
<input type="hidden" name="purge_old:int:default" value="0" />
<input class="form-element" type="checkbox" id="purge_old"
name="purge_old:boolean" value="1" checked="checked" />
<label for="purge_old">Purge existing setup?</label>
<input class="form-element" type="submit"
name="manage_importSelectedSteps:method"
value=" Import selected steps " />
<input class="form-element" type="submit"
name="manage_importAllSteps:method"
value=" Import all steps " />
</td>
</tr>
</tbody>
</table>
</form>
<h1 tal:replace="structure here/manage_page_footer"> PAGE FOOTER </h1>
=== Added File CMF/CMFSetup/www/sutProperties.zpt ===
<h1 tal:replace="structure here/manage_page_header"> PAGE HEADER </h1>
<h2 tal:replace="structure here/manage_tabs"> PAGE HEADER </h2>
<h3> Setup Tool Properties </h3>
<form method="POST" action="manage_updateToolProperties">
<table>
<tr valign="top">
<td>
<div class="form-label">Profile directory:</div>
</td>
<td>
<input class="form-element" type="text" name="profile_directory"
tal:attributes="value python: here.getProfileDirectory( True )" />
<span class="form-help"> May be either absolute (beginning with '/')
or relative to the product defined below. </span>
</td>
</tr>
<tr valign="top">
<td>
<div class="form-label">Profile product:</div>
</td>
<td>
<input class="form-element" type="text" name="profile_product"
tal:attributes="value here/getProfileProduct" />
<span class="form-help"> The name of the product to which the profile
directory is relative. </span>
</td>
</tr>
<tr valign="top">
<td />
<td>
<input class="form-element" type="submit" value=" Update " />
</td>
</tr>
</table>
</form>
<h1 tal:replace="structure here/manage_page_footer"> PAGE FOOTER </h1>
More information about the CMF-checkins
mailing list