cyborg/objects/extarq.py
def list(cls, context):
        """Return a list of ExtARQ objects."""
        db_extarqs = cls.dbapi.extarq_list(context)
        for db_extarq in db_extarqs:
           db_devprof = cls.dbapi.device_profile_get_by_id(context,
                            db_extarq.device_profile_id)
           db_extarq['device_profile_name'] = db_devprof['name']
           # HACK: force these fields to be not None
           for n in ['host_name', 'device_rp_uuid', 'instance_uuid']:
               if db_extarq[n] is None:
                   db_extarq[n] = ''
        obj_dp_list = cls._from_db_object_list(db_extarqs, context)
        return obj_dp_list
Return a list of ExtARQ objects.
Return a list of ExtARQ objects.
Return a list of ExtARQ objects .
def list(cls, context):
        db_extarqs = cls.dbapi.extarq_list(context)
        for db_extarq in db_extarqs:
           db_devprof = cls.dbapi.device_profile_get_by_id(context,
                            db_extarq.device_profile_id)
           db_extarq['device_profile_name'] = db_devprof['name']
           for n in ['host_name', 'device_rp_uuid', 'instance_uuid']:
               if db_extarq[n] is None:
                   db_extarq[n] = ''
        obj_dp_list = cls._from_db_object_list(db_extarqs, context)
        return obj_dp_list
def list ( cls , context ) : db_extarqs = cls . dbapi . extarq_list ( context ) for db_extarq in db_extarqs : db_devprof = cls . dbapi . device_profile_get_by_id ( context , db_extarq . device_profile_id ) db_extarq [ 'device_profile_name' ] = db_devprof [ 'name' ] for n in [ 'host_name' , 'device_rp_uuid' , 'instance_uuid' ] : if db_extarq [ n ] is None : db_extarq [ n ] = '' obj_dp_list = cls . _from_db_object_list ( db_extarqs , context ) return obj_dp_list
Return a list of ExtARQ objects.
Return a list of ExtARQ objects .
"""Return a list of ExtARQ objects.""" # HACK: force these fields to be not None
cls
context