Changes between Version 2 and Version 3 of TracTicketValidatorPlugin


Ignore:
Timestamp:
Aug 24, 2009, 4:35:03 AM (5 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketValidatorPlugin

    v2 v3  
    2525
    2626== Example ==
    27 
     27 1. Validate anonymous author email address and make comment required:
    2828{{{
    2929[components]
     
    3333validate_author = true
    3434validate_author.tip = Please fill your valid email address
    35 validates = summary, comment
     35validates = comment
    3636comment.rule = .*
    3737comment.tip = Please input comment
     38}}}
     39 1. There is a very straightward implement of parent/child tickets, just prepend parent ticket number to the child ticket summary. For example, the parent ticket 234 summary is {{{<#0>A parent ticket}}}, the child ticket summary will be {{{<#234>A child ticket}}}. We can do validation like following:
     40{{{
     41[components]
     42ticketvalidator.* = enabled
     43
     44[ticketvalidator]
     45validates = summary
     46summary.rule = ^<#\d*>.*
     47summary.tip = Please correct summary format
    3848}}}
    3949