#NEWLINE# def read_previous_items( self ) : #NEWLINE# #INDENT# '\n        Pulls the last-recorded configuration from the database.\n        :return: List of all items for the given technology and the given account.\n        ' #NEWLINE# prev_list = [ ] #NEWLINE# for account in self . accounts : #NEWLINE# #INDENT# prev = self . datastore . get_all_ctype_filtered ( tech = self . index , account = account , include_inactive = False ) #NEWLINE# for item in prev : #NEWLINE# #INDENT# item_revision = prev [ item ] #NEWLINE# new_item = ChangeItem ( index = self . index , region = item . region , account = item . account . name , name = item . name , new_config = item_revision . config ) #NEWLINE# prev_list . append ( new_item ) #NEWLINE# #UNINDENT# #UNINDENT# return prev_list