server/repository.py
branchstable
changeset 7723 badfd5524ab6
parent 7716 c893150b2394
child 7780 a1d5365fefc1
equal deleted inserted replaced
7722:fb231d62adda 7723:badfd5524ab6
   503     def get_schema(self):
   503     def get_schema(self):
   504         """Return the instance schema.
   504         """Return the instance schema.
   505 
   505 
   506         This is a public method, not requiring a session id.
   506         This is a public method, not requiring a session id.
   507         """
   507         """
   508         try:
   508         return self.schema
   509             # necessary to support pickling used by pyro
       
   510             self.schema.__hashmode__ = 'pickle'
       
   511             return self.schema
       
   512         finally:
       
   513             self.schema.__hashmode__ = None
       
   514 
   509 
   515     def get_cubes(self):
   510     def get_cubes(self):
   516         """Return the list of cubes used by this instance.
   511         """Return the list of cubes used by this instance.
   517 
   512 
   518         This is a public method, not requiring a session id.
   513         This is a public method, not requiring a session id.