[Zope-Checkins] CVS: Zope3/lib/python/Zope/ObjectHub - ObjectHub.py:1.6

Steve Alexander steve@cat-box.net
Sun, 7 Jul 2002 16:32:33 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/ObjectHub
In directory cvs.zope.org:/tmp/cvs-serv27091

Modified Files:
	ObjectHub.py 
Log Message:
various reformatting of code, and small fix to location code and tests.


=== Zope3/lib/python/Zope/ObjectHub/ObjectHub.py 1.5 => 1.6 ===
         '''See interface IObjectHub'''
         canonical_location=locationAsUnicode(location)
-
+        if location[0] != u'/':
+            raise ValueError, "Location must be absolute"
         ruid = self._registerObject(canonical_location)
 
         # send out to plugins IRuidObjectRegisteredEvent