Пример #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
 def __init__(self):
     self.template = Template()
     self._formats = []  # type: List[FormatSpec]