Commit eb026cbd authored by Jérome Perrin's avatar Jérome Perrin

When CategoryTool cannot resolve an object path, it's usually a serious

problem.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18810 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aff328bd
...@@ -46,7 +46,7 @@ from OFS.Traversable import NotFound ...@@ -46,7 +46,7 @@ from OFS.Traversable import NotFound
import re import re
from zLOG import LOG, PROBLEM, WARNING from zLOG import LOG, PROBLEM, WARNING, ERROR
_marker = object() _marker = object()
...@@ -1071,7 +1071,7 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -1071,7 +1071,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
if category_value is None : if category_value is None :
message = "category does not exists for %s (%s)"%( message = "category does not exists for %s (%s)"%(
context.getPath(), category_list) context.getPath(), category_list)
LOG('CMFCategory', PROBLEM, message) LOG('CMFCategory', ERROR, message)
raise CategoryError (message) raise CategoryError (message)
else : else :
result.append('%s/%s' % (base_category_id, category_value.getRelativeUrl())) result.append('%s/%s' % (base_category_id, category_value.getRelativeUrl()))
...@@ -1080,7 +1080,7 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -1080,7 +1080,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
if category_value is None : if category_value is None :
message = "category does not exists for %s (%s)"%( message = "category does not exists for %s (%s)"%(
context.getPath(), category_list) context.getPath(), category_list)
LOG('CMFCategory', PROBLEM, message) LOG('CMFCategory', ERROR, message)
raise CategoryError (message) raise CategoryError (message)
else : else :
result.append(category_value.getRelativeUrl()) result.append(category_value.getRelativeUrl())
......
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