merging from the trunk

bzr revid: mga@tinyerp.com-20081222192515-9hde2i50636imbrl
This commit is contained in:
mga (Tiny/Axelor) 2008-12-23 00:55:15 +05:30
commit b3bd596db5
1 changed files with 4 additions and 1 deletions

View File

@ -783,7 +783,10 @@ def debug(what):
st = stack()[1]
param = re.split("debug *\((.+)\)", st[4][0].strip())[1].strip()
while param.count(')') > param.count('('): param = param[:param.rfind(')')]
netsvc.Logger().notifyChannel(st[3], netsvc.LOG_DEBUG, "%s = %s" % (param, pformat(what)))
what = pformat(what)
if param != what:
what = "%s = %s" % (param, what)
netsvc.Logger().notifyChannel(st[3], netsvc.LOG_DEBUG, what)
icons = map(lambda x: (x,x), ['STOCK_ABOUT', 'STOCK_ADD', 'STOCK_APPLY', 'STOCK_BOLD',