mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-03 18:16:17 +01:00
b2838dd88d
- 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> |
||
---|---|---|
.. | ||
util | ||
__init__.py | ||
.gitignore | ||
babysitter.py | ||
build.py | ||
checker.py | ||
cmdln.py | ||
commandline.py | ||
conf.py | ||
core.py | ||
fetch.py | ||
meter.py | ||
OscConfigParser.py | ||
oscerr.py | ||
oscssl.py | ||
oscsslexcp.py |