- Timestamp:
- Feb 5, 2012 7:29:57 PM (13 years ago)
- Branches:
- compt_changes, master
- Children:
- 25930db
- Parents:
- e8979e2
- Location:
- fedd
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/deter/topdl.py
re8979e2 r6a50b78 250 250 return rv 251 251 252 def __getstate__(self): 253 d = self.__dict__.copy() 254 del d['interfaces'] 255 return d 256 257 def __setstate__(self, d): 258 # Import everything from the pickle dict (except what we excluded in 259 # __getstate__) 260 self.__dict__.update(d) 261 self.interfaces = [] 262 252 263 class CPU(base): 253 264 def __init__(self, type, attribute=[]): … … 417 428 for a in self.attribute], "") 418 429 return rv 430 431 def __getstate__(self): 432 d = self.__dict__.copy() 433 del d['subs'] 434 return d 435 436 def __setstate__(self, d): 437 # Import everything from the pickle dict (except what we excluded in 438 # __getstate__) 439 self.__dict__.update(d) 440 self.subs = [] 419 441 420 442 … … 813 835 return rv 814 836 837 def __setstate__(self, d): 838 # Import everything from the pickle dict and call incorporate to 839 # connect them. 840 self.__dict__.update(d) 841 self.incorporate_elements() 842 815 843 816 844 def topology_from_xml(string=None, file=None, filename=None, top="topology"): … … 891 919 xp.ParseFile(file) 892 920 elif string: 893 xp.Parse(string, isfinal=True)921 xp.Parse(string, True) 894 922 else: 895 923 return None -
fedd/federation/deter_impl.py
re8979e2 r6a50b78 7 7 import protogeni_access 8 8 import deter_internal_access 9 import benito_access 9 10 import skeleton_access 10 11 … … 86 87 self.access = deter_internal_access.access(config, 87 88 self.auth) 89 if self.access_type == "benito": 90 self.access = benito_access.access(config, self.auth) 88 91 elif self.access_type == "skel": 89 92 self.access = skeleton_access.access(config, self.auth) -
fedd/federation/experiment_control.py
re8979e2 r6a50b78 2038 2038 try: 2039 2039 vis = self.genviz( 2040 topdl.topology_to_vtopo(self.state[key].top o))2040 topdl.topology_to_vtopo(self.state[key].top)) 2041 2041 except service_error, e: 2042 2042 self.state_lock.release() … … 2297 2297 if key in self.state: 2298 2298 if force or self.state[key].older_than(self.info_cache_limit): 2299 top = self.state[key].top 2299 top = self.state[key].top 2300 2300 if top is not None: top = top.clone() 2301 2301 d1, info_params, cert, d2 = \ … … 2368 2368 # Copy the topo if we need legacy annotations 2369 2369 if legacy: 2370 top = self.state[key].top 2370 top = self.state[key].top 2371 2371 if top is not None: top = top.clone() 2372 2372 self.state_lock.release()
Note: See TracChangeset
for help on using the changeset viewer.