Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Oct 2, 2001
1 parent 25a8348 commit b299579
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ZCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
from Products.PluginIndexes.common.PluggableIndex import PluggableIndexInterface
from Products.PluginIndexes.TextIndex.Vocabulary import Vocabulary
from Products.PluginIndexes.TextIndex import Splitter
import string, urllib, os, sys, time
import string, urllib, os, sys, time, types


StringType=type('')

manage_addZCatalogForm=DTMLFile('dtml/addZCatalog',globals())

Expand Down Expand Up @@ -492,7 +492,7 @@ def catalog_object(self, obj, uid=None, idxs=[]):
"method if no unique id is provided when cataloging"
)
else: uid=string.join(uid(), '/')
elif type(uid) is not StringType:
elif not isinstance(uid,types.StringType):
raise CatalogError('The object unique id must be a string.')

self._catalog.catalogObject(obj, uid, None,idxs)
Expand Down

0 comments on commit b299579

Please sign in to comment.