trac.ticket.web_ui¶
-
class
trac.ticket.web_ui.DefaultTicketPolicy¶ Bases:
trac.core.ComponentDefault permission policy for the ticket system.
Authenticated users with
TICKET_APPENDcan edit their own ticket comments. Authenticated users withTICKET_APPENDorTICKET_CHGPROPcan edit the description of a ticket they reported.
-
exception
trac.ticket.web_ui.InvalidTicket(message, title=None, show_traceback=False)¶ Bases:
trac.core.TracErrorException raised when a ticket fails validation.
Since 1.3.2: deprecated and will be removed in 1.5.1 If message is an Element object, everything up to the first <p> will be displayed in the red box, and everything after will be displayed below the red box. If title is given, it will be displayed as the large header above the error message.
-
trac.ticket.web_ui.datetime_now()¶ [tz] -> new datetime with tz’s local day and time.