[Zope3-checkins] CVS: Zope3/src/zope/app/browser/utilities - schema.py:1.7

Jim Fulton jim at zope.com
Sat Mar 6 11:50:47 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/utilities
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/browser/utilities

Modified Files:
	schema.py 
Log Message:
Converted most getAdapter calls to use interface calls instead.


=== Zope3/src/zope/app/browser/utilities/schema.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/utilities/schema.py:1.6	Fri Mar  5 23:17:21 2004
+++ Zope3/src/zope/app/browser/utilities/schema.py	Sat Mar  6 11:50:16 2004
@@ -44,7 +44,7 @@
 
     def update(self):
         status = ''
-        container = zapi.getAdapter(self.context, IMutableSchema)
+        container = IMutableSchema(self.context)
         request = self.request
 
         if 'DELETE' in request:
@@ -80,7 +80,7 @@
     schema = property(_get_schema)
 
     def _setUpWidgets(self):
-        adapted = zapi.getAdapter(self.context, self.schema)
+        adapted = self.schema(self.context)
         if adapted is not self.context:
             adapted.__parent__ = self.context
         setUpEditWidgets(self, self.schema, source=self.adapted,




More information about the Zope3-Checkins mailing list