Kudos Chris worked just as advertised thanks! I also had success using  
'owner'.

I wonder now if this could simply be put into a project template to  
avoid having to patch the Trac source...

-David


On 29-May-09, at 2:51 PM, Chris Heller wrote:

>
> This value gets set in the _render_view method on the MilestoneModule
> class.  Here is the source for 0.11.4.
>
> http://trac.edgewall.org/browser/tags/trac-0.11.4/trac/ticket/roadmap.py#L708
>
> It looks like you could do a simple code change (untested) from
>
>         by = None
>         if component_group_available:
>             by = 'component'
>         elif available_groups:
>             by = available_groups[0]['name']
>         by = req.args.get('by', by)
>
> to
>
>         by = req.args.get('by', 'priority')
>
> This would still allow someone to pick and choose what they want to
> sort by, but have the default be Priority ('priority' being the actual
> code value for the label 'Priority').
>
> On Fri, May 29, 2009 at 10:28 AM, David Starr <[email protected]>  
> wrote:
>>
>> Hi I'm just wondering if there may be any way to change the defaults
>> for the 'subgraphs' also known as 'Ticket status by [dropdown]' in  
>> the
>> singular milestone view.
>>
>> My desire is to show by Priority and not Reporter when the user first
>> clicks that page.
>>
>> Seems like writing a plugin for this might be overkill to me.. But  
>> any
>> tips or pointers would be much appreciated. Thanks all!
>>
>> -David
>>
>>>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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