[CMF-checkins] CVS: CMF/CMFCore/www - typeinfoAliases.zpt:1.1.2.1 typesAliases.zpt:1.1.2.4
Yvo Schubbe
schubbe@web.de
Sat, 28 Jun 2003 10:35:03 -0400
Update of /cvs-repository/CMF/CMFCore/www
In directory cvs.zope.org:/tmp/cvs-serv4984/CMFCore/www
Modified Files:
Tag: yuppie-ti_aliases-branch
typesAliases.zpt
Added Files:
Tag: yuppie-ti_aliases-branch
typeinfoAliases.zpt
Log Message:
- added Aliases tab to TypeInfos
- added 'mkdir' migration
=== Added File CMF/CMFCore/www/typeinfoAliases.zpt ===
<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
tal:replace="structure here/manage_tabs">Tabs</h2>
<h3>Method Aliases</h3>
<p>See also the <a href="../manage_aliases">Method Aliases Chart</a> to set
aliases for all types simultaneously.</p>
<form action="manage_setMethodAliases" method="post">
<table cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
<th>Alias</th>
<th>Method</th>
</tr>
<tr tal:repeat="key here/listMethodAliasKeys">
<td>
<input type="text" name="" size="18" value=""
tal:attributes="name string:aliases.${repeat/key/index}:record;
value key" />
</td>
<td>
<input type="text" name="" size="27" value=""
tal:attributes="name string:methods.${repeat/key/index}:record;
value python:here.getMethodURL(key) or ''" />
</td>
</tr>
<tr>
<td>
<input type="text" name="aliases.new:record" size="18" value="" />
</td>
<td>
<input type="text" name="methods.new:record" size="27" value="" />
</td>
</tr>
<tr>
<td> </td>
<td>
<br />
<input type="submit" name="submit" value="Save Changes" />
</td>
</tr>
</table>
</form>
<p>Special Values:</p>
<dl>
<dt>empty field:</dt>
<dd>no alias defined</dd>
<dt>'<tt>(Default)</tt>' alias:</dt>
<dd><tt>path/to/object</tt> or <tt>path/to/object/</tt></dd>
<dt>'<tt>mkdir</tt>' alias:</dt>
<dd>customization hook for manage_addFolder (WebDAV/FTP)</dd>
<dt>For backwards compatibility there is also a '<tt>(Default)</tt>'
method:</dt>
<dd>Calls <tt>index_html</tt> or <tt>__call__</tt>, depending on the class.
<br />It's recommended to use explicit method values like <tt>index_html</tt>
instead.</dd>
</dl>
<h1 tal:replace="structure here/manage_page_footer">Footer</h1>
=== CMF/CMFCore/www/typesAliases.zpt 1.1.2.3 => 1.1.2.4 ===
--- CMF/CMFCore/www/typesAliases.zpt:1.1.2.3 Wed Jun 25 05:28:39 2003
+++ CMF/CMFCore/www/typesAliases.zpt Sat Jun 28 10:35:02 2003
@@ -4,6 +4,9 @@
<h3>Method Aliases Chart</h3>
+<p>Method Aliases are Type Information properties. This chart is for
+ convenience to set aliases for all types simultaneously.</p>
+
<form action="manage_setTIMethodAliases" method="post">
<table cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
@@ -24,7 +27,7 @@
or 'row-hilite'">
<th align="left">
<a href=""
- tal:attributes="href string:${ti/absolute_url}/manage_workspace"
+ tal:attributes="href string:${ti/absolute_url}/manage_aliases"
tal:content="ti/getId">id</a>
</th>
<td tal:repeat="key here/listMethodAliasKeys">
@@ -48,11 +51,18 @@
</form>
<p>Special Values:</p>
-<ul>
- <li>'(Default)' alias: path/to/object or path/to/object/</li>
- <li>'(Default)' method: index_html or __call__,
- depending on the class</li>
- <li>empty fields: no alias defined</li>
-</ul>
+<dl>
+ <dt>empty field:</dt>
+ <dd>no alias defined</dd>
+ <dt>'<tt>(Default)</tt>' alias:</dt>
+ <dd><tt>path/to/object</tt> or <tt>path/to/object/</tt></dd>
+ <dt>'<tt>mkdir</tt>' alias:</dt>
+ <dd>customization hook for manage_addFolder (WebDAV/FTP)</dd>
+ <dt>For backwards compatibility there is also a '<tt>(Default)</tt>'
+ method:</dt>
+ <dd>Calls <tt>index_html</tt> or <tt>__call__</tt>, depending on the class.
+ <br />It's recommended to use explicit method values like <tt>index_html</tt>
+ instead.</dd>
+</dl>
<h1 tal:replace="structure here/manage_page_footer">Footer</h1>