def preinvoke(self, oid, adapter, operation, the_cookie=0): with self.activeMapMutex_: if not self.activeMap_.has_key(oid): raise CORBA.OBJECT_NOT_EXIST() servant = self.activeMap_[oid].servant if self.activeMap_[oid].destroy == operation: self.activeMap_.pop(oid) self.activeMap_[oid].last_access = time.time() return servant, the_cookie
ok = 0 tresult("-") id = poa.reference_to_id(jo) del ji, jo r = None poa.deactivate_object(id) a = CORBA.Any(CORBA._tc_IMP_LIMIT, CORBA.IMP_LIMIT(12345, CORBA.COMPLETED_YES)) r = io.any1(a) tresult(str(r.value())) a = CORBA.Any( CORBA._tc_OBJECT_NOT_EXIST, CORBA.OBJECT_NOT_EXIST(omniORB.OBJECT_NOT_EXIST_NoMatch, CORBA.COMPLETED_YES)) r = io.any1(a) tresult(str(r.value())) if ok: tpass() else: tfail() tstart("Invalid Any") ok = 1 a = CORBA.Any(TypeTest._tc_S1, TypeTest.S1(1, 2, "Hi", 4, 5.6, 7.8, 1, "a", 9)) try: r = io.any1(a) ok = 0 tresult("-")