[elbe-devel] [PATCH 18/25] pylint: daemons soap: __init__() ESoap with self.app and self.transport
Torben Hohn
torben.hohn at linutronix.de
Wed Aug 22 10:42:19 CEST 2018
self.app and self.transport are setup via spyne, but pylint
does not get that.
pylint complains:
--------------------------------------------------------------------------
elbepack/daemons/soap/esoap.py:50: [E1101(no-member), ESoap.login] Instance of 'ESoap' has no 'transport' member
elbepack/daemons/soap/esoap.py:51: [E1101(no-member), ESoap.login] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:59: [E1101(no-member), ESoap.list_users] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:68: [E1101(no-member), ESoap.add_user] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:74: [E1101(no-member), ESoap.list_projects] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:80: [E1101(no-member), ESoap.get_files] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:92: [E1101(no-member), ESoap.upload_file] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:94: [E1101(no-member), ESoap.upload_file] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:104: [E1101(no-member), ESoap.upload_file] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:107: [E1101(no-member), ESoap.upload_file] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:108: [E1101(no-member), ESoap.upload_file] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:110: [E1101(no-member), ESoap.upload_file] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:144: [E1101(no-member), ESoap.build_chroot_tarball] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:145: [E1101(no-member), ESoap.build_chroot_tarball] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:151: [E1101(no-member), ESoap.build_sysroot] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:152: [E1101(no-member), ESoap.build_sysroot] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:158: [E1101(no-member), ESoap.build_sdk] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:159: [E1101(no-member), ESoap.build_sdk] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:165: [E1101(no-member), ESoap.build_cdroms] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:166: [E1101(no-member), ESoap.build_cdroms] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:175: [E1101(no-member), ESoap.build] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:176: [E1101(no-member), ESoap.build] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:183: [E1101(no-member), ESoap.build_pbuilder] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:184: [E1101(no-member), ESoap.build_pbuilder] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:190: [E1101(no-member), ESoap.update_pbuilder] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:191: [E1101(no-member), ESoap.update_pbuilder] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:197: [E1101(no-member), ESoap.start_cdrom] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:210: [E1101(no-member), ESoap.append_cdrom] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:224: [E1101(no-member), ESoap.finish_cdrom] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:226: [E1101(no-member), ESoap.finish_cdrom] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:232: [E1101(no-member), ESoap.start_pdebuild] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:244: [E1101(no-member), ESoap.append_pdebuild] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:257: [E1101(no-member), ESoap.finish_pdebuild] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:258: [E1101(no-member), ESoap.finish_pdebuild] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:264: [E1101(no-member), ESoap.start_upload_orig] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:272: [E1101(no-member), ESoap.start_upload_orig] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:278: [E1101(no-member), ESoap.append_upload_orig] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:280: [E1101(no-member), ESoap.append_upload_orig] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:300: [E1101(no-member), ESoap.reset_project] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:306: [E1101(no-member), ESoap.del_project] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:315: [E1101(no-member), ESoap.create_project] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:324: [E1101(no-member), ESoap.new_project] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:330: [E1101(no-member), ESoap.get_project_busy] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:331: [E1101(no-member), ESoap.get_project_busy] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:349: [E1101(no-member), ESoap.rm_log] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:350: [E1101(no-member), ESoap.rm_log] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:367: [E1101(no-member), ESoap.tar_prjrepo] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:379: [E1101(no-member), ESoap.include_package] Instance of 'ESoap' has no 'app' member
elbepack/daemons/soap/esoap.py:380: [E1101(no-member), ESoap.include_package] Instance of 'ESoap' has no 'app' member
--------------------------------------------------------------------------
add __init__() method, that sets them up.
this patch needs to be tested, and its not clear, whether the
constructor is actually executed.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/daemons/soap/esoap.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/elbepack/daemons/soap/esoap.py b/elbepack/daemons/soap/esoap.py
index 816f8da5..e5d7b628 100644
--- a/elbepack/daemons/soap/esoap.py
+++ b/elbepack/daemons/soap/esoap.py
@@ -39,6 +39,10 @@ class ESoap (ServiceBase):
__name__ = 'soap'
+ def __init__(self):
+ self.app = None
+ self.transport = None
+
@rpc(_returns=String)
@soap_faults
def get_version(self):
--
2.11.0
More information about the elbe-devel
mailing list