[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/utility - configure.zcml:1.1.2.6 useconfiguration.py:1.1.2.5
Jim Fulton
jim@zope.com
Wed, 19 Mar 2003 16:09:36 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services/utility
In directory cvs.zope.org:/tmp/cvs-serv21546/src/zope/app/browser/services/utility
Modified Files:
Tag: local-utility-branch
configure.zcml useconfiguration.py
Log Message:
Added a new component path field and widget that simply shows the
component path for the compontent being configured. We no longer
select a component because configuration is done from the component
bing configured.
=== Zope3/src/zope/app/browser/services/utility/configure.zcml 1.1.2.5 => 1.1.2.6 ===
--- Zope3/src/zope/app/browser/services/utility/configure.zcml:1.1.2.5 Tue Mar 18 16:34:47 2003
+++ Zope3/src/zope/app/browser/services/utility/configure.zcml Wed Mar 19 16:09:05 2003
@@ -19,6 +19,7 @@
<addform
+ label="New Utility Configuration"
for="zope.app.interfaces.services.utility.ILocalUtility"
name="addConfiguration.html"
schema="zope.app.interfaces.services.utility.IUtilityConfiguration"
=== Zope3/src/zope/app/browser/services/utility/useconfiguration.py 1.1.2.4 => 1.1.2.5 ===
--- Zope3/src/zope/app/browser/services/utility/useconfiguration.py:1.1.2.4 Tue Mar 18 16:10:02 2003
+++ Zope3/src/zope/app/browser/services/utility/useconfiguration.py Wed Mar 19 16:09:05 2003
@@ -58,9 +58,6 @@
directive.
"""
- # Override the default widget choice for componentPath
- componentPath = CustomWidget(ComponentPathDisplayWidget)
-
def beforeUpdateHook(self):
# XXX Have to remove proxies because flattenInterfaces
# doesn't work with proxies.
@@ -71,14 +68,6 @@
for interface in flattenInterfaces(bare.__implements__)
if list(interface) # Does the interface define any names
]
-
- path = getPhysicalPathString(self.context)
- # XXX Poke the data we want into the request so when the widget's
- # getData() later looks in the request it will see the
- # right thing. We can't use setData() because it has a
- # different meaning (sets the *default* data to display).
- self.request.form[self.componentPath.name] = path
- #self.componentPath.setData(path)
def add(self, content):
# Get the configuration manager for this folder