+1
----- Исходное сообщение -----
От: Morris <[EMAIL PROTECTED]>
Отправлено: 11 августа 2007 г. 1:00
Кому: Trac Users <[email protected]>
Тема: [Trac] Re: Workflow patch by PV: set_owner_to_reporter
+1
On Aug 10, 9:08 am, "Erik Andersson" <[EMAIL PROTECTED]> wrote:
> I did an addition as well:
>
> Index: default_workflow.py
> ===================================================================
> --- default_workflow.py (revision 5898)
> +++ default_workflow.py (working copy)
> @@ -226,6 +226,8 @@
> for x in owners],
> id=id, name=id)]))
> hints.append(_("The owner will change"))
> + if 'set_owner_to_reporter' in operations:
> + hints.append(_("The owner will change to %s") %
> ticket['reporter'])
> if 'set_owner_to_self' in operations:
> hints.append(_("The owner will change to %s") % req.authname)
> if 'set_resolution' in operations:
> @@ -282,6 +284,11 @@
> if type(newowner) == list:
> newowner = newowner[0]
> updated['owner'] = newowner
> + elif operation == 'set_owner_to_reporter':
> + if ticket['reporter']:
> + updated['owner'] = ticket['reporter']
> + else:
> + updated['owner'] = ''
> elif operation == 'set_owner_to_self':
> updated['owner'] = req.authname
>
> Cheers / Erik
>
> On 8/10/07, Russ Brown <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Erik Andersson wrote:
> > > Hi
>
> > > I'd already found the need for and implemented this locally.
>
> > > I'm +1 for adding this as soon as possible!
>
> > > /Erik
>
> > Another vote for this one. This is exactly how we use tickets too.
>
> > > On 7/31/07, *cobwebsmasher* <[EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED]>> wrote:
>
> > > Hi. I'd like to submit this patch to the Trac development team,
> > > presuming it's actually useful (or still not addressed) but don't
> > > know how, so I'm hoping this is useful.
>
> > > The use case is when you want a ticket to be assigned to original
> > > reporter. Our company uses this as a enforced QA step. i.e. if you
> > > created the ticket, then you're on the hook to close the ticket.
>
> > > This would be at or around line 279 on the file:
> > > ticket/default_workflow.py
>
> > > 279 elif operation == 'set_owner_to_reporter':
> > > 280 if ticket['reporter']:
[Включен не весь текст исходного сообщения]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---