[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/utility - __init__.py:1.7

Fred L. Drake, Jr. fred@zope.com
Wed, 2 Jul 2003 13:52:46 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/services/utility
In directory cvs.zope.org:/tmp/cvs-serv21095

Modified Files:
	__init__.py 
Log Message:
- change name of local variable to be less confusing
- unwrap interface before calling queryRegistrations()


=== Zope3/src/zope/app/browser/services/utility/__init__.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/services/utility/__init__.py:1.6	Tue Jul  1 15:20:45 2003
+++ Zope3/src/zope/app/browser/services/utility/__init__.py	Wed Jul  2 13:52:41 2003
@@ -190,8 +190,9 @@
         folder = zapi.getParent(self.context)
         iface = folder.resolve(self.request['interface'])
         name = self.request['name']
-        cr = self.context.queryRegistrations(name, iface)
-        form = zapi.getView(cr, "ChangeRegistrations", self.request)
+        iface = removeAllProxies(iface)
+        regstack = self.context.queryRegistrations(name, iface)
+        form = zapi.getView(regstack, "ChangeRegistrations", self.request)
         form.update()
         return form