fix(generate_cli): fixed rpc generate for classes without user access; closes #226

This commit is contained in:
wakonig_k committed 2024-06-21 13:47:05 +02:00
1 parent b54423a151
commit 925c893f3f
1 file changed
+3
+3
View File
@@ -83,6 +83,9 @@ class {class_name}(RPCBase, BECGuiClientMixin):"""
else:
self.content += f"""
class {class_name}(RPCBase):"""
if not cls.USER_ACCESS:
self.content += """...
"""
for method in cls.USER_ACCESS:
obj = getattr(cls, method)
if isinstance(obj, property):