Passed
Push — 2.x ( 2e94af...f70cb7 )
by Jordi
05:20
created

senaite.core.schema.registry   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 12
dl 0
loc 29
rs 10
c 0
b 0
f 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):
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable object does not seem to be defined.
Loading history...
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