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

SelectOtherField._validate()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nop 2
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