#NEWLINE# def is_visible_admin( self , page ) : #NEWLINE# #INDENT# '\n        Instead of just showing an on/off boolean, also indicate whether this\n        page is not visible because of publishing dates or inherited status.\n        ' #NEWLINE# if ( not hasattr ( self , '_visible_pages' ) ) : #NEWLINE# #INDENT# self . _visible_pages = list ( ) #NEWLINE# #UNINDENT# if ( page . parent_id and ( page . parent_id not in self . _visible_pages ) ) : #NEWLINE# #INDENT# if ( page . id in self . _visible_pages ) : #NEWLINE# #INDENT# self . _visible_pages . remove ( page . id ) #NEWLINE# #UNINDENT# return tree_editor . ajax_editable_boolean_cell ( page , 'active' , override = False , text = _ ( 'inherited' ) ) #NEWLINE# #UNINDENT# if ( self . active and ( page . id not in self . _visible_pages ) ) : #NEWLINE# #INDENT# return tree_editor . ajax_editable_boolean_cell ( page , 'active' , override = False , text = _ ( 'extensions' ) ) #NEWLINE# #UNINDENT# return tree_editor . ajax_editable_boolean_cell ( page , 'active' )