Changes between Version 12 and Version 13 of SvnAuthzAdminPlugin


Ignore:
Timestamp:
Mar 25, 2009 11:27:35 PM (5 years ago)
Author:
ThurnerRupert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SvnAuthzAdminPlugin

    v12 v13  
    55This plugin registers a module into the WebAdmin to allow the configuration of the svnauthz file from the web inferface. It uses the AccountManager plugin to present the list of users. 
    66 
    7 The development of this plugin was sponsored by [http://www.euedge.com EU Edge LLC]. See also TracSvnAuthzPlugin for a version which works without applying patches on 0.11. 
     7The development of this plugin was sponsored by [http://www.euedge.com EU Edge LLC]. See also TracSvnAuthzPlugin for editing the file without GUI. 
    88 
    99== Bugs/Feature Requests ==  
     
    4141'''Author:''' [wiki:kisg] [[BR]] 
    4242'''Contributors:''' 
    43  
    44 == To use in Trac v0.11 == 
    45  
    46  1. Install [http://www.clearsilver.net/ ClearSilver] template system 
    47  1. Download [http://trac-hacks.org/changeset/latest/svnauthzadminplugin?old_path=/&filename=svnauthzadminplugin&format=zip SvnAuthzAdminPlugin v0.1] 
    48  1. Unzip and apply the following patch, download it [http://trac-hacks.org/attachment/wiki/SvnAuthzAdminPlugin/svnauthz_0.1.1.patch here]: 
    49 {{{ 
    50 diff -u --recursive SvnAuthzAdminPlugin-0.1.1/svnauthz/admin_ui.py svnauthzadminplugin/0.10/svnauthz/admin_ui.py 
    51 --- SvnAuthzAdminPlugin-0.1.1/svnauthz/admin_ui.py      2008-07-04 19:47:27.000000000 +0800 
    52 +++ svnauthzadminplugin/0.10/svnauthz/admin_ui.py       2007-07-31 12:47:46.000000000 +0800 
    53 @@ -4,7 +4,7 @@ 
    54   
    55  from trac.util import sorted 
    56  from trac.config import Option 
    57 -from trac.admin import IAdminPanelProvider 
    58 +from webadmin.web_ui import IAdminPageProvider 
    59   
    60  from model import * 
    61  from io import * 
    62 @@ -24,7 +24,7 @@ 
    63   
    64  class SvnAuthzAdminPage(Component): 
    65   
    66 -    implements(IAdminPanelProvider, ITemplateProvider) 
    67 +    implements(IAdminPageProvider, ITemplateProvider) 
    68   
    69      def __init__(self): 
    70          self.authz_file = self.env.config.get("trac", "authz_file") 
    71 @@ -34,7 +34,7 @@ 
    72          self.account_manager = AccountManager(self.env) 
    73   
    74      # IAdminPageProvider 
    75 -    def get_admin_panels(self, req): 
    76 +    def get_admin_pages(self, req): 
    77          if req.perm.has_permission('TRAC_ADMIN'): 
    78              yield ('subversion', 'Subversion', 'svnauthz', 'Subversion Access') 
    79   
    80 Only in SvnAuthzAdminPlugin-0.1.1/svnauthz: admin_ui.pyc 
    81 Only in SvnAuthzAdminPlugin-0.1.1/svnauthz: __init__.pyc 
    82 Only in SvnAuthzAdminPlugin-0.1.1/svnauthz: io.pyc 
    83 Only in SvnAuthzAdminPlugin-0.1.1/svnauthz: model.pyc 
    84 diff -u --recursive SvnAuthzAdminPlugin-0.1.1/svnauthz/templates/admin_authz.cs svnauthzadminplugin/0.10/svnauthz/templates/admin_authz.cs 
    85 --- SvnAuthzAdminPlugin-0.1.1/svnauthz/templates/admin_authz.cs 2008-07-04 19:47:27.000000000 +0800 
    86 +++ svnauthzadminplugin/0.10/svnauthz/templates/admin_authz.cs  2007-07-10 13:10:54.000000000 +0800 
    87 @@ -1,13 +1,5 @@ 
    88  <h2>Manage Subversion Access Rights</h2> 
    89 -<?cs def:hdf_select(options, name, selected, optional) ?> 
    90 - <select size="1" id="<?cs var:name ?>" name="<?cs var:name ?>"><?cs 
    91 -  if:optional ?><option></option><?cs /if ?><?cs 
    92 -  each:option = options ?> 
    93 -   <option<?cs if:option == selected ?> selected="selected"<?cs /if ?>><?cs 
    94 -     var:option ?></option><?cs 
    95 -  /each ?> 
    96 - </select><?cs 
    97 -/def?> 
    98 + 
    99   
    100  <?cs if editgroup.name ?> 
    101  <form id="addgroupmember" class="addnew" method="post"> 
    102 }}} 
    103  1. Enjoy it. Any question, concat formalin14(at)gmail(dot)com 
    104  
    105 The above patch doesn't work for me on trac 0.11stable-r7536. But in this ticket you can find a working one: #2612 (See also #4702) 
    106