There are two answers to this:
1. If you want to do this in a plugin, just change the results on the
fly using a filter like I already said.
2. If you insist on patching Trac directly (knowing that it will likely
break on the next major upgrade), the place to change it is here:
http://trac.edgewall.org/browser/trunk/trac/ticket/query.py#L394. What
you want to do is wrap the value of each of the orderings in a call to
lower().

--Noah

patb wrote:
> The problem I have is that when I group by "owner" it alphabetizes owners,
> but does uppercase owner names first and then lower case owner names. I
> would like all merged into alphabetized results regardless of case of their
> first letter. 
>
> I believe this would be a change of an SQL statement...currently combing
> through query.py around line 300...I believe this is where the "Group By"
> <option> select gets passed in?
>
> Pat
>
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Noah Kantrowitz
> Sent: Wednesday, July 25, 2007 7:45 AM
> To: [email protected]
> Subject: [Trac] Re: Trac Flow Overview
>
> You need to say what you actually want it to do ...
>
> --Noah
>
> patb wrote:
>   
>> Well, I would like to edit the action that occurs after i select "Group
>> By=>Owner", then "Update". 
>>
>> Where in the trac code does this then go to?
>>
>> Thanks,
>> Pat
>>
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[EMAIL PROTECTED] On
>> Behalf Of Noah Kantrowitz
>> Sent: Tuesday, July 24, 2007 10:26 PM
>> To: [email protected]
>> Subject: [Trac] Re: Trac Flow Overview
>>
>>
>> The place to make a change like that (as a plugin) is using a request
>> filter (IRequestFilter). Those get run both before after the main
>> request handler, and in this case you want to tweak the data being sent
>> to the template slightly.
>>
>> --Noah
>>
>> Pat wrote:
>>     
>>> I am just getting involved with Trac.
>>>
>>> Is there an overview of how the program works that shows file
>>> relationships?
>>>
>>> Specifically, I have been able to decipher that the WSIGateway handles
>>> requests and then dispatches them.
>>>
>>> Quite simply, i am looking to make a minor change in the code but need
>>> some more background on how the architecture of the program works. I
>>> have seen the wiki page on components but need a broader view of the
>>> whole program versus reading through the source line by line.
>>>
>>> I would like to have the query function on ticket owners respond with
>>> results in alphabetized form, however if does uppercase alphabetized
>>> and then lowercase alphabetized right now.
>>>
>>> Thanks!
>>>
>>> pat
>>> [EMAIL PROTECTED]
>>>
>>>
>>>   
>>>       
>>
>>
>>
>>
>>
>>     
>
>
>
>
>
> >
>
>   


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