def obj_defs(ob=None):
    """Returns object definitions for object name(s)
    @param ob name or list of names of object
    """
    from pyon.core.bootstrap import get_obj_registry

    if ob is not None:
        print "Object definition for: %s\n" % ob

        if not getattr(ob, '__iter__', False):
            ob = (ob,)
        for o in ob:
            print get_obj_registry().instances_by_name[o]

    else:
        print "List of defined objects"
        print "-----------------------"
        onames = sorted(get_obj_registry().instances_by_name.keys())
        print pprint_list(onames, -1, 1, 2)
        print "\nType obj_defs('name') or obj_defs(['name1','name2']) for definition"
dataset/ETHPy150Open ooici/pyon/pyon/container/shell_api.py/obj_defs/original