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:
@@ -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')
|
||||
|
Reference in New Issue
Block a user