Example #1
0
 def invoke_method(self,
                   method,
                   this,
                   context,
                   args,
                   kwargs,
                   skip_stub=False):
     with helpers.execution_session(self._session):
         return self._invoke_method(method,
                                    this,
                                    context,
                                    args,
                                    kwargs,
                                    skip_stub=skip_stub)
Example #2
0
 def invoke_method(self, method, this, context, args, kwargs,
                   skip_stub=False):
     with helpers.execution_session(self._session):
         return self._invoke_method(
             method, this, context, args, kwargs, skip_stub=skip_stub)
Example #3
0
 def cleanup_orphans(self, alive_object_ids):
     with helpers.execution_session(self._session):
         orphan_ids = self._collect_orphans(alive_object_ids)
         self._destroy_orphans(orphan_ids)
         return len(orphan_ids)
Example #4
0
 def cleanup(self, data):
     with helpers.execution_session(self._session):
         return self._cleanup(data)
Example #5
0
 def load(self, data):
     with helpers.execution_session(self._session):
         return self._load(data)
Example #6
0
 def cleanup_orphans(self, alive_object_ids):
     with helpers.execution_session(self._session):
         orphan_ids = self._collect_orphans(alive_object_ids)
         self._destroy_orphans(orphan_ids)
         return len(orphan_ids)
Example #7
0
 def cleanup(self, data):
     with helpers.execution_session(self._session):
         return self._cleanup(data)
Example #8
0
 def load(self, data):
     with helpers.execution_session(self._session):
         return self._load(data)