Skip to content

Commit

Permalink
beautificated
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Pelletier committed Aug 17, 1999
1 parent 2d50020 commit 7b7c052
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions ZCatalog.py
Expand Up @@ -95,7 +95,6 @@
from Acquisition import Implicit
from Persistence import Persistent
from Catalog import Catalog, orify
import pdb, traceback
from SearchIndex import UnIndex, UnTextIndex
import IOBTree

Expand Down Expand Up @@ -196,7 +195,6 @@ def manage_edit(self, threshold=1000, REQUEST=None):
return self.manage_main(self, REQUEST,
manage_tabs_message=message)



def manage_catalogObject(self, REQUEST, urls=None, blah=None):
""" index all Zope objects that 'urls' point to """
Expand Down Expand Up @@ -323,7 +321,6 @@ def manage_delIndexes(self, names, REQUEST):
return self.manage_catalogIndexes(self, REQUEST,
manage_tabs_message=message)


def catalog_object(self, obj, uid):
""" wrapper around catalog """
if not hasattr(self, '_v_total'):
Expand Down Expand Up @@ -411,9 +408,7 @@ def searchResults(self, REQUEST=None, used=None,
__call__=searchResults



# this stuff is so the find machinery works

## this stuff is so the find machinery works

meta_types=() # Sub-object types that are specific to this object

Expand Down Expand Up @@ -445,9 +440,7 @@ def valid_roles(self):
roles.sort()
return roles


# stolen from ZPublisher and modified slightly

## stolen from ZPublisher and modified slightly

def resolve_url(self, path, REQUEST):
""" The use of this function is depricated """
Expand All @@ -473,9 +466,6 @@ def resolve_url(self, path, REQUEST):
# waaa - traversal may return a "default object"
# like an index_html document, though you really
# wanted to get a Folder back :(
## print path
## print `object`
## print (str(req.PARENTS))

if hasattr(object, 'id'):
if callable(object.id):
Expand All @@ -484,7 +474,6 @@ def resolve_url(self, path, REQUEST):
elif hasattr(object, '__name__'):
name=object.__name__
else: name=''


if name != os.path.split(path)[-1]:
result = req.PARENTS[0]
Expand Down

0 comments on commit 7b7c052

Please sign in to comment.