SvnAuthzAdminPlugin: svnauthz_0.1.1.patch
| File svnauthz_0.1.1.patch, 2.1 kB (added by formalin14, 2 months ago) |
|---|
-
svnauthzadminplugin/0.10/svnauthz/admin_ui.py
old new 4 4 5 5 from trac.util import sorted 6 6 from trac.config import Option 7 from trac.admin import IAdminPanelProvider7 from webadmin.web_ui import IAdminPageProvider 8 8 9 9 from model import * 10 10 from io import * … … 24 24 25 25 class SvnAuthzAdminPage(Component): 26 26 27 implements(IAdminPa nelProvider, ITemplateProvider)27 implements(IAdminPageProvider, ITemplateProvider) 28 28 29 29 def __init__(self): 30 30 self.authz_file = self.env.config.get("trac", "authz_file") … … 34 34 self.account_manager = AccountManager(self.env) 35 35 36 36 # IAdminPageProvider 37 def get_admin_pa nels(self, req):37 def get_admin_pages(self, req): 38 38 if req.perm.has_permission('TRAC_ADMIN'): 39 39 yield ('subversion', 'Subversion', 'svnauthz', 'Subversion Access') 40 40 -
svnauthzadminplugin/0.10/svnauthz/templates/admin_authz.cs
old new 1 1 <h2>Manage Subversion Access Rights</h2> 2 <?cs def:hdf_select(options, name, selected, optional) ?> 3 <select size="1" id="<?cs var:name ?>" name="<?cs var:name ?>"><?cs 4 if:optional ?><option></option><?cs /if ?><?cs 5 each:option = options ?> 6 <option<?cs if:option == selected ?> selected="selected"<?cs /if ?>><?cs 7 var:option ?></option><?cs 8 /each ?> 9 </select><?cs 10 /def?> 2 11 3 12 4 <?cs if editgroup.name ?> 13 5 <form id="addgroupmember" class="addnew" method="post">
