sebastien - in flumotion/trunk: . flumotion/twisted
flumotion-commit at lists.fluendo.com
flumotion-commit at lists.fluendo.com
Wed Mar 14 16:20:15 CET 2007
Author: sebastien
Date: Wed Mar 14 16:20:13 2007
New Revision: 4639
Modified:
flumotion/trunk/ChangeLog
flumotion/trunk/flumotion/twisted/compat.py
Log:
2007-03-14 Sebastien Merle <sebastien at fluendo.com>
* flumotion/twisted/compat.py:
Added a compatibility function to check if an objec tis an interface.
Didn' t added the code for twisted < 2
because it will go away soon anyway.
Modified: flumotion/trunk/ChangeLog
==============================================================================
--- flumotion/trunk/ChangeLog (original)
+++ flumotion/trunk/ChangeLog Wed Mar 14 16:20:13 2007
@@ -1,3 +1,10 @@
+2007-03-14 Sebastien Merle <sebastien at fluendo.com>
+
+ * flumotion/twisted/compat.py:
+ Added a compatibility function to check if an objec tis an interface.
+ Didn' t added the code for twisted < 2
+ because it will go away soon anyway.
+
2007-03-13 Thomas Vander Stichele <thomas at apestaart dot org>
* data/glade/Makefile.am:
Modified: flumotion/trunk/flumotion/twisted/compat.py
==============================================================================
--- flumotion/trunk/flumotion/twisted/compat.py (original)
+++ flumotion/trunk/flumotion/twisted/compat.py Wed Mar 14 16:20:13 2007
@@ -51,6 +51,12 @@
from zope.interface import implementedBy
return implementedBy(object)
+def isInterface(object):
+ if version[0] < '2':
+ raise NotImplementedError()
+ from zope.interface.interface import InterfaceClass
+ return isinstance(object, InterfaceClass)
+
if version[0] < '2':
from twisted.python.components import Interface as OurLovelyInterface
import sys
More information about the flumotion-commit
mailing list