Changeset d0912be for fedd/federation
- Timestamp:
- Apr 6, 2011 5:24:54 PM (14 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- eb41909
- Parents:
- 42dedbd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
r42dedbd rd0912be 1247 1247 "More than one project export is not supported") 1248 1248 1249 def add_services(svcs, type, slist ):1249 def add_services(svcs, type, slist, keys): 1250 1250 """ 1251 Add the given services to slist. type is import or export. 1251 Add the given services to slist. type is import or export. Also 1252 add a mapping entry from the assigned id to the original service 1253 record. 1252 1254 """ 1253 1255 for i, s in enumerate(svcs): 1254 1256 idx = '%s%d' % (type, i) 1257 keys[idx] = s 1255 1258 sr = {'id': idx, 'name': s.name, 'visibility': type } 1256 1259 if s.params: … … 1294 1297 if import_svcs or export_svcs: 1295 1298 slist = [] 1296 add_services(import_svcs, 'import', slist )1297 add_services(export_svcs, 'export', slist )1299 add_services(import_svcs, 'import', slist, e_keys) 1300 add_services(export_svcs, 'export', slist, e_keys) 1298 1301 req['service'] = slist 1299 1302
Note: See TracChangeset
for help on using the changeset viewer.