Thanx. I will try to implement it

 didley

On Oct 8, 8:45 pm, "Noah Kantrowitz" <[EMAIL PROTECTED]> 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: [email protected] [mailto:[EMAIL PROTECTED]
> > 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 <[EMAIL PROTECTED]> wrote:
> > > On Oct 7, 2008, at 11:51 PM, didley wrote:
>
> > > > On Oct 7, 9:33 am, "Stephen Moretti" <[EMAIL PROTECTED]>
> > > > wrote:
> > > >> 2008/10/7 didley <[EMAIL PROTECTED]>
>
> > > >>> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to