Changeset 2068
- Timestamp:
- 02/28/07 20:32:48 (2 years ago)
- Files:
-
- accountmanagerplugin/trunk/acct_mgr/htfile.py (modified) (3 diffs)
- accountmanagerplugin/trunk/acct_mgr/svnserve.py (added)
- accountmanagerplugin/trunk/acct_mgr/util.py (added)
- accountmanagerplugin/trunk/setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
accountmanagerplugin/trunk/acct_mgr/htfile.py
r2064 r2068 21 21 22 22 from api import IPasswordStore 23 from util import EnvRelativePathOption 23 24 24 25 # check for the availability of the "crypt" module for checking passwords on … … 40 41 41 42 42 class _RelativePathOption(Option):43 44 def __get__(self, instance, owner):45 if instance is None:46 return self47 path = super(_RelativePathOption, self).__get__(instance, owner)48 return os.path.normpath(os.path.join(instance.env.path, path))49 50 51 43 class AbstractPasswordFileStore(Component): 52 44 """Base class for managing password files such as Apache's htpasswd and … … 56 48 """ 57 49 58 filename = _RelativePathOption('account-manager', 'password_file')50 filename = EnvRelativePathOption('account-manager', 'password_file') 59 51 60 52 def has_user(self, user): accountmanagerplugin/trunk/setup.py
r1665 r2068 28 28 entry_points = { 29 29 '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', 31 32 'acct_mgr.htfile = acct_mgr.htfile', 32 33 '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', 35 36 ] 36 37 },
