arek - in flumotion/trunk: . flumotion/test
flumotion-commit at lists.fluendo.com
flumotion-commit at lists.fluendo.com
Fri Jul 20 16:54:51 CEST 2007
Author: arek
Date: Fri Jul 20 16:54:48 2007
New Revision: 5335
Modified:
flumotion/trunk/ChangeLog
flumotion/trunk/flumotion/test/pond.py
Log:
* flumotion/test/pond.py (ComponentWrapper.get_unique_name,
Pond.do_stop, Pond.stop_flow):
Don't use language elements not available in python2.3.
Modified: flumotion/trunk/ChangeLog
==============================================================================
--- flumotion/trunk/ChangeLog (original)
+++ flumotion/trunk/ChangeLog Fri Jul 20 16:54:48 2007
@@ -1,5 +1,11 @@
2007-07-20 Arek Korbik <arkadini at gmail.com>
+ * flumotion/test/pond.py (ComponentWrapper.get_unique_name,
+ Pond.do_stop, Pond.stop_flow):
+ Don't use language elements not available in python2.3.
+
+2007-07-20 Arek Korbik <arkadini at gmail.com>
+
* flumotion/test/pond.py:
* flumotion/test/test_pond.py:
* flumotion/test/Makefile.am:
Modified: flumotion/trunk/flumotion/test/pond.py
==============================================================================
--- flumotion/trunk/flumotion/test/pond.py (original)
+++ flumotion/trunk/flumotion/test/pond.py Fri Jul 20 16:54:48 2007
@@ -132,11 +132,11 @@
return '%s(%r, %r)' % (self.__class__.__name__,
self.comp_class.__name__, self.cfg)
- @classmethod
def get_unique_name(cls, prefix='cmp-'):
name, cls._u_name_cnt = ('%s%d' % (prefix, cls._u_name_cnt),
cls._u_name_cnt + 1)
return name
+ get_unique_name = classmethod(get_unique_name)
def instantiate(self):
self.comp = self.comp_class()
@@ -307,7 +307,9 @@
return d
def do_stop(failure):
self.debug('** X: do_stop: %r' % failure)
- for c in reversed(self._comps):
+ rcomps = self._comps[:]
+ rcomps.reverse()
+ for c in rcomps:
c.stop()
return failure
@@ -327,7 +329,9 @@
return d
def stop_flow(self):
- d = defer.DeferredList([c.stop() for c in reversed(self._comps)],
+ rcomps = self._comps[:]
+ rcomps.reverse()
+ d = defer.DeferredList([c.stop() for c in rcomps],
fireOnOneErrback=1, consumeErrors=1)
def stop_flow_report(results):
self.debug('stop_flow_report: %r' % (results,))
More information about the flumotion-commit
mailing list