Passed
Push — 2.x ( 6e719a...6f5930 )
by Jordi
07:11
created

senaite.core.schema.phonefield   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 PhoneField._validate() 0 2 1
1
# -*- coding: utf-8 -*-
2
3
from senaite.core.schema.fields import BaseField
4
from senaite.core.schema.interfaces import IPhoneField
5
from zope.interface import implementer
6
from zope.schema import NativeString
7
8
9
@implementer(IPhoneField)
10
class PhoneField(NativeString, BaseField):
11
    """A field that handles phone numbers
12
    """
13
    def _validate(self, value):
14
        super(PhoneField, self)._validate(value)
15