Passed
Push — 2.x ( 054a36...979e2b )
by Jordi
06:15
created

AfterUpgradeStepEvent.__init__()   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 zope.interface import Interface
4
from zope.interface import implements
5
6
7
class IBeforeUpgradeStepEvent(Interface):
8
    """An event fired before the upgrade step started
9
    """
10
11
12
class IAfterUpgradeStepEvent(Interface):
13
    """An event fired after the upgrade step completed
14
    """
15
16
17
class BeforeUpgradeStepEvent(object):
18
    implements(IBeforeUpgradeStepEvent)
19
20
    def __init__(self, context):
21
        self.context = context
22
23
24
class AfterUpgradeStepEvent(object):
25
    implements(IAfterUpgradeStepEvent)
26
27
    def __init__(self, context):
28
        self.context = context
29