Changeset e2ff75d for fedd/federation
- Timestamp:
- Jun 29, 2010 11:55:52 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 132440f
- Parents:
- 183b208
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/deter_impl.py
r183b208 re2ff75d 1 1 #!/usr/local/bin/python 2 3 import sys 2 4 3 5 import emulab_access … … 40 42 self.access_type = config.get("globals", "access_type", "emulab") 41 43 self.auth_type = config.get("globals", "auth_type", "legacy") 44 45 for mp in config.get("globals", "module_path","").split(":"): 46 sys.path.append(mp) 42 47 43 48 if self.auth_type == 'legacy': … … 84 89 self.access = skeleton_access.access(config, self.auth) 85 90 else: 86 raise RuntimeError("Unknown access_type: %s" % \ 87 self.access_type) 91 try: 92 exec 'from %s import access as plugin_access' \ 93 % self.access_type 94 self.access = plugin_access(config, self.auth) 95 except ImportError, e: 96 raise RuntimeError( 97 "Unknown access_type: %s (import failed: %s)" \ 98 % (self.access_type, e)) 88 99 self.soap_services.update(self.access.soap_services) 89 100 self.xmlrpc_services.update(self.access.xmlrpc_services)
Note: See TracChangeset
for help on using the changeset viewer.