1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-07 21:58:41 +02:00

Merge branch 'master' of gitorious.org:opensuse/osc

This commit is contained in:
Michael Schroeder
2010-01-21 14:47:39 +01:00
2 changed files with 4 additions and 2 deletions

View File

@@ -584,7 +584,8 @@ class Osc(cmdln.Cmdln):
opts.set = opts.set.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')
for i in opts.set.split(','):
values += '<value>%s</value>' % i
d = '<attributes><attribute name=\'%s\' >%s</attribute></attributes>' % (opts.attribute, values)
aname = opts.attribute.split(":")
d = '<attributes><attribute namespace=\'%s\' name=\'%s\' >%s</attribute></attributes>' % (aname[0], aname[1], values)
url = makeurl(conf.config['apiurl'], attributepath)
for data in streamfile(url, http_POST, data=d):
sys.stdout.write(data)