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

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/p/y/pyon-HEAD/pyon/ion/resource.py   pyon(Download)
import time
 
from pyon.core.registry import getextends, issubtype, is_ion_object, isenum
from pyon.core.bootstrap import IonObject
from pyon.core.exception import BadRequest, NotFound, Inconsistent, Unauthorized
 
            #First look for ION objects
            if is_ion_object(obj_type):
 
                try:

src/p/y/pyon-HEAD/pyon/core/governance/policy/policy_interceptor.py   pyon(Download)
from pyon.core.governance.governance_dispatcher import GovernanceDispatcher
from pyon.core.object import IonObjectBase
from pyon.core.registry import is_ion_object, message_classes, has_class_decorator
from pyon.util.containers import current_time_millis
from pyon.util.log import log
            #Check to see if there is a AlwaysVerifyPolicy decorator
            always_verify_policy = False
            if is_ion_object(message_format):
                try:
                    msg_class = message_classes[message_format]

src/p/y/pyon-HEAD/pyon/core/governance/policy/policy_decision.py   pyon(Download)
from pyon.core.exception import NotFound
from pyon.core.governance import ION_MANAGER
from pyon.core.registry import is_ion_object, message_classes, get_class_decorator_value
from pyon.core.governance.governance_dispatcher import GovernanceDispatcher
 
 
        #Check to see if there is a OperationVerb decorator specifying a Verb used with policy
        if is_ion_object(message_format):
            try:
                msg_class = message_classes[message_format]

src/p/y/pyon-HEAD/pyon/core/interceptor/validate.py   pyon(Download)
from pyon.core.exception import BadRequest
from pyon.core.object import IonObjectBase, walk
from pyon.core.registry import is_ion_object
from pyon.util.log import log
 
            if "format" in invocation.headers and isinstance(payload, dict):
                clzz = invocation.headers["format"]
                if is_ion_object(clzz):
                    payload = IonObject(clzz, payload)