[elbe-devel] [PATCH 21/28] pylint: daemons soap: fix self parameters called ctx

Torben Hohn torben.hohn at linutronix.de
Wed Aug 22 11:29:15 CEST 2018


pylint complains, when argument is not named sef, when it should be.

fix it.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/daemons/soap/esoap.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/elbepack/daemons/soap/esoap.py b/elbepack/daemons/soap/esoap.py
index 5d1306ee..dfed16e0 100644
--- a/elbepack/daemons/soap/esoap.py
+++ b/elbepack/daemons/soap/esoap.py
@@ -61,8 +61,8 @@ class ESoap (ServiceBase):
     @rpc(_returns=Array(String))
     @soap_faults
     @authenticated_admin
-    def list_users(ctx):
-        return [u.name for u in ctx.app.pm.db.list_users()]
+    def list_users(self):
+        return [u.name for u in self.app.pm.db.list_users()]
 
     @rpc(String,String,String,String,Boolean)
     @soap_faults
@@ -76,8 +76,8 @@ class ESoap (ServiceBase):
     @rpc(_returns=Array(SoapProject))
     @soap_faults
     @authenticated_admin
-    def list_projects(ctx):
-        return ctx.app.pm.db.list_projects()
+    def list_projects(self):
+        return self.app.pm.db.list_projects()
 
     @rpc(String, String, _returns=Array(SoapFile))
     @authenticated_uid
-- 
2.11.0




More information about the elbe-devel mailing list