1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-07 05:38:43 +02:00

Readd Request.get_creator method (for backward compatibility)

Request.get_creator is used by some factory bots (see comment
in issue #286).

Note: Request.get_creator is deprecated and the "creator" attribute
should be used instead.
This commit is contained in:
Marcus Huewe
2017-04-12 14:24:04 +02:00
parent 20e7a132ab
commit 164435dcb9

View File

@@ -2738,6 +2738,13 @@ class Request:
return self.actions
return [i for i in self.actions if i.type in types]
def get_creator(self):
"""Return the creator of the request.
This method is deprecated (use "creator" attribute instead").
"""
return self.creator
def to_xml(self):
"""serialize object to XML"""
root = ET.Element('request')