#NEWLINE# def get_partition_names( self , model ) : #NEWLINE# #INDENT# current = model . _partition_manager . current_partition_key #NEWLINE# next = model . _partition_manager . next_partition_key #NEWLINE# current_only = self . options . get ( 'current_only' ) #NEWLINE# next_only = self . options . get ( 'next_only' ) #NEWLINE# if ( current_only and next_only ) : #NEWLINE# #INDENT# raise CommandError ( 'You cannot specify current_only and next_only togethers' ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# partition_names = [ self . args [ 1 ] ] #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# partition_names = None #NEWLINE# #UNINDENT# if current_only : #NEWLINE# #INDENT# partition_names = [ current ( ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if next_only : #NEWLINE# #INDENT# partition_names = [ next ( ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not partition_names ) : #NEWLINE# #INDENT# partition_names = [ current ( ) , next ( ) ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return partition_names