Anonymous avatar Anonymous committed 4bdefa0

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

Comments (0)

Files changed (2)

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:'

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:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.