| Total Complexity | 0 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 2 | |||
| 3 | from senaite.core.schema.fields import DataGridField as BaseDataGridField |
||
| 4 | from senaite.core.schema.fields import DataGridRow as BaseDataGridRow |
||
| 5 | |||
| 6 | try: |
||
| 7 | from plone.registry.field import PersistentField |
||
| 8 | except ImportError: |
||
| 9 | class PersistentField(object): |
||
|
|
|||
| 10 | pass |
||
| 11 | |||
| 12 | |||
| 13 | class DataGridField(PersistentField, BaseDataGridField): |
||
| 14 | """Use this field for registry entries |
||
| 15 | |||
| 16 | https://pypi.org/project/plone.registry/#persistent-fields |
||
| 17 | https://community.plone.org/t/there-is-no-persistent-field-equivalent-for-the-field-a-of-type-b |
||
| 18 | """ |
||
| 19 | pass |
||
| 20 | |||
| 21 | |||
| 22 | class DataGridRow(PersistentField, BaseDataGridRow): |
||
| 23 | """Use this field for registry entries |
||
| 24 | |||
| 25 | https://pypi.org/project/plone.registry/#persistent-fields |
||
| 26 | https://community.plone.org/t/there-is-no-persistent-field-equivalent-for-the-field-a-of-type-b |
||
| 27 | """ |
||
| 28 | pass |
||
| 29 |