mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-02 17:56:15 +01:00
core.Request: Add id property that is a shortcut to the reqid attribute
This commit is contained in:
parent
17e25776a2
commit
27c3159fdb
@ -2995,6 +2995,10 @@ class Request:
|
|||||||
def __lt__(self, other):
|
def __lt__(self, other):
|
||||||
return int(self.reqid) < int(other.reqid)
|
return int(self.reqid) < int(other.reqid)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def id(self):
|
||||||
|
return self.reqid
|
||||||
|
|
||||||
def read(self, root):
|
def read(self, root):
|
||||||
"""read in a request"""
|
"""read in a request"""
|
||||||
self._init_attributes()
|
self._init_attributes()
|
||||||
|
Loading…
Reference in New Issue
Block a user