| 123456789101112131415161718192021222324252627282930 |
- from .model import model
- from .proxy import proxy
- from .field_generator import field_generator
- from .constants import constants
- from .validators import validators
- class attachment(model):
- id = field_generator.id()
- name = field_generator.name()
- description = field_generator.description()
- def _validators(self) -> dict:
- return {
- "name": validators.name,
- "description": validators.description
- }
- class attachment_proxy(proxy):
- @classmethod
- def create(cls, name: str) -> proxy:
- return cls(attachment(
- name = name,
- description = constants.empty_text()
- ))
- def set_name(self, target: str) -> None:
- self._target.name = target
- def set_description(self, target: str) -> None:
- self._target.description = target
|