Commit 703cbce5 authored by Fabien Morin's avatar Fabien Morin

add log levels


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20214 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 68e4f6f7
...@@ -345,14 +345,14 @@ class ManageModule: ...@@ -345,14 +345,14 @@ class ManageModule:
# field_nb is already used by another field. this can appen # field_nb is already used by another field. this can appen
# when there are several pages in the document. In such case # when there are several pages in the document. In such case
# the script find automatically the closest available value. # the script find automatically the closest available value.
LOG('ManageModule', 0, LOG('ManageModule', ERROR,
'can not add %s to dict : %s already used by %s ' % \ 'can not add %s to dict : %s already used by %s ' % \
(field_id, field_nb, field_nb_dict[field_nb])) (field_id, field_nb, field_nb_dict[field_nb]))
field_nb = field_nb + 1 field_nb = field_nb + 1
while field_nb in field_nb_dict.keys(): while field_nb in field_nb_dict.keys():
# trying next value # trying next value
field_nb = field_nb + 1 field_nb = field_nb + 1
LOG('ManageModule', 0, ' add %s to %s' % (field_id, field_nb)) LOG('ManageModule', INFO, ' add %s to %s' % (field_id, field_nb))
# value is available, no problem to link field_id to this field_nb # value is available, no problem to link field_id to this field_nb
field_nb_dict[field_nb] = field_id field_nb_dict[field_nb] = field_id
...@@ -556,7 +556,7 @@ class ManageFiles: ...@@ -556,7 +556,7 @@ class ManageFiles:
else: else:
TALES = "python: here.getProperty('" + cell_name[3:] +"')" TALES = "python: here.getProperty('" + cell_name[3:] +"')"
LOG('ManageFiles', 0, ' %s > %s ' % (cell_name, TALES)) LOG('ManageFiles', INFO, ' %s > %s ' % (cell_name, TALES))
c.setCellTALES(cell_name, TALES) c.setCellTALES(cell_name, TALES)
def getPDFFile(self, file_descriptor): def getPDFFile(self, file_descriptor):
......
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