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

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Apr 17 10:33:31 EDT 2004


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

Modified Files:
	registration.py 
Log Message:


Expanded local registry registrations() to
registrations(localOnly=False). When localOnly is set to True, show only
registrations made in this service.



Fixed buglet.




=== Zope3/src/zope/app/registration/registration.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/registration/registration.py:1.7	Thu Apr 15 11:29:39 2004
+++ Zope3/src/zope/app/registration/registration.py	Sat Apr 17 10:33:30 2004
@@ -366,7 +366,8 @@
                   for registration in data
                  ]
 
-        result[0]['active'] = True
+        if result:
+            result[0]['active'] = True
 
         return [r for r in result if r['registration'] is not None]
 




More information about the Zope3-Checkins mailing list