Changeset 83
- Timestamp:
- 07/25/05 21:58:05 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
adminconsoleproviderpatch/trunk/admin-provider-refactor.diff
r71 r83 1 1 Index: trac/ticket/api.py 2 2 =================================================================== 3 --- trac/ticket/api.py (revision 1988)3 --- trac/ticket/api.py (revision 2033) 4 4 +++ trac/ticket/api.py (working copy) 5 @@ -25,6 +25,7 @@ 6 from trac.core import * 5 @@ -26,8 +26,8 @@ 7 6 from trac.perm import IPermissionRequestor 8 7 from trac.wiki import IWikiSyntaxProvider 8 from trac.Search import ISearchSource, query_to_sql, shorten_result 9 9 +from trac.scripts.admin import IAdminConsoleProvider 10 10 11 - 11 12 class MyLinkResolver(Component): 12 13 """ 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 19 19 +class TicketAdminConsole(Component): 20 20 + """ Provides trac-admin with ticket related commands """ … … 288 288 + rows = self.db_query("SELECT name FROM version") 289 289 + return [row[0] for row in rows] 290 +291 290 Index: trac/Milestone.py 292 291 =================================================================== 293 --- trac/Milestone.py (revision 1988)292 --- trac/Milestone.py (revision 2033) 294 293 +++ trac/Milestone.py (working copy) 295 294 @@ -30,8 +30,8 @@ … … 397 396 Index: trac/scripts/admin.py 398 397 =================================================================== 399 --- trac/scripts/admin.py (revision 1988)398 --- trac/scripts/admin.py (revision 2033) 400 399 +++ trac/scripts/admin.py (working copy) 401 400 @@ -33,13 +33,14 @@ … … 1121 1120 Index: trac/scripts/tests/admin.py 1122 1121 =================================================================== 1123 --- trac/scripts/tests/admin.py (revision 1988)1122 --- trac/scripts/tests/admin.py (revision 2033) 1124 1123 +++ trac/scripts/tests/admin.py (working copy) 1125 1124 @@ -27,6 +27,7 @@ … … 1171 1170 Index: trac/scripts/tests/admin-tests.txt 1172 1171 =================================================================== 1173 --- trac/scripts/tests/admin-tests.txt (revision 1988)1172 --- trac/scripts/tests/admin-tests.txt (revision 2033) 1174 1173 +++ trac/scripts/tests/admin-tests.txt (working copy) 1175 1174 @@ -6,50 +6,50 @@ … … 1256 1255 Index: trac/perm.py 1257 1256 =================================================================== 1258 --- trac/perm.py (revision 1988)1257 --- trac/perm.py (revision 2033) 1259 1258 +++ trac/perm.py (working copy) 1260 1259 @@ -24,8 +24,9 @@ … … 1379 1378 Index: trac/wiki/api.py 1380 1379 =================================================================== 1381 --- trac/wiki/api.py (revision 1988)1380 --- trac/wiki/api.py (revision 2033) 1382 1381 +++ trac/wiki/api.py (working copy) 1383 @@ - 28,8 +28,10 @@1382 @@ -32,8 +32,10 @@ 1384 1383 1385 1384 from trac.core import * … … 1393 1392 """Extension point interface for components that should get notified about 1394 1393 the creation, deletion and modification of wiki pages. 1395 @@ -1 51,3 +153,154 @@1394 @@ -161,3 +163,154 @@ 1396 1395 else: 1397 1396 return '<a class="wiki" href="%s">%s</a>' \
