Commit 1b9b1403 authored by Jérome Perrin's avatar Jérome Perrin

Log with PROBLEM level when the id generator is not found



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9404 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2e0efbf5
......@@ -49,7 +49,7 @@ from random import randint
import os
from zLOG import LOG
from zLOG import LOG, PROBLEM
# Dummy Functions for update / upgrade
def dummyFilter(object,REQUEST=None):
......@@ -160,7 +160,9 @@ class FolderMixIn(ExtensionClass.Base, CopyContainer):
if idGenerator is None:
idGenerator = self._generateNextId
else:
LOG('Folder.generateNewId', 0, '%s.id_generator is not a string. Falling back on default behaviour.' % (self.absolute_url(), ))
LOG('Folder.generateNewId', PROBLEM,
'%s.id_generator is not a string. Falling back on default behaviour.'
% (self.getPath(), ))
idGenerator = self._generateNextId
my_id = idGenerator()
while self.hasContent(my_id):
......
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