From 525cc8069de4db71f584ddd6124c0c0b3cbde9c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 19 May 2008 10:20:19 +0200 Subject: [PATCH] Convert all args to str in bug report --- tryton/common/common.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tryton/common/common.py b/tryton/common/common.py index 39b171be66..2feec4da21 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -366,12 +366,12 @@ def send_bugtracker(msg, parent): issue_ids = server.filter('issue', None, {'messages': msg_ids}) if issue_ids: issue_id = issue_ids[0] - server.set('issue' + str(issue_id), *['nosy=+'+user]) + server.set('issue' + str(issue_id), *['nosy=+' + str(user)]) if not issue_id: - msg_id = server.create('msg', *['content='+msg, - 'author='+user, 'summary=' + msg_md5]) - issue_id = server.create('issue', *['messages='+str(msg_id), - 'nosy='+user, 'title='+title, 'priority=bug']) + msg_id = server.create('msg', *['content=' + str(msg), + 'author=' + str(user), 'summary=' + str(msg_md5)]) + issue_id = server.create('issue', *['messages=' + str(msg_id), + 'nosy=' + str(user), 'title=' + str(title), 'priority=bug']) except Exception, exception: message(_('Exception:') + '\n' + str(exception), parent, msg_type=gtk.MESSAGE_ERROR)