#NEWLINE# def _do_remove( self , name ) : #NEWLINE# #INDENT# with self . env . db_transaction : #NEWLINE# #INDENT# if name . endswith ( '*' ) : #NEWLINE# #INDENT# pages = list ( WikiSystem ( self . env ) . get_pages ( ( name . rstrip ( '*' ) or None ) ) ) #NEWLINE# for p in pages : #NEWLINE# #INDENT# page = model . WikiPage ( self . env , p ) #NEWLINE# page . delete ( ) #NEWLINE# #UNINDENT# print_table ( ( ( page , ) for p in pages ) , [ _ ( 'Deleted pages' ) ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# page = model . WikiPage ( self . env , name ) #NEWLINE# page . delete ( )