#NEWLINE# def get_data( self ) : #NEWLINE# #INDENT# images = [ ] #NEWLINE# filters = self . get_filters ( ) #NEWLINE# prev_marker = self . request . GET . get ( project_tables . AdminImagesTable . _meta . prev_pagination_param , None ) #NEWLINE# if ( prev_marker is not None ) : #NEWLINE# #INDENT# sort_dir = 'asc' #NEWLINE# marker = prev_marker #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# sort_dir = 'desc' #NEWLINE# marker = self . request . GET . get ( project_tables . AdminImagesTable . _meta . pagination_param , None ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# ( images , self . _more , self . _prev ) = api . glance . image_list_detailed ( self . request , marker = marker , paginate = True , filters = filters , sort_dir = sort_dir ) #NEWLINE# if ( prev_marker is not None ) : #NEWLINE# #INDENT# images = sorted ( images , key = ( lambda image : getattr ( image , 'created_at' ) ) , reverse = True ) #NEWLINE# #UNINDENT# #UNINDENT# except Exception : #NEWLINE# #INDENT# self . _prev = False #NEWLINE# self . _more = False #NEWLINE# msg = _ ( 'Unable to retrieve image list.' ) #NEWLINE# exceptions . handle ( self . request , msg ) #NEWLINE# #UNINDENT# return images