INISerializable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A from_ini() 0 5 1
A to_ini() 0 5 1
1
# coding: utf-8
2
3 1
import zope.interface
4
5
6 1
class INISerializable(zope.interface.Interface):
7
8 1
    def from_ini(ini):
9
        """
10
        Get object from a given INI config.
11
12
        """
13
14
    def to_ini(ini):
15 1
        """
16
        Update INI config from current object.
17 1
18
        """
19
20
21
class DefaultProvider(zope.interface.Interface):
22
23
    def default(ini):
24
        """
25
        Get object with default values.
26
27
        """
28