#NEWLINE# def handle( self , * args , **options ) : #NEWLINE# #INDENT# '\n        Parses/validates, and breaks off into actions.\n        ' #NEWLINE# if ( len ( args ) < 1 ) : #NEWLINE# #INDENT# raise CommandError ( 'Please specify an action. See --help.' ) #NEWLINE# #UNINDENT# action = args [ 0 ] #NEWLINE# email = None #NEWLINE# if ( action not in self . valid_actions ) : #NEWLINE# #INDENT# message = ( 'Invalid action: %s' % action ) #NEWLINE# raise CommandError ( message ) #NEWLINE# #UNINDENT# if ( action in [ 'verify' , 'delete' ] ) : #NEWLINE# #INDENT# if ( len ( args ) < 2 ) : #NEWLINE# #INDENT# message = ( 'Please specify an email address to %s.' % action ) #NEWLINE# raise CommandError ( message ) #NEWLINE# #UNINDENT# email = args [ 1 ] #NEWLINE# if ( ( not email ) or ( not self . _is_valid_email ( email ) ) ) : #NEWLINE# #INDENT# message = ( 'Invalid email address provided: %s' % email ) #NEWLINE# raise CommandError ( message ) #NEWLINE# #UNINDENT# #UNINDENT# self . _route_action ( action , email )