Commit 64505c4a authored by Janis Streib's avatar Janis Streib

FIX: some small bugs

parent 6d22c304
......@@ -115,10 +115,10 @@ class {v.system}_{v.name}(APIObject):
\tdef {f.name}_ta({','.join(params)}) -> dict:
\t\treturn {{'name': '{f.system}.{f.object_type}.{f.name}', 'new': {{{','.join(dict_new_params_identity)}}}, 'old': {{{','.join(dict_old_params_identity)}}}}}
# TODO: Consider is_returning
# TODO: Consider is_returning
\t@classmethod
\tdef {f.name}(tgtc, session:requests.Session, {','.join(params)}) -> '{f.system}_{f.name}':
\t\treturn [tgtc(**s) for s in session.post(json=cls.{f.name}_ta({','.join(new_params_identity)}{',' if len(new_params_identity) > 0 else ''}{','.join(old_params_identity)})).json()[0]]
\tdef {f.name}(__cls, session:requests.Session, {','.join(params)}) -> '{f.system}_{f.object_type}':
\t\treturn [__cls(**s) for s in session.post(json=__cls.{f.name}_ta({','.join(new_params_identity)}{',' if len(new_params_identity) > 0 else ''}{','.join(old_params_identity)})).json()[0]]
"""
# dump
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment