예제 #1
0
 async def put_template(self, template: Template) -> Template:
     body = await self._put_json(
         endpoint=f'/templates/{template.id}',
         json=template.serialize_remote(),
     )
     return _load_remote_template(body)
예제 #2
0
def _load_remote_template(data: dict) -> Template:
    return Template.load_remote(data)
예제 #3
0
파일: utils.py 프로젝트: NBISweden/dsw-tdk
 def __init__(self):
     self.template = Template()
     self._formats = []  # type: List[FormatSpec]