[Zope3-checkins] CVS: Zope3/src/zope/app/registration - interfaces.py:1.5

Jim Fulton jim at zope.com
Thu Apr 8 17:03:10 EDT 2004


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

Modified Files:
	interfaces.py 
Log Message:
Removed the id key from info. Views can compute this if they want it.

Also, got rid of the keep_dummy option to info.  Clients didn't seem
to trust it anyway, so it did no good.  The info method doesn't return 
dummy entries (for the None stack marker) anymore,


=== Zope3/src/zope/app/registration/interfaces.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/registration/interfaces.py:1.4	Wed Mar 24 05:21:11 2004
+++ Zope3/src/zope/app/registration/interfaces.py	Thu Apr  8 17:02:39 2004
@@ -211,24 +211,15 @@
         Otherwise, returns None.
         """
 
-    def info(keep_dummy=False):
+    def info():
         """Return a sequence of registration information.
 
         The sequence items are mapping objects with keys:
 
-        id -- A string that can be used to uniquely identify the
-              registration.
-
         active -- A boolean indicating whether the registration is
                   active.
 
         registration -- The registration object.
-
-        If keep_dummy is true, an entry corresponding to the dummy
-        entry's position is returned whose value is
-        {id: '',
-         active: (True iff it is the first entry),
-         registration: None}.
         """
 
     def __nonzero__(self):




More information about the Zope3-Checkins mailing list