1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 """
19 Flumotion Twisted compatibility assistance
20
21 """
22
23 import warnings
24
25 import zope.interface as zi
26
27 __version__ = "$Rev$"
28
29 from twisted.internet import reactor
30
31 try:
32 reactor.seconds
33 except AttributeError:
34 from twisted.python import runtime
35 reactor.seconds = runtime.seconds
36
37
38
39
40
41
43 warnings.warn(
44 "This module is deprecated, use zope.interface directly instead",
45 DeprecationWarning, stacklevel=2)
46 return interface.providedBy(object)
47
48
50 warnings.warn(
51 "This module is deprecated, use zope.interface directly instead",
52 DeprecationWarning, stacklevel=2)
53 return zi.implementedBy(object)
54
55
57 warnings.warn(
58 "This module is deprecated, use zope.interface directly instead",
59 DeprecationWarning, stacklevel=2)
60 return isinstance(object, zi.InterfaceClass)
61
62 Interface = zi.Interface
63 implements = zi.implements
64