From 27c3159fdb28736b970cc33d5a16c6258cb61096 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Fri, 10 Feb 2023 11:05:40 +0100 Subject: [PATCH] core.Request: Add id property that is a shortcut to the reqid attribute --- osc/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osc/core.py b/osc/core.py index da5ee20a..bdd87046 100644 --- a/osc/core.py +++ b/osc/core.py @@ -2995,6 +2995,10 @@ class Request: def __lt__(self, other): return int(self.reqid) < int(other.reqid) + @property + def id(self): + return self.reqid + def read(self, root): """read in a request""" self._init_attributes()