[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/configuration - __init__.py:1.3
Ulrich Eck
ueck@net-labs.de
Wed, 9 Apr 2003 12:06:34 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/services/configuration
In directory cvs.zope.org:/tmp/cvs-serv24851
Modified Files:
__init__.py
Log Message:
fixed a bug (ComponentPathWidget has no attribute __name__)
that occured when a configuration object should be removed.
=== Zope3/src/zope/app/browser/services/configuration/__init__.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/configuration/__init__.py:1.2 Sun Mar 23 12:13:41 2003
+++ Zope3/src/zope/app/browser/services/configuration/__init__.py Wed Apr 9 12:06:33 2003
@@ -214,7 +214,8 @@
context = field.context
if IComponentConfiguration.isImplementedBy(context):
# It's a configuration object. Just get the corresponsing attr
- path = getattr(context, self.__name__)
+ # XXX this code has no unittests !!!
+ path = getattr(context, field.__name__)
else:
# It must be a component that is about to be configured.
path = getPath(context)