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

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

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
            #Next look for ION Enums
            elif ret_obj._schema[field].has_key('enum_type'):
                if isenum(ret_obj._schema[field]['enum_type']):
                    value = IonObject(ret_obj._schema[field]['enum_type'], {})
                    schema_info['schemas'][ret_obj._schema[field]['enum_type']] = value._str_map
 
        schema_info['object'] = ret_obj
 
    elif isenum(resource_type):

src/p/y/pyon-HEAD/pyon/core/interfaces/objgen.py   pyon(Download)
import os.path
 
from pyon.core.registry import getextends, isenum
from pyon.public import RT, OT
 
            if obj_type in RT:
                group = "resource"
            elif isenum(obj_type):
                group = "enum"
            elif "origin" in oschema and "base_types" in oschema: