1.1 --- a/examples/Common/PEP241/Resources/pep241_error.xml Tue Dec 21 00:11:31 2004 +0000
1.2 +++ b/examples/Common/PEP241/Resources/pep241_error.xml Tue Dec 21 00:13:41 2004 +0000
1.3 @@ -1,6 +1,5 @@
1.4 <?xml version="1.0"?>
1.5 -<package name="XMLTools2">
1.6 - <details version="0.1" metadata-version="1.0" summary="An XML tools package for Python." description="A suite of tools which perform certain XML processing tasks, written in Python." home-page="http://www.boddie.org.uk/python/XMLTools2/" licence="GNU LGPL"/>
1.7 +<package name="XMLTools2" version="0.1" metadata-version="1.0" summary="An XML tools package for Python." description="A suite of tools which perform certain XML processing tasks, written in Python." home-page="http://www.boddie.org.uk/python/XMLTools2/" licence="GNU LGPL">
1.8 <platforms>
1.9 <platform name="Linux"/>
1.10 <platform name="Windows"/>
2.1 --- a/examples/Common/PEP241/Resources/pep241_template.xhtml Tue Dec 21 00:11:31 2004 +0000
2.2 +++ b/examples/Common/PEP241/Resources/pep241_template.xhtml Tue Dec 21 00:13:41 2004 +0000
2.3 @@ -13,7 +13,7 @@
2.4 <body>
2.5 <h1>PEP 241 Package Registry</h1>
2.6
2.7 -<form method="get">
2.8 +<form method="POST">
2.9
2.10 <table cellspacing="0" cellpadding="5" template:element="package">
2.11 <tbody>
2.12 @@ -47,11 +47,11 @@
2.13 </tr>
2.14 <tr>
2.15 <th>Home page</th>
2.16 - <td template:attribute="home-page" template:value="$this-value">http://www.boddie.org.uk/python/XMLForms2/index.html</td>
2.17 + <td template:attribute="home-page" template:value="$this-value">Home page</td>
2.18 </tr>
2.19 <tr>
2.20 <th>Licence</th>
2.21 - <td template:attribute="licence" template:value="$this-value">LGPL</td>
2.22 + <td template:attribute="licence" template:value="$this-value">Licence</td>
2.23 </tr>
2.24 </tbody>
2.25 <tbody template:element="discriminators">
2.26 @@ -67,14 +67,14 @@
2.27 </select>
2.28
2.29 <input type="submit" value="Remove!"
2.30 - name="_action_remove_discriminator={template:this-position()}"
2.31 + name="remove_discriminator={template:this-position()}"
2.32 /></td>
2.33 </tr>
2.34 <tr>
2.35 <th></th>
2.36 <td>
2.37 <input type="submit" value="Add discriminator!"
2.38 - name="_action_add_discriminator={template:this-position()}" /></td>
2.39 + name="add_discriminator={template:this-position()}" /></td>
2.40 </tr>
2.41 </tbody>
2.42 <tbody template:element="platforms">
2.43 @@ -86,13 +86,13 @@
2.44 <td><span template:attribute="name" template:value=".">Linux (with
2.45 more listed below)</span>
2.46 <input type="submit" value="Remove!"
2.47 - name="_action_remove_platform={template:this-position()}" /></td>
2.48 + name="remove_platform={template:this-position()}" /></td>
2.49 </tr>
2.50 <tr>
2.51 <th></th>
2.52 <td>
2.53 <input type="submit" value="Add platform!"
2.54 - name="_action_add_platform={template:this-position()}" /></td>
2.55 + name="add_platform={template:this-position()}" /></td>
2.56 </tr>
2.57 </tbody>
2.58 <tbody template:element="supported-platforms">
2.59 @@ -104,14 +104,14 @@
2.60 <td><span template:attribute="name" template:value="$this-value">Linux
2.61 (with more listed below)</span>
2.62 <input type="submit" value="Remove!"
2.63 - name="_action_remove_supported_platform={template:this-position()}"
2.64 + name="remove_supported_platform={template:this-position()}"
2.65 /></td>
2.66 </tr>
2.67 <tr>
2.68 <th></th>
2.69 <td>
2.70 <input type="submit" value="Add platform!"
2.71 - name="_action_add_supported_platform={template:this-position()}"
2.72 + name="add_supported_platform={template:this-position()}"
2.73 /></td>
2.74 </tr>
2.75 </tbody>
2.76 @@ -124,13 +124,13 @@
2.77 <td><span template:attribute="name" template:value="$this-value">Web
2.78 programming</span>
2.79 <input type="submit" value="Remove!"
2.80 - name="_action_remove_keyword={template:this-position()}" /></td>
2.81 + name="remove_keyword={template:this-position()}" /></td>
2.82 </tr>
2.83 <tr>
2.84 <th></th>
2.85 <td>
2.86 <input type="submit" value="Add keyword!"
2.87 - name="_action_add_keyword={template:this-position()}" /></td>
2.88 + name="add_keyword={template:this-position()}" /></td>
2.89 </tr>
2.90 </tbody>
2.91 <tbody>
2.92 @@ -141,19 +141,17 @@
2.93 <tbody template:element="authors,author">
2.94 <tr>
2.95 <th>Author name</th>
2.96 - <td><span template:attribute="name" template:value="$this-value">Paul
2.97 - Boddie</span>
2.98 + <td><span template:attribute="name"><input name="{template:this-position()}" value="{$this-value}" type="text" size="20" /></span>
2.99 <input type="submit" value="Remove!"
2.100 - name="_action_remove_author={template:this-position()}" /></td>
2.101 + name="remove_author={template:this-position()}" /></td>
2.102 </tr>
2.103 <tr>
2.104 <th>Author contact</th>
2.105 - <td template:attribute="contact" template:value="$this-value">Oslo,
2.106 - Norway</td>
2.107 + <td template:attribute="contact"><input name="{template:this-position()}" value="{$this-value}" type="text" size="20" /></td>
2.108 </tr>
2.109 <tr>
2.110 <th>Author e-mail</th>
2.111 - <td template:attribute="e-mail" template:value="$this-value">paul@boddie.org.uk</td>
2.112 + <td template:attribute="e-mail"><input name="{template:this-position()}" value="{$this-value}" type="text" size="20" /></td>
2.113 </tr>
2.114 </tbody>
2.115 <tbody>
2.116 @@ -161,7 +159,7 @@
2.117 <th></th>
2.118 <td>
2.119 <input type="submit" value="Add author!"
2.120 - name="_action_add_author={template:this-position()}" /></td>
2.121 + name="add_author={template:this-position()}" /></td>
2.122 </tr>
2.123 </tbody>
2.124 <tbody>
2.125 @@ -174,7 +172,7 @@
2.126 <th>Package name</th>
2.127 <td><span template:attribute="name" template:value="$this-value">XMLTools2</span>
2.128 <input type="submit" value="Remove!"
2.129 - name="_action_remove_dependency={template:this-position()}" /></td>
2.130 + name="remove_dependency={template:this-position()}" /></td>
2.131 </tr>
2.132 <tr>
2.133 <th>Package version</th>
2.134 @@ -186,7 +184,7 @@
2.135 <th></th>
2.136 <td>
2.137 <input type="submit" value="Add dependency!"
2.138 - name="_action_add_dependency={template:this-position()}" /></td>
2.139 + name="add_dependency={template:this-position()}" /></td>
2.140 </tr>
2.141 </tbody>
2.142 <tbody>
2.143 @@ -196,8 +194,8 @@
2.144 <tr>
2.145 <th></th>
2.146 <td>
2.147 - <input type="submit" value="Update!" name="_action_update" />
2.148 - <input type="submit" value="Finish!" name="_action_finish" /></td>
2.149 + <input type="submit" value="Update!" name="update" />
2.150 + <input type="submit" value="Finish!" name="finish" /></td>
2.151 </tr>
2.152 </tbody>
2.153 </table>