[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - add_cache.pt:1.3 configure.zcml:1.31 addconnectionconfig.pt:NONE connection.py:NONE
Guido van Rossum
guido@python.org
Thu, 13 Mar 2003 12:11:06 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv17382/src/zope/app/browser/services
Modified Files:
add_cache.pt configure.zcml
Removed Files:
addconnectionconfig.pt connection.py
Log Message:
- Remove title and description fields from add_cache.pt (these
attributes no longer exist on configurations).
- Changed the custom view for adding a connection configuration with
an add form directive; addconnectionconfig.pt and connection.py in
zope/app/browser/services bite the dust.
- Change the componentPath attribute to a ComponentPath field; this
ran into some circularities so we did the following:
- Renamed INameResolver to IModuleService and moved it to its own
file, zope/app/interfaces/services/module.py.
- Fixed up a few docstrings and comments.
=== Zope3/src/zope/app/browser/services/add_cache.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/add_cache.pt:1.2 Wed Dec 25 09:12:36 2002
+++ Zope3/src/zope/app/browser/services/add_cache.pt Thu Mar 13 12:10:35 2003
@@ -23,13 +23,6 @@
<td tal:content="structure view/status"><input type="text"></td>
</tr>
<tr>
- <td>Title</td>
- <td tal:content="structure view/title"><input type="text"></td>
- </tr>
- <tr>
- <td>Description</td>
- <td tal:content="structure view/description"><textarea></textarea></td>
- </tr>
</table>
<input type="submit" />
=== Zope3/src/zope/app/browser/services/configure.zcml 1.30 => 1.31 ===
--- Zope3/src/zope/app/browser/services/configure.zcml:1.30 Tue Mar 11 11:10:50 2003
+++ Zope3/src/zope/app/browser/services/configure.zcml Thu Mar 13 12:10:35 2003
@@ -507,16 +507,15 @@
<!-- ConnectionConfiguration -->
- <view
- for="zope.app.interfaces.container.IAdding"
+ <addform
+ schema=
+ "zope.app.interfaces.services.connection.IConnectionConfiguration"
name="ConnectionConfiguration"
- class="zope.app.browser.services.connection.AddConnectionConfiguration"
- permission="zope.ManageServices">
-
- <page name="add.html" template="addconnectionconfig.pt" />
- <page name="finish.html" attribute="action" />
-
- </view>
+ content_factory="zope.app.services.connection.ConnectionConfiguration"
+ arguments="name componentPath"
+ label="Configure a database connection"
+ permission="zope.ManageServices"
+ />
<menuItem
menu="add_configuration"
=== Removed File Zope3/src/zope/app/browser/services/addconnectionconfig.pt ===
=== Removed File Zope3/src/zope/app/browser/services/connection.py ===