Changeset 2068

Show
Ignore:
Timestamp:
02/28/07 20:32:48 (2 years ago)
Author:
mgood
Message:

AccountManagerPlugin:

add password store for reading svnserve users

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • accountmanagerplugin/trunk/acct_mgr/htfile.py

    r2064 r2068  
    2121 
    2222from api import IPasswordStore 
     23from util import EnvRelativePathOption 
    2324 
    2425# check for the availability of the "crypt" module for checking passwords on 
     
    4041 
    4142 
    42 class _RelativePathOption(Option): 
    43   
    44     def __get__(self, instance, owner): 
    45         if instance is None: 
    46             return self 
    47         path = super(_RelativePathOption, self).__get__(instance, owner) 
    48         return os.path.normpath(os.path.join(instance.env.path, path)) 
    49  
    50  
    5143class AbstractPasswordFileStore(Component): 
    5244    """Base class for managing password files such as Apache's htpasswd and 
     
    5648    """ 
    5749 
    58     filename = _RelativePathOption('account-manager', 'password_file') 
     50    filename = EnvRelativePathOption('account-manager', 'password_file') 
    5951 
    6052    def has_user(self, user): 
  • accountmanagerplugin/trunk/setup.py

    r1665 r2068  
    2828    entry_points = { 
    2929        'trac.plugins': [ 
    30             'acct_mgr.web_ui = acct_mgr.web_ui', 
     30            'acct_mgr.admin = acct_mgr.admin', 
     31            'acct_mgr.api = acct_mgr.api', 
    3132            'acct_mgr.htfile = acct_mgr.htfile', 
    3233            'acct_mgr.http = acct_mgr.http', 
    33             'acct_mgr.api = acct_mgr.api', 
    34             'acct_mgr.admin = acct_mgr.admin', 
     34            'acct_mgr.svnserve = acct_mgr.svnserve', 
     35            'acct_mgr.web_ui = acct_mgr.web_ui', 
    3536        ] 
    3637    },