[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r18110: {torflow} Fix op-addon for the code reorg in r18108. (torflow/trunk/CircuitAnalysis/OPAddon)
Author: mikeperry
Date: 2009-01-14 18:59:34 -0500 (Wed, 14 Jan 2009)
New Revision: 18110
Modified:
torflow/trunk/CircuitAnalysis/OPAddon/op-addon.py
Log:
Fix op-addon for the code reorg in r18108.
Modified: torflow/trunk/CircuitAnalysis/OPAddon/op-addon.py
===================================================================
--- torflow/trunk/CircuitAnalysis/OPAddon/op-addon.py 2009-01-14 23:57:14 UTC (rev 18109)
+++ torflow/trunk/CircuitAnalysis/OPAddon/op-addon.py 2009-01-14 23:59:34 UTC (rev 18110)
@@ -648,6 +648,11 @@
self.sorted_circs = sort_list(self.circuits.values(), notlambda)
plog("DEBUG", "Refreshed sorted list of circuits")
+ def circuit_list(self):
+ "Return an iterator or a list of circuits prioritized for stream selection"
+ if self.sorted_circs: return self.sorted_circs
+ else: return self.circuits.itervalues()
+
def print_circuits(self, list=None):
""" Print out the circuits + some info, optionally pass a (sorted) list """
if list: circs = list