[Zope3-checkins] CVS: Zope3/src/zope/app/services - adapter.py:1.12

Jim Fulton jim@zope.com
Fri, 21 Mar 2003 16:07:41 -0500


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

Modified Files:
	adapter.py 
Log Message:
Added an extra argument to the constructor so we could use an add
form. The adapter service needs a major overhaul.


=== Zope3/src/zope/app/services/adapter.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/services/adapter.py:1.11	Tue Mar 11 11:11:22 2003
+++ Zope3/src/zope/app/services/adapter.py	Fri Mar 21 16:07:40 2003
@@ -156,7 +156,11 @@
     #     required=False,explicitly_unrequired=True in the schema field
     #     so None will get passed in.
     def __init__(self, forInterface=None, providedInterface=None,
-                 factoryName=None, adapterName=u''):
+                 factoryName=None, adapterName=u'',
+                 # XXX The permission isn't plumbed. We're going to
+                 # redo all of this anyway.  
+                 permission=None,
+                 ):
         if None in (providedInterface, factoryName):
             raise TypeError(
                 "Must provide 'providedInterface' and 'factoryName'")