[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ConnectionService/Views/Browser - AddConnectionConfiguration.py:1.2

Viktorija Zaksiene ryzaja@codeworks.lt
Mon, 9 Dec 2002 11:32:58 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/ConnectionService/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv3067

Modified Files:
	AddConnectionConfiguration.py 
Log Message:
Make sure connection name is set before registering a ConnectionConfiguration

=== Zope3/lib/python/Zope/App/OFS/Services/ConnectionService/Views/Browser/AddConnectionConfiguration.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ConnectionService/Views/Browser/AddConnectionConfiguration.py:1.1	Mon Dec  9 10:26:42 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ConnectionService/Views/Browser/AddConnectionConfiguration.py	Mon Dec  9 11:32:58 2002
@@ -42,8 +42,9 @@
         return paths
 
     def action(self, component_path):
-        cd = ConnectionConfiguration(None, component_path)
+        connection_name = self.connectionName.getData()
+        cd = ConnectionConfiguration(connection_name, component_path)
         cd = self.context.add(cd)
-        getWidgetsDataForContent(self, IConnectionConfiguration, cd)
+        getWidgetsDataForContent(self, IConnectionConfiguration, content=cd,
+                                 required=True)
         self.request.response.redirect(self.context.nextURL())
-