split the formating rules from get_results
authorMichal Vyskocil <mvyskocil@suse.cz>
Tue, 20 Apr 2010 12:18:02 +0000 (14:18 +0200)
committerMichal Vyskocil <mvyskocil@suse.cz>
Tue, 20 Apr 2010 13:43:41 +0000 (15:43 +0200)
commitb17405d9d076ea13bcc731b2586287ff946873b4
tree81fc1400ec9f568838defa1db801e37e63fafb55
parentebc341e7b17a9a05056e1ee1157231a7eb29eb16
split the formating rules from get_results

The osc.core.get_results parses the xml and also construct the status
field in little bit complicate way. For future csv support it is
necessary split the xml parsing and formatting to two functions:
 * get_package_results - returns a dict containing all important
   elements
 * get_results - behave as old implementation, just do a formating only
osc/core.py