| 922 | |
| 923 | |
| 924 | class ApplicationRecord(KeeperRecord): |
| 925 | def __init__(self): |
| 926 | super(ApplicationRecord, self).__init__() |
| 927 | |
| 928 | def get_version(self): |
| 929 | return 5 |
| 930 | |
| 931 | def get_record_type(self): |
| 932 | return 'app' |
| 933 | |
| 934 | def load_record_data(self, data, extra=None): |
| 935 | self.title = sanitize_str_field_value(data.get('title')).strip() |
| 936 | |
| 937 | def enumerate_fields(self): # type: () -> Iterable[Tuple[str, Union[None, str, List[str]]]] |
| 938 | for pair in super(ApplicationRecord, self).enumerate_fields(): |
| 939 | yield pair |
| 940 | yield '(type)', self.get_record_type() |