#NEWLINE# def obj_make_list( context , list_obj , item_cls , db_list , **extra_args ) : #NEWLINE# #INDENT# 'Construct an object list from a list of primitives.\n\n    This calls item_cls._from_db_object() on each item of db_list, and\n    adds the resulting object to list_obj.\n\n    :param:context: Request context\n    :param:list_obj: An ObjectListBase object\n    :param:item_cls: The NovaObject class of the objects within the list\n    :param:db_list: The list of primitives to convert to objects\n    :param:extra_args: Extra arguments to pass to _from_db_object()\n    :returns: list_obj\n    ' #NEWLINE# list_obj . objects = [ ] #NEWLINE# for db_item in db_list : #NEWLINE# #INDENT# item = item_cls . _from_db_object ( context , item_cls ( ) , db_item , ** extra_args ) #NEWLINE# list_obj . objects . append ( item ) #NEWLINE# #UNINDENT# list_obj . _context = context #NEWLINE# list_obj . obj_reset_changes ( ) #NEWLINE# return item