[Trac-tickets] [The Trac Project] #1533: Allow redefinition of dynamic report variables in URL

The Trac Project noreply at edgewall.com
Wed May 11 08:56:17 EDT 2005


#1533: Allow redefinition of dynamic report variables in URL
---------------------------+------------------------------------------------
       Id:  1533           |      Status:  new                     
Component:  report system  |    Modified:  Wed May 11 08:56:16 2005
 Severity:  trivial        |   Milestone:  0.9                     
 Priority:  normal         |     Version:  0.8                     
    Owner:  daniel         |    Reporter:  pkou at ua.fm           
---------------------------+------------------------------------------------
 Automatic variables that are created for reports (e.g. {{{USER}}}) shall
 not be overridden if they are specified in URL.

 For now, Trac does not allow to see ''My Tickets'' report for other users.
 Example:  {{{http://url/project/report/7}}}'''{{{?USER=}}}''{{{another-
 user}}}'' '''

 Patch for [source:trac/trunk trunk]:
 {{{
 Index: Report.py
 ===================================================================
 --- Report.py   (revision 1648)
 +++ Report.py   (working copy)
 @@ -457,7 +457,8 @@
              report_args[arg] = val

          # Set some default dynamic variables
 -        report_args['USER'] = req.authname
 +        if not report_args.has_key('USER'):
 +            report_args['USER'] = req.authname

          return report_args
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/1533>
The Trac Project <>


More information about the Trac-Tickets mailing list