Skip to content

Commit

Permalink
- better use standard function for submit request (adds revision by d…
Browse files Browse the repository at this point in the history
…efault)
  • Loading branch information
adrianschroeter committed Jun 26, 2012
1 parent ceb3265 commit 09c66f1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2175,12 +2175,10 @@ def do_request(self, subcmd, opts, *args):
print "/", package,
repl = raw_input('\nForward this submit to it? (y/n)')
if repl.lower() == 'y':
r = Request()
r.add_action('submit', src_project=action.tgt_project, src_package=action.tgt_package,
tgt_project=project, tgt_package=package)
r.description = cgi.escape("%s (forwarded request %s from %s)", ( rq.description, reqid, rq.get_creator))
r.create(self.get_api_url())
print r.reqid
rid = create_submit_request(src_project=action.tgt_project, src_package=action.tgt_package,
tgt_project=project, tgt_package=package,
cgi.escape("%s (forwarded request %s from %s)", ( rq.description, reqid, rq.get_creator)))
print rid

# editmeta and its aliases are all depracated
@cmdln.alias("editprj")
Expand Down

0 comments on commit 09c66f1

Please sign in to comment.