[elbe-devel] [PATCH 07/12] esoap: implement get_project() returning a single SoapProject
Torben Hohn
torben.hohn at linutronix.de
Thu Sep 26 15:33:27 CEST 2019
prepare to allow wait_busy to check for project build success.
implement get_project() which is similar to list_projects but does
not require admin privilege.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/daemons/soap/esoap.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/elbepack/daemons/soap/esoap.py b/elbepack/daemons/soap/esoap.py
index 7b85584be..468df8a5e 100644
--- a/elbepack/daemons/soap/esoap.py
+++ b/elbepack/daemons/soap/esoap.py
@@ -114,6 +114,13 @@ class ESoap (ServiceBase):
def list_projects(self):
return self.app.pm.db.list_projects()
+ @rpc(String, _returns=SoapProject)
+ @soap_faults
+ @authenticated_uid
+ def get_project(self, uid, builddir):
+ self.app.pm.open_project(uid, builddir)
+ return self.app.pm.db.get_project_data(builddir)
+
@rpc(String, _returns=Array(SoapFile))
@authenticated_uid
@soap_faults
--
2.20.1
More information about the elbe-devel
mailing list