| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | # coding: utf-8 |
||
| 62 | 1 | @zope.interface.implementer(INISerializable) |
|
| 63 | 1 | @zope.interface.implementer(DefaultProvider) |
|
| 64 | 1 | class DeviceLink(Model): |
|
| 65 | 1 | connection = ModelType( |
|
| 66 | model_spec=Connection, |
||
| 67 | required=True, |
||
| 68 | ) |
||
| 69 | |||
| 70 | 1 | @classmethod |
|
| 71 | def from_ini(cls, ini): |
||
| 72 | return cls({ |
||
| 73 | 'connection': Connection.from_ini(ini), |
||
| 74 | }) |
||
| 75 | |||
| 76 | 1 | @classmethod |
|
| 77 | def default(cls): |
||
| 78 | return cls({ |
||
| 79 | 'connection': Connection.default(), |
||
| 80 | }) |
||
| 81 |