0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

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

This commit is contained in:
2024-06-13 15:04:17 +02:00
parent b54423a151
commit 925c893f3f

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):