Hey guys, 

It appears that I can validate fields for a ticket via validate_ticket and if I 
use if req.path_info ('/newticket' to detect it from new ticket entry but this 
doesn't catch new tickets created in other ways such as via the RPC. Ok, so I 
can detect new ticket creation with ticket_created, but this doesn't seem to 
allow me to adjust the field values. It seems to trigger after the ticket is 
created and doesn't intercept the request allowing me to adjust the fields 
before submission. 

I hope that makes sense. How do I appropriately detect a *new ticket* and alter 
the fields before it is saved as I do with validate_ticket? 

I was looking for more info on the req object. Maybe I don't know how to search 
for what I want in the API document. Is there something in there which I can 
use from within validate_ticket to detect that it is a new ticket (from 
whatever source) and avoid making the adjustments for ticket updates? 


Thanks, 
Logan 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-dev+unsubscr...@googlegroups.com.
To post to this group, send email to trac-dev@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to