Commit 63ef7a8b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Disable excessive log calls.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3047 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4487756
......@@ -407,7 +407,7 @@ be a problem)."""
"""
update_list = []
LOG('Folder, updateAll ',0,"first one self.path: %s" % self.getPath())
#LOG('Folder, updateAll ',0,"first one self.path: %s" % self.getPath())
if include==1 and filter(object=self.getObject(),request=request):
method_message = method(object=self.getObject(),request=request)
......@@ -441,7 +441,7 @@ be a problem)."""
test have to be a method with one parameter
migrations is a dictionnary of class, { from_class : to_class }
"""
LOG("upradeObjectClass: folder ",0,self.id)
#LOG("upradeObjectClass: folder ",0,self.id)
test_list = []
folder = self.getObject()
for o in self.listFolderContents():
......@@ -529,7 +529,7 @@ be a problem)."""
self.flushActivity(invoke = 0, method_id='recursiveImmediateReindexObject') # This might create a recursive lock
self.immediateReindexObject(*args, **kw)
# Reindex contents
LOG('recursiveImmediateReindexObject', 0, 'self = %r, self.objectValues = %r' % (self, self.objectValues()))
#LOG('recursiveImmediateReindexObject', 0, 'self = %r, self.objectValues = %r' % (self, self.objectValues()))
for c in self.objectValues():
if hasattr(aq_base(c), 'recursiveImmediateReindexObject'):
c.recursiveImmediateReindexObject(*args, **kw)
......@@ -688,12 +688,12 @@ be a problem)."""
from_object_url = from_object.getRelativeUrl()
corrected_list = []
for object in from_object_related_object_list:
LOG('Folder.mergeContent, working on object:',0,object)
#LOG('Folder.mergeContent, working on object:',0,object)
object_url = object.getRelativeUrl()
new_category_list = []
found = 0
for category in object.getCategoryList(): # so ('destination/person/1',...)
LOG('Folder.mergeContent, working on category:',0,category)
#LOG('Folder.mergeContent, working on category:',0,category)
linked_object_url = '/'.join(category.split('/')[1:])
if linked_object_url == from_object_url:
base_category = category.split('/')[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment