Changes between Version 5 and Version 6 of SvnAuthzAdminPlugin


Ignore:
Timestamp:
Jul 4, 2008, 2:09:43 PM (6 years ago)
Author:
formalin14
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SvnAuthzAdminPlugin

    v5 v6  
    4545'''Author:''' [wiki:kisg] [[BR]]
    4646'''Contributors:'''
     47
     48== To use in Trac v0.11 ==
     49
     50 1. Install [http://www.clearsilver.net/ ClearSilver] template system
     51 1. Download [http://trac-hacks.org/changeset/latest/svnauthzadminplugin?old_path=/&filename=svnauthzadminplugin&format=zip SvnAuthzAdminPlugin v0.1]
     52 1. Unzip and apply the following patch:
     53{{{
     54diff -u --recursive SvnAuthzAdminPlugin-0.1.1/svnauthz/admin_ui.py svnauthzadminplugin/0.10/svnauthz/admin_ui.py
     55--- SvnAuthzAdminPlugin-0.1.1/svnauthz/admin_ui.py      2008-07-04 19:47:27.000000000 +0800
     56+++ svnauthzadminplugin/0.10/svnauthz/admin_ui.py       2007-07-31 12:47:46.000000000 +0800
     57@@ -4,7 +4,7 @@
     58 
     59 from trac.util import sorted
     60 from trac.config import Option
     61-from trac.admin import IAdminPanelProvider
     62+from webadmin.web_ui import IAdminPageProvider
     63 
     64 from model import *
     65 from io import *
     66@@ -24,7 +24,7 @@
     67 
     68 class SvnAuthzAdminPage(Component):
     69 
     70-    implements(IAdminPanelProvider, ITemplateProvider)
     71+    implements(IAdminPageProvider, ITemplateProvider)
     72 
     73     def __init__(self):
     74         self.authz_file = self.env.config.get("trac", "authz_file")
     75@@ -34,7 +34,7 @@
     76         self.account_manager = AccountManager(self.env)
     77 
     78     # IAdminPageProvider
     79-    def get_admin_panels(self, req):
     80+    def get_admin_pages(self, req):
     81         if req.perm.has_permission('TRAC_ADMIN'):
     82             yield ('subversion', 'Subversion', 'svnauthz', 'Subversion Access')
     83 
     84Only in SvnAuthzAdminPlugin-0.1.1/svnauthz: admin_ui.pyc
     85Only in SvnAuthzAdminPlugin-0.1.1/svnauthz: __init__.pyc
     86Only in SvnAuthzAdminPlugin-0.1.1/svnauthz: io.pyc
     87Only in SvnAuthzAdminPlugin-0.1.1/svnauthz: model.pyc
     88diff -u --recursive SvnAuthzAdminPlugin-0.1.1/svnauthz/templates/admin_authz.cs svnauthzadminplugin/0.10/svnauthz/templates/admin_authz.cs
     89--- SvnAuthzAdminPlugin-0.1.1/svnauthz/templates/admin_authz.cs 2008-07-04 19:47:27.000000000 +0800
     90+++ svnauthzadminplugin/0.10/svnauthz/templates/admin_authz.cs  2007-07-10 13:10:54.000000000 +0800
     91@@ -1,13 +1,5 @@
     92 <h2>Manage Subversion Access Rights</h2>
     93-<?cs def:hdf_select(options, name, selected, optional) ?>
     94- <select size="1" id="<?cs var:name ?>" name="<?cs var:name ?>"><?cs
     95-  if:optional ?><option></option><?cs /if ?><?cs
     96-  each:option = options ?>
     97-   <option<?cs if:option == selected ?> selected="selected"<?cs /if ?>><?cs
     98-     var:option ?></option><?cs
     99-  /each ?>
     100- </select><?cs
     101-/def?>
     102+
     103 
     104 <?cs if editgroup.name ?>
     105 <form id="addgroupmember" class="addnew" method="post">
     106}}}
     107 1. Enjoy it. Any question, concat formalin14(at)gmail(dot)com
     108