
didley at gmx
Oct 10, 2008, 3:09 AM
Post #7 of 7
(94 views)
Permalink
|
Thanx. I will try to implement it didley On Oct 8, 8:45 pm, "Noah Kantrowitz" <n...@coderanger.net> wrote: > from trac.core import * > from trac.ticket.api import ITicketManipulator > > class SetCreatorModule(Component): > > implements(ITicketManipulator) > > def prepare_ticket(self, req, ticket, fields, actions): > pass > > def validate_ticket(self, req, ticket): > if req.path_info == '/newticket': > ticket['creator'] = req.authname > return () > > > > > -----Original Message----- > > From: trac-users[at]googlegroups.com [mailto:trac-users[at]googlegroups.com] > > On Behalf Of didley > > Sent: Wednesday, October 08, 2008 11:40 AM > > To: Trac Users > > Subject: [Trac] Re: Looking for the record creator > > > On Oct 8, 8:53 am, Noah Kantrowitz <n...@coderanger.net> wrote: > > > On Oct 7, 2008, at 11:51 PM, didley wrote: > > > > > On Oct 7, 9:33 am, "Stephen Moretti" <stephen.more...@gmail.com> > > > > wrote: > > > >> 2008/10/7 didley <did...@gmx.de> > > > > >>> Sometimes it's necessary that a user with ticket-admin permission > > > > >>> has > > > >>> to create tickets with to fill out reporter and assign a owner. > > When > > > >>> this is done I can't see the creator (ticket-admin) of the > > ticket. > > > >>> After a while all user thinking the inscribed reporter is the > > > >>> creator > > > >>> but it isn't. > > > > >>> Is there a field in the table schema of trac where I can find the > > > >>> creator? > > > > >> Nope. The reporter is the creator under most circumstances. > > > >> Have you thought of leaving the reporter as the ticket-admin and > > > >> adding the > > > >> person who emailed/called the ticket as a cc member? > > > >> Or possibly adding a custom field for the creatpr? > > > > >> Stephen > > > > > That's pity. I have to think obout if add a custom field for it. I > > > > suppose it's the only way I have. > > > > It would be pretty easy to automate in a plugin, just make an > > > ITicketManipulator that sets the field value on create to > > req.authname. > > > > --Noah- Hide quoted text - > > > > - Show quoted text - > > > I would if I could. > > > didley- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users[at]googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
|