#NEWLINE# def assert_feed_does_not_exist( self , name , url = None ) : #NEWLINE# #INDENT# if self . isCommandMethod ( name ) : #NEWLINE# #INDENT# s = format ( _ ( 'I already have a command in this plugin named %s.' ) , name ) #NEWLINE# raise callbacks . Error ( s ) #NEWLINE# #UNINDENT# if url : #NEWLINE# #INDENT# feed = self . feeds . get ( url ) #NEWLINE# if ( feed and ( feed . name != feed . url ) ) : #NEWLINE# #INDENT# s = format ( _ ( 'I already have a feed with that URL named %s.' ) , self . name ) #NEWLINE# raise callbacks . Error ( s )