Package tracopt :: Package ticket :: Module deleter :: Class TicketDeleter

Class TicketDeleter

source code

         object --+    
                  |    
trac.core.Component --+
                      |
                     TicketDeleter

Ticket and ticket comment deleter.

This component allows deleting ticket comments and complete tickets. For users having TICKET_ADMIN permission, it adds a "Delete" button next to each "Reply" button on the page. The button in the ticket description requests deletion of the complete ticket, and the buttons in the change history request deletion of a single comment.

'''Comment and ticket deletion are irreversible (and therefore ''dangerous'') operations.''' For that reason, a confirmation step is requested. The confirmation page shows the ticket box (in the case of a ticket deletion) or the ticket change (in the case of a comment deletion).

Nested Classes

Inherited from trac.core.Component: __metaclass__

Instance Methods
 
get_htdocs_dirs(self) source code
 
get_templates_dirs(self) source code
 
filter_stream(self, req, method, filename, stream, data) source code
 
pre_process_request(self, req, handler) source code
 
post_process_request(self, req, template, data, content_type) source code
 
match_request(self, req) source code
 
process_request(self, req) source code
 
__init__(self, compmgr, init=None, cls=<class 'tracopt.ticket.deleter.TicketDeleter'>)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods

Inherited from trac.core.Component: __new__, implements

Properties

Inherited from object: __class__

Method Details

__init__(self, compmgr, init=None, cls=<class 'tracopt.ticket.deleter.TicketDeleter'>)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)