Changeset 2453416 for fedd/federation
- Timestamp:
- Dec 7, 2010 12:50:48 PM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 9556f2a
- Parents:
- c179764 (diff), 1660f7c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- fedd/federation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
rc179764 r2453416 1609 1609 return top 1610 1610 1611 def get_testbed_services(self, req ):1611 def get_testbed_services(self, req, testbeds): 1612 1612 """ 1613 1613 Parse the services section of the request into into two dicts mapping … … 1924 1924 testbeds.append(tb) 1925 1925 1926 masters, pmasters = self.get_testbed_services(req )1926 masters, pmasters = self.get_testbed_services(req, testbeds) 1927 1927 allocated = { } # Testbeds we can access 1928 1928 topo ={ } # Sub topologies -
fedd/federation/parse_detail.py
r1660f7c r2453416 1 1 #!/usr/local/bin/python 2 2 3 from fedd_ servicesimport *3 from fedd_client import * 4 4 5 5 from ZSI.TC import QName, String, URI, AnyElement, UNBOUNDED, Any -
fedd/federation/remote_service.py
r1660f7c r2453416 18 18 from service_error import service_error 19 19 from xmlrpclib import ServerProxy, dumps, loads, Fault, Error, Binary 20 21 import fedd_services 22 import fedd_internal_services 20 try: 21 import fedd_services 22 import fedd_internal_services 23 except ImportError: 24 import fedd_server 25 import fedd_client 26 23 27 from util import fedd_ssl_context 24 28 from fedid import fedid … … 279 283 self.service_name = service_name 280 284 281 if getattr(fedd_services.feddBindingSOAP, service_name, None): 282 self.locator = fedd_services.feddServiceLocator 283 self.port_name = 'getfeddPortType' 284 elif getattr(fedd_internal_services.feddInternalBindingSOAP, 285 service_name, None): 286 self.locator = fedd_internal_services.feddInternalServiceLocator 287 self.port_name = 'getfeddInternalPortType' 285 try: 286 if getattr(fedd_services.feddBindingSOAP, service_name, None): 287 self.locator = fedd_services.feddServiceLocator 288 self.port_name = 'getfeddPortType' 289 elif getattr(fedd_internal_services.feddInternalBindingSOAP, 290 service_name, None): 291 self.locator = fedd_internal_services.feddInternalServiceLocator 292 self.port_name = 'getfeddInternalPortType' 293 except NameError: 294 if getattr(fedd_client.feddBindingSOAP, service_name, None): 295 self.locator = fedd_client.feddServiceLocator 296 self.port_name = 'getfeddPort' 297 elif getattr(fedd_internal_client.feddInternalBindingSOAP, 298 service_name, None): 299 self.locator = fedd_internal_client.feddInternalServiceLocator 300 self.port_name = 'getfedd_internalPort' 301 288 302 289 303 if request_message: self.request_message = request_message 290 304 else: 291 305 request_message_name = "%sRequestMessage" % service_name 292 self.request_message = \ 293 getattr(fedd_services, request_message_name, None) or \ 294 getattr(fedd_internal_services, request_message_name, None) 306 try: 307 self.request_message = \ 308 getattr(fedd_services, request_message_name, None) or \ 309 getattr(fedd_internal_services, request_message_name, 310 None) 311 except NameError: 312 self.request_message = \ 313 getattr(fedd_client, request_message_name, None) or \ 314 getattr(fedd_internal_client, request_message_name, 315 None) 295 316 if not self.request_message and strict: 296 317 raise service_error(service_error.internal,
Note: See TracChangeset
for help on using the changeset viewer.