1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

[webui] Fix Jürgen's Unicode issue and stupid default value assignment.

This commit is contained in:
Sascha Peilicke 2011-03-04 09:04:18 +01:00
parent 95bc493b19
commit 3bb9332376

View File

@ -3464,7 +3464,7 @@ def clone_request(apiurl, reqid, msg=None):
def create_submit_request(apiurl,
src_project, src_package,
dst_project=None, dst_package=None,
message=None, orev=None, src_update=None):
message="", orev=None, src_update=None):
import cgi
options_block=""
@ -3494,7 +3494,7 @@ def create_submit_request(apiurl,
orev or show_upstream_rev(apiurl, src_project, src_package),
targetxml,
options_block,
cgi.escape(message or ""))
cgi.escape(unicode(message, "utf8")))
u = makeurl(apiurl, ['request'], query='cmd=create')
f = http_POST(u, data=xml)