Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/y/pyon-HEAD/pyon/core/governance/governance_controller.py   pyon(Download)
from pyon.util.log import log
from pyon.ion.resource import RT, OT
from pyon.core.governance import get_system_actor_header, get_system_actor
from pyon.core.governance.policy.policy_decision import PolicyDecisionPointManager
from pyon.ion.event import EventSubscriber
        # Need to check to set here to set after the system actor is created
        if self.system_actor_id is None:
            system_actor = get_system_actor()
            if system_actor is not None:
                self.system_actor_id = system_actor._id
        # Need to check to set here to set after the system actor is created
        if self.system_actor_id is None:
            system_actor = get_system_actor()
            if system_actor is not None:
                self.system_actor_id = system_actor._id