Passed
Push — 2.x ( 5d5eda...426827 )
by Ramon
08:21
created

senaite.core.schema.selectotherfield   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A SelectOtherField._validate() 0 2 1
1
# -*- coding: utf-8 -*-
2
3
from senaite.core.schema.fields import BaseField
4
from senaite.core.schema.interfaces import ISelectOtherField
5
from zope.interface import implementer
6
from zope.schema import Choice
7
8
9
@implementer(ISelectOtherField)
10
class SelectOtherField(Choice, BaseField):
11
    """A field that handles a value from a predefined vocabulary or custom
12
    """
13
    def _validate(self, value):
14
        super(SelectOtherField, self)._validate(value)
15