1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 09:46:19 +02:00
github.com_openSUSE_osc/osc
Marcus Huewe b2838dd88d - rewrote Request class and friends
- rewrote Action class: instances only provide attributes for their specific type (for details see class doc).
  Renamed "dst_project" attribute to "tgt_project" and "dst_package" attribute to "tgt_package" (only affects
  types which have a <target /> element)
- added AbstractState class: Base class which represents state-like objects (<review />, <state />)
- rewrote ReviewState and RequestState classes
- rewrote Request class: apart from internal rewrites the format of the "__str__" and "list_view" methods
  slightly changed

Now it should be much easier to create new requests without constructing the
request xml by hand.
Example:
 r = Request()
 r.add_action('submit', src_project='foo', src_package='bar', tgt_project='targetprj', tgt_package='targetpkg')
 r.add_action('set_bugowner', tgt_project='foobar', person_name='buguser')
 r.add_action('delete', tgt_project='prj', tgt_package='deleteme')
 print r.to_str()
 ->
<request>
  <action type="submit">
    <source package="bar" project="foo" />
    <target package="targetpkg" project="targetprj" />
  </action>
  <action type="set_bugowner">
    <target project="foobar" />
    <person name="buguser" />
  </action>
  <action type="delete">
    <target package="deleteme" project="prj" />
  </action>
</request>
2010-12-30 02:30:37 +01:00
..
util - util/debquery.py: workaround for python2.4's tarfile module 2010-12-04 12:11:34 +01:00
__init__.py add vim mode lines to avoid evil tab characters :-) 2010-02-25 09:53:45 +01:00
.gitignore convert svn:ignore to gitignore 2009-12-03 19:19:53 +01:00
babysitter.py - babysitter.py: catch util.packagequery.PackageError 2010-10-21 21:51:20 +02:00
build.py fix --define 2010-12-22 08:29:08 +01:00
checker.py ignore gpg key import errors 2010-08-17 15:16:00 +02:00
cmdln.py Return argument to do_man back 2010-12-22 13:29:52 +01:00
commandline.py New config option 'checkout_rooted'. Default off to retain current 2010-12-27 23:03:17 +01:00
conf.py New config option 'checkout_rooted'. Default off to retain current 2010-12-27 23:03:17 +01:00
core.py - rewrote Request class and friends 2010-12-30 02:30:37 +01:00
fetch.py - enable cpio bulk download by default 2010-09-07 16:08:05 +02:00
meter.py - meter.py: reduced status bar (this one is used if there's no Content-Length header) 2010-09-09 14:58:33 +02:00
OscConfigParser.py - OscConfigParser.__str__: added special handling for continuation lines 2010-12-18 15:12:07 +01:00
oscerr.py - do_repairwc/wc_repair: repair missing "_apiurl" file 2010-09-28 23:07:33 +02:00
oscssl.py - fixed proxy handling (broken by 53361a50f1) 2010-12-17 18:14:11 +01:00
oscsslexcp.py - remove shebang line to make rpmlint happy 2010-03-21 22:57:06 +01:00