Branch: refs/heads/master
Home: https://github.com/openSUSE/osc2
Commit: 23124d0b1750fa64302085b37cf25992034a6d11
https://github.com/openSUSE/osc2/commit/23124d0b1750fa64302085b37cf25992034a...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M test/test_remote.py
Log Message:
-----------
- test.test_remote: added testcases for Request's diff method
Commit: 8d9fdfd7c60dd4177e5a0fbb3e079d72d2a0c9af
https://github.com/openSUSE/osc2/commit/8d9fdfd7c60dd4177e5a0fbb3e079d72d2a0...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M test/test_remote.py
Log Message:
-----------
- test.test_remote: test _attrib_filter in class ElementFactory
Commit: 35788829d8e978fcf2befffccb596d33892a2adc
https://github.com/openSUSE/osc2/commit/35788829d8e978fcf2befffccb596d33892a...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M osc/remote.py
Log Message:
-----------
- osc.remote: added _attrib_filter method to class ElementFactory
It filters out all attributes with value None (an ideal implementation
would use an OrderedDict (makes testing easier/more predictable))
Commit: a2e9c95d5a60588b1dcb9f28c92f5abbd101f7f2
https://github.com/openSUSE/osc2/commit/a2e9c95d5a60588b1dcb9f28c92f5abbd101...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M osc/remote.py
Log Message:
-----------
- osc.remote.RORemoteFile: fixed minor bug: use passed method instead of hardcoding 'GET'
Commit: 98d8faef357657e59f98e7d5f84e2c1884dacb24
https://github.com/openSUSE/osc2/commit/98d8faef357657e59f98e7d5f84e2c1884da...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M osc/remote.py
Log Message:
-----------
- osc.remote.Request: implemented diff method
Commit: 3a9ec36945da6ab9e2450b149b8612e5087d3774
https://github.com/openSUSE/osc2/commit/3a9ec36945da6ab9e2450b149b8612e5087d...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M test/test_remote.py
Log Message:
-----------
- test.test_remote: added testcase for Request's __cmp__ method
Commit: e8c677411ebc6a6299aafafa84af5067277c25d9
https://github.com/openSUSE/osc2/commit/e8c677411ebc6a6299aafafa84af5067277c...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M osc/remote.py
Log Message:
-----------
- osc.remote: added __cmp__ method to Request class
Commit: 0cd39a0a652c32d127a9dc701a703fa16ece1993
https://github.com/openSUSE/osc2/commit/0cd39a0a652c32d127a9dc701a703fa16ece...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M test/test_oscargs.py
Log Message:
-----------
- test.test_oscargs: added another testcase for subclassing the OscArgs class
(this was introduced because there was a bug in the osc.oscargs code)
Commit: 973321b7ed3728a41bd6f4c645a01c9bd025456a
https://github.com/openSUSE/osc2/commit/973321b7ed3728a41bd6f4c645a01c9bd025...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M osc/oscargs.py
Log Message:
-----------
- osc.oscargs: fixed bug and added __contains__ and __iter__ methods to class ResolvedInfo
also changed behaviour of __getattr__ (that is ResolvedInfo can be treated like a dict)
Commit: 7ad93435aede6b56dd9f64e49f1716cd1332e470
https://github.com/openSUSE/osc2/commit/7ad93435aede6b56dd9f64e49f1716cd1332...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M test/util/test_xpath.py
Log Message:
-----------
- test.util.test_xpath: added additional testcases for the GeneratorDelegate and new testcases for the dummy method
Now it is possible to use an arbitrary expression as a "generator".
Additionally a dummy method was introduced in order to avoid "xp is None"
checks in the code:
Example/use case:
xp = None
for i in some_list:
if xp is None:
xp = xpb.foo[xpb.attr(i) == '2']
else:
xp = xp & xpb.foo[xpb.attr(i) == '2']
can be written as:
xp = xpb.dummy()
for i in some_list:
xp = xp & xpb.foo[xpb.attr(i) == '2']
Commit: 0b9201dd4c2bf710202086207e7e68ffa25b114f
https://github.com/openSUSE/osc2/commit/0b9201dd4c2bf710202086207e7e68ffa25b...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M osc/util/xpath.py
Log Message:
-----------
- osc.util.xpath: reworked GeneratorDelegate code and introduced new DummyExpression class
Now an arbitrary expression can be used as a "generator" (do not confuse with
python's generator objects)
Commit: e7309cf33a560bdf9c86aff56b4df5e973816c92
https://github.com/openSUSE/osc2/commit/e7309cf33a560bdf9c86aff56b4df5e97381...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
A test/test_search.py
A test/test_search_fixtures/collection_request.xsd
A test/test_search_fixtures/collection_request1.xml
A test/test_search_fixtures/collection_request2.xml
A test/test_search_fixtures/request_simple.xsd
Log Message:
-----------
- test.test_search: added initial testcases for the search module
Commit: c2b7318c8753d71bee9c51d8f422d9070d5aa1ce
https://github.com/openSUSE/osc2/commit/c2b7318c8753d71bee9c51d8f422d9070d5a...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
M test/suite.py
Log Message:
-----------
- test.suite: added test_search module to the suite
Commit: 13e10b6a800a0ab6a991ea73ca0fcf5c1e544257
https://github.com/openSUSE/osc2/commit/13e10b6a800a0ab6a991ea73ca0fcf5c1e54...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
A osc/search.py
Log Message:
-----------
- osc.search: added initial version of a search module
Commit: ac84fd927f5675e46df8fbde0b030a2995fbfcf8
https://github.com/openSUSE/osc2/commit/ac84fd927f5675e46df8fbde0b030a2995fb...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
A osc/cli/description.py
Log Message:
-----------
- osc.cli: added cli package
Added description module which can be used to define a argparse
ui in a descriptive manner. The syntax for defining a command is
similar to defining models in the django framework (that's what
inspired me).
Example:
OscCommand is a base class for all toplevel osc commands.
class Request(CommandDescription, OscCommand):
"""Show and modify requests."""
cmd = 'request'
class RequestList(CommandDescription, Request):
"""List requests.
By default open requests for a specific project or package will be
listed.
Examples:
osc request list api://
osc request list api://project
osc request list api://project/package
"""
cmd = 'list'
args = 'api://project?/package?'
opt_user = Option('U', 'user', 'list only requests for USER')
opt_group = Option('G', 'group', 'list only requests for GROUP')
opt_state = Option('s', 'state', 'list only requests with state STATE',
choices=['new', 'review', 'accepted', 'revoked',
'declined', 'superseded'], action='append',
default=['new', 'review'])
func = call(request.list)
That is with the help of the inheritance hierarchy we can build a
command <-> subcommand hierarchy. For more details and examples
have a look at the following commits or at this blog post
http://lizards.opensuse.org/2012/08/07/gsoc-osc2-client-summary-of-week-11/
Commit: bfbc7a2703d5b7907e3f0225094888891ca295eb
https://github.com/openSUSE/osc2/commit/bfbc7a2703d5b7907e3f0225094888891ca2...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
A osc/cli/render.py
Log Message:
-----------
- osc.cli: added render module.
It provides a class to render templates.
Commit: 4675706f117705694a6e2aa614b440fac643f344
https://github.com/openSUSE/osc2/commit/4675706f117705694a6e2aa614b440fac643...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
A osc/cli/cli.py
Log Message:
-----------
- osc.cli: added cli module
The cli module acts the main entry point for the cli package.
Commit: 50cb22dda75929ac29b551cc644f1a6aba933127
https://github.com/openSUSE/osc2/commit/50cb22dda75929ac29b551cc644f1a6aba93...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
A osc/cli/util/__init__.py
A osc/cli/util/env.py
Log Message:
-----------
- osc.cli.util: added initial util package.
So far it contains an env module which provides some functions to
run applications from the enviroment (for instance $PAGER or $EDITOR)
Commit: 040e3dbabdf682fa1db6811b845e8ac63a725c74
https://github.com/openSUSE/osc2/commit/040e3dbabdf682fa1db6811b845e8ac63a72...
Author: Marcus Huewe
Date: 2012-08-14 (Tue, 14 Aug 2012)
Changed paths:
A osc/cli/request/__init__.py
A osc/cli/request/macros.jinja2
A osc/cli/request/request.py
A osc/cli/request/request_list.jinja2
A osc/cli/request/request_show.jinja2
A osc/cli/request/ui.py
Log Message:
-----------
- osc.cli.request: added initial version of the "request" command
Compare: https://github.com/openSUSE/osc2/compare/6ee1116441a5...040e3dbabdf6