Changeset a11eda5 for fedd/federation/experiment_partition.py
- Timestamp:
- Feb 29, 2012 5:06:03 PM (12 years ago)
- Branches:
- compt_changes, master
- Children:
- 2bb8b35
- Parents:
- fe6e0be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_partition.py
rfe6e0be ra11eda5 44 44 class experiment_partition: 45 45 def __init__(self, auth=None, store_url=None, tbmap=None, muxmax=2, 46 direct_transit=None ):46 direct_transit=None, tbactive=None): 47 47 """ 48 48 Intialize the various attributes … … 56 56 self.direct_transit = direct_transit or [ ] 57 57 self.muxmax = muxmax 58 self.tbactive = tbactive 58 59 59 60 … … 89 90 ddomain = tbparams[dt].get_attribute('domain', '.example.com') 90 91 91 if (st in masters and dt not in masters) or \ 92 if (st in self.tbactive and dt not in self.tbactive) or \ 93 ( st not in self.tbactive and dt in self.tbactive ): 94 active = ("%s" % (st in self.tbactive)) 95 elif (st in masters and dt not in masters) or \ 92 96 ( st not in masters and dt in masters ): 93 97 active = ("%s" % (st in masters))
Note: See TracChangeset
for help on using the changeset viewer.