Changeset 83

Show
Ignore:
Timestamp:
07/25/05 21:58:05 (3 years ago)
Author:
athomas
Message:

AdminConsoleProviderPatch:

  • Synchronised with Trac changeset 2033
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • adminconsoleproviderpatch/trunk/admin-provider-refactor.diff

    r71 r83  
    11Index: trac/ticket/api.py 
    22=================================================================== 
    3 --- trac/ticket/api.py  (revision 1988
     3--- trac/ticket/api.py  (revision 2033
    44+++ trac/ticket/api.py  (working copy) 
    5 @@ -25,6 +25,7 @@ 
    6  from trac.core import * 
     5@@ -26,8 +26,8 @@ 
    76 from trac.perm import IPermissionRequestor 
    87 from trac.wiki import IWikiSyntaxProvider 
     8 from trac.Search import ISearchSource, query_to_sql, shorten_result 
    99+from trac.scripts.admin import IAdminConsoleProvider 
    1010  
     11- 
    1112 class MyLinkResolver(Component): 
    1213     """ 
    13 @@ -168,4 +169,276 @@ 
    14              return '<a class="missing ticket" href="%s" rel="nofollow">%s</a>' \ 
    15                     % (formatter.href.ticket(target), label) 
    16   
    17 -     
    18 
     14     A dummy macro used by the unit test. We need to supply our own macro 
     15@@ -200,3 +200,274 @@ 
     16                    date, author, 
     17                    util.escape(shorten_result(desc, query.split()))) 
     18              
    1919+class TicketAdminConsole(Component): 
    2020+    """ Provides trac-admin with ticket related commands """ 
     
    288288+        rows = self.db_query("SELECT name FROM version") 
    289289+        return [row[0] for row in rows] 
    290 + 
    291290Index: trac/Milestone.py 
    292291=================================================================== 
    293 --- trac/Milestone.py   (revision 1988
     292--- trac/Milestone.py   (revision 2033
    294293+++ trac/Milestone.py   (working copy) 
    295294@@ -30,8 +30,8 @@ 
     
    397396Index: trac/scripts/admin.py 
    398397=================================================================== 
    399 --- trac/scripts/admin.py       (revision 1988
     398--- trac/scripts/admin.py       (revision 2033
    400399+++ trac/scripts/admin.py       (working copy) 
    401400@@ -33,13 +33,14 @@ 
     
    11211120Index: trac/scripts/tests/admin.py 
    11221121=================================================================== 
    1123 --- trac/scripts/tests/admin.py (revision 1988
     1122--- trac/scripts/tests/admin.py (revision 2033
    11241123+++ trac/scripts/tests/admin.py (working copy) 
    11251124@@ -27,6 +27,7 @@ 
     
    11711170Index: trac/scripts/tests/admin-tests.txt 
    11721171=================================================================== 
    1173 --- trac/scripts/tests/admin-tests.txt  (revision 1988
     1172--- trac/scripts/tests/admin-tests.txt  (revision 2033
    11741173+++ trac/scripts/tests/admin-tests.txt  (working copy) 
    11751174@@ -6,50 +6,50 @@ 
     
    12561255Index: trac/perm.py 
    12571256=================================================================== 
    1258 --- trac/perm.py        (revision 1988
     1257--- trac/perm.py        (revision 2033
    12591258+++ trac/perm.py        (working copy) 
    12601259@@ -24,8 +24,9 @@ 
     
    13791378Index: trac/wiki/api.py 
    13801379=================================================================== 
    1381 --- trac/wiki/api.py    (revision 1988
     1380--- trac/wiki/api.py    (revision 2033
    13821381+++ trac/wiki/api.py    (working copy) 
    1383 @@ -28,8 +28,10 @@ 
     1382@@ -32,8 +32,10 @@ 
    13841383  
    13851384 from trac.core import * 
     
    13931392     """Extension point interface for components that should get notified about 
    13941393     the creation, deletion and modification of wiki pages. 
    1395 @@ -151,3 +153,154 @@ 
     1394@@ -161,3 +163,154 @@ 
    13961395         else: 
    13971396             return '<a class="wiki" href="%s">%s</a>' \