1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 18:26:15 +01:00

- unbreak maintenance request creation

This commit is contained in:
Adrian Schröter 2011-03-11 11:07:15 +01:00
parent b46d287570
commit 4c970f867b

View File

@ -3485,7 +3485,7 @@ def create_release_request(apiurl, src_project, message=''):
def create_maintenance_request(apiurl, src_project, tgt_project, message=''): def create_maintenance_request(apiurl, src_project, tgt_project, message=''):
import cgi import cgi
r = Request() r = Request()
r.add_action('maintenance_incident', src_project=src_project, src_package='foo', tgt_project=tgt_project) r.add_action('maintenance_incident', src_project=src_project, tgt_project=tgt_project)
# XXX: clarify why we need the unicode(...) stuff # XXX: clarify why we need the unicode(...) stuff
r.description = cgi.escape(unicode(message, 'utf8')) r.description = cgi.escape(unicode(message, 'utf8'))
r.create(apiurl) r.create(apiurl)