#NEWLINE# def group_exists( self , group_name ) : #NEWLINE# #INDENT# stmt = ( "\n                SELECT\n                    COUNT(*) AS total\n                FROM\n                    %sforums\n                WHERE\n                    LOWER(nntp_group_name)=LOWER('%s')" % ( settings . phpbb_table_prefix , group_name ) ) #NEWLINE# self . cursor . execute ( stmt ) #NEWLINE# return self . cursor . fetchone ( ) [ 0 ]