#NEWLINE# @ classmethod #NEWLINE# def obj_from_db( cls , context , instance_uuid , db_requests ) : #NEWLINE# #INDENT# self = cls ( context = context , requests = [ ] , instance_uuid = instance_uuid ) #NEWLINE# if ( db_requests is not None ) : #NEWLINE# #INDENT# requests = jsonutils . loads ( db_requests ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# requests = [ ] #NEWLINE# #UNINDENT# for request in requests : #NEWLINE# #INDENT# request_obj = InstancePCIRequest ( count = request [ 'count' ] , spec = request [ 'spec' ] , alias_name = request [ 'alias_name' ] , is_new = request [ 'is_new' ] , request_id = request [ 'request_id' ] ) #NEWLINE# request_obj . obj_reset_changes ( ) #NEWLINE# self . requests . append ( request_obj ) #NEWLINE# #UNINDENT# self . obj_reset_changes ( ) #NEWLINE# return self