[CMF-checkins] CVS: CMF/CMFCore/www - typeinfoAliases.zpt:1.2 typesAliases.zpt:1.2

Yvo Schubbe schubbe@web.de
Sat, 28 Jun 2003 12:31:23 -0400


Update of /cvs-repository/CMF/CMFCore/www
In directory cvs.zope.org:/tmp/cvs-serv21800/CMFCore/www

Added Files:
	typeinfoAliases.zpt typesAliases.zpt 
Log Message:
Merged yuppie-ti_aliases-branch:
- Added Method Aliases to TypeInformation.
- Added __before_publishing_traverse__ to DynamicType.
- Made PortalFolder's 'mkdir' hook an alias.

=== CMF/CMFCore/www/typeinfoAliases.zpt 1.1 => 1.2 ===
--- /dev/null	Sat Jun 28 12:31:23 2003
+++ CMF/CMFCore/www/typeinfoAliases.zpt	Sat Jun 28 12:31:23 2003
@@ -0,0 +1,61 @@
+<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>&nbsp;</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 => 1.2 ===
--- /dev/null	Sat Jun 28 12:31:23 2003
+++ CMF/CMFCore/www/typesAliases.zpt	Sat Jun 28 12:31:23 2003
@@ -0,0 +1,68 @@
+<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 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">
+  <th align="left">Alias</th>
+  <th tal:repeat="key here/listMethodAliasKeys">
+   <input type="text" name="" size="18" value=""
+     tal:attributes="name string:aliases.${repeat/key/index}:record;
+                     value key" />
+  </th>
+  <th>
+   <input type="text" name="aliases.new:record" size="18" value="" />
+  </th>
+ </tr>
+ <span tal:define="tis python:sequence.sort( here.listTypeInfo(),
+                                             ( ('getId',), ) )"
+   tal:repeat="ti tis" tal:omit-tag=""><tr class=""
+   tal:attributes="class python:repeat['ti'].odd() and 'row-normal'
+                                                    or 'row-hilite'">
+  <th align="left">
+     <a href=""
+        tal:attributes="href string:${ti/absolute_url}/manage_aliases"
+        tal:content="ti/getId">id</a>
+  </th>
+  <td tal:repeat="key here/listMethodAliasKeys">
+   <input type="text" name="" size="18" value=""
+     tal:attributes="name string:${ti/getId}.${repeat/key/index}:record;
+                     value python:ti.getMethodURL(key) or ''" />
+  </td>
+  <td>
+   <input type="text" name="" size="18" value=""
+     tal:attributes="name string:${ti/getId}.new:record;" />
+  </td>
+ </tr></span>
+ <tr>
+  <td>&nbsp;</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>