Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
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 |