Commits

daniel  committed 4bdefa0

Applied patch from Juanma Barranquero to sort permissions listed with
trac-admin. Many thanks for the patch! Closes #931.

  • Participants
  • Parent commits 15f49ef
  • Branches trunk

Comments (0)

Files changed (2)

File scripts/trac-admin

             print 'Permission %s failed:' % arg[0], e
 
     def _do_permission_list(self):
-        data = self.db_execsql('SELECT username, action FROM permission') 
+        data = self.db_execsql('SELECT username, action FROM permission ORDER BY username, action') 
         self.print_listing(['User', 'Action'], data)
         print
         print 'Available actions:'

File trac/tests/tracadmin-tests.txt

 
 User       Action         
 --------------------------
+anonymous  BROWSER_VIEW   
+anonymous  CHANGESET_VIEW 
+anonymous  FILE_VIEW      
 anonymous  LOG_VIEW       
-anonymous  FILE_VIEW      
-anonymous  WIKI_VIEW      
+anonymous  MILESTONE_VIEW 
+anonymous  REPORT_SQL_VIEW
+anonymous  REPORT_VIEW    
+anonymous  ROADMAP_VIEW   
+anonymous  SEARCH_VIEW    
+anonymous  TICKET_CREATE  
+anonymous  TICKET_MODIFY  
+anonymous  TICKET_VIEW    
+anonymous  TIMELINE_VIEW  
 anonymous  WIKI_CREATE    
 anonymous  WIKI_MODIFY    
-anonymous  SEARCH_VIEW    
-anonymous  REPORT_VIEW    
-anonymous  REPORT_SQL_VIEW
-anonymous  TICKET_VIEW    
-anonymous  TICKET_CREATE  
-anonymous  TICKET_MODIFY  
-anonymous  BROWSER_VIEW   
-anonymous  TIMELINE_VIEW  
-anonymous  CHANGESET_VIEW 
-anonymous  ROADMAP_VIEW   
-anonymous  MILESTONE_VIEW 
+anonymous  WIKI_VIEW      
 
 
 Available actions:
 
 User       Action         
 --------------------------
+anonymous  BROWSER_VIEW   
+anonymous  CHANGESET_VIEW 
+anonymous  FILE_VIEW      
 anonymous  LOG_VIEW       
-anonymous  FILE_VIEW      
-anonymous  WIKI_VIEW      
+anonymous  MILESTONE_VIEW 
+anonymous  REPORT_SQL_VIEW
+anonymous  REPORT_VIEW    
+anonymous  ROADMAP_VIEW   
+anonymous  SEARCH_VIEW    
+anonymous  TICKET_CREATE  
+anonymous  TICKET_MODIFY  
+anonymous  TICKET_VIEW    
+anonymous  TIMELINE_VIEW  
 anonymous  WIKI_CREATE    
 anonymous  WIKI_MODIFY    
-anonymous  SEARCH_VIEW    
-anonymous  REPORT_VIEW    
-anonymous  REPORT_SQL_VIEW
-anonymous  TICKET_VIEW    
-anonymous  TICKET_CREATE  
-anonymous  TICKET_MODIFY  
-anonymous  BROWSER_VIEW   
-anonymous  TIMELINE_VIEW  
-anonymous  CHANGESET_VIEW 
-anonymous  ROADMAP_VIEW   
-anonymous  MILESTONE_VIEW 
+anonymous  WIKI_VIEW      
 test_user  WIKI_VIEW      
 
 
 
 User       Action         
 --------------------------
+anonymous  BROWSER_VIEW   
+anonymous  CHANGESET_VIEW 
+anonymous  FILE_VIEW      
 anonymous  LOG_VIEW       
-anonymous  FILE_VIEW      
-anonymous  WIKI_VIEW      
+anonymous  MILESTONE_VIEW 
+anonymous  REPORT_SQL_VIEW
+anonymous  REPORT_VIEW    
+anonymous  ROADMAP_VIEW   
+anonymous  SEARCH_VIEW    
+anonymous  TICKET_CREATE  
+anonymous  TICKET_MODIFY  
+anonymous  TICKET_VIEW    
+anonymous  TIMELINE_VIEW  
 anonymous  WIKI_CREATE    
 anonymous  WIKI_MODIFY    
-anonymous  SEARCH_VIEW    
-anonymous  REPORT_VIEW    
-anonymous  REPORT_SQL_VIEW
-anonymous  TICKET_VIEW    
-anonymous  TICKET_CREATE  
-anonymous  TICKET_MODIFY  
-anonymous  BROWSER_VIEW   
-anonymous  TIMELINE_VIEW  
-anonymous  CHANGESET_VIEW 
-anonymous  ROADMAP_VIEW   
-anonymous  MILESTONE_VIEW 
+anonymous  WIKI_VIEW      
+test_user  FILE_VIEW      
 test_user  LOG_VIEW       
-test_user  FILE_VIEW      
 
 
 Available actions:
 
 User       Action         
 --------------------------
+anonymous  BROWSER_VIEW   
+anonymous  CHANGESET_VIEW 
+anonymous  FILE_VIEW      
 anonymous  LOG_VIEW       
-anonymous  FILE_VIEW      
-anonymous  WIKI_VIEW      
+anonymous  MILESTONE_VIEW 
+anonymous  REPORT_SQL_VIEW
+anonymous  REPORT_VIEW    
+anonymous  ROADMAP_VIEW   
+anonymous  SEARCH_VIEW    
+anonymous  TICKET_CREATE  
+anonymous  TICKET_VIEW    
+anonymous  TIMELINE_VIEW  
 anonymous  WIKI_CREATE    
 anonymous  WIKI_MODIFY    
-anonymous  SEARCH_VIEW    
-anonymous  REPORT_VIEW    
-anonymous  REPORT_SQL_VIEW
-anonymous  TICKET_VIEW    
-anonymous  TICKET_CREATE  
-anonymous  BROWSER_VIEW   
-anonymous  TIMELINE_VIEW  
-anonymous  CHANGESET_VIEW 
-anonymous  ROADMAP_VIEW   
-anonymous  MILESTONE_VIEW 
+anonymous  WIKI_VIEW      
 
 
 Available actions:
 
 User       Action         
 --------------------------
+anonymous  BROWSER_VIEW   
+anonymous  CHANGESET_VIEW 
+anonymous  FILE_VIEW      
 anonymous  LOG_VIEW       
-anonymous  FILE_VIEW      
-anonymous  WIKI_VIEW      
+anonymous  MILESTONE_VIEW 
+anonymous  REPORT_SQL_VIEW
+anonymous  REPORT_VIEW    
+anonymous  ROADMAP_VIEW   
 anonymous  SEARCH_VIEW    
-anonymous  REPORT_VIEW    
-anonymous  REPORT_SQL_VIEW
-anonymous  TICKET_VIEW    
 anonymous  TICKET_CREATE  
 anonymous  TICKET_MODIFY  
-anonymous  BROWSER_VIEW   
+anonymous  TICKET_VIEW    
 anonymous  TIMELINE_VIEW  
-anonymous  CHANGESET_VIEW 
-anonymous  ROADMAP_VIEW   
-anonymous  MILESTONE_VIEW 
+anonymous  WIKI_VIEW      
 
 
 Available actions: