Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/plone/folder/nogopip.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,13 @@ def documentToKeyMap(self):
# results themselves. luckily this is only ever called from
# `sortResults`, so we can get it form there. oh, and lurker
# says this won't work in jython, though! :)
rs = currentframe().f_back.f_locals["rs"]
caller_locals = currentframe().f_back.f_locals
catalog = caller_locals["self"].aq_parent
rs = caller_locals["rs"]
rids = {}
items = []
containers = {}
getpath = self.catalog.paths.get
getpath = catalog.getpath
root = getUtility(ISiteRoot).getPhysicalRoot()
for rid in rs:
path = getpath(rid)
Expand Down
3 changes: 0 additions & 3 deletions src/plone/folder/ordered.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ def manage_renameObject(self, id, new_id, REQUEST=None):
if old_position is None:
return result
self.moveObjectToPosition(new_id, old_position, suppress_events=True)
reindex = getattr(self._getOb(new_id), "reindexObject", None)
if reindex is not None:
reindex(idxs=["getObjPositionInParent"])
return result

# Dict interface
Expand Down