[Zope-Checkins] CVS: Zope2 - Catalog.py:1.60.2.2.6.9

Jim Fulton jim@digiciool.com
Wed, 14 Mar 2001 11:28:26 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog
In directory korak:/tmp/cvs-serv6903

Modified Files:
      Tag: Catalog-BTrees-Integration
	Catalog.py 
Log Message:
Moved the uid string check from Catalog to ZCatalog, where it belongs.



--- Updated File Catalog.py in package Zope2 --
--- Catalog.py	2001/03/14 15:42:30	1.60.2.2.6.8
+++ Catalog.py	2001/03/14 16:28:26	1.60.2.2.6.9
@@ -104,8 +104,6 @@
 import BTrees.Length
 from SearchIndex.randid import randid
 
-StringType=type('')
-
 import time
 
 def orify(seq,
@@ -386,9 +384,6 @@
         'uid' is the unique Catalog identifier for this object
 
         """
-
-        if type(uid) is not StringType:
-            raise CatalogError('The object uniqie id must be a string.')
         
         data = self.data