Commit 3d03c2fa authored by Bartek Górny's avatar Bartek Górny

in log, allow for one arg only

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10397 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 89ff6ee7
No related merge requests found
...@@ -2196,7 +2196,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, Historical, ERP5Property ...@@ -2196,7 +2196,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, Historical, ERP5Property
return getattr(self,'title',None) return getattr(self,'title',None)
security.declarePublic('log') security.declarePublic('log')
def log(self, description, content, level=INFO): def log(self, description, content='', level=INFO):
"""Put a log message """ """Put a log message """
if content=='': # allow for content only while keeping interface if content=='': # allow for content only while keeping interface
description,content=content,description description,content=content,description
......
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