Changeset 77

Show
Ignore:
Timestamp:
07/20/05 09:57:55 (3 years ago)
Author:
mgood
Message:

AccountManagerPlugin:

  • Fix the spelling of "htpasswd" in the README
  • Display an appropriate error message if there isn't a matching IPasswordStore implementation
    (fixes #21)
Files:

Legend:

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

    r76 r77  
    4444        """ 
    4545 
    46 # os.urandom was added in Python 2.4 
    47 # try to fall back on reading from /dev/urandom on older Python versions 
    48 try: 
    49     from os import urandom 
    50 except ImportError: 
    51     def urandom(n): 
    52         return open('/dev/urandom').read(n) 
    53  
    5446class AccountManager(Component): 
    5547    """The AccountManager component handles all user account management methods 
     
    7163            if store.config_key() == fmt: 
    7264                return store 
     65        raise TracError('No password store found.  Please configure ' 
     66                        '"account-manager.password_format" in trac.ini.') 
    7367 
    7468 
  • accountmanagerplugin/trunk/README

    r76 r77  
    1616{{{ 
    1717[account-manager] 
    18 password_format = htpass
     18password_format = htpassw
    1919password_file = /path/to/trac.htpasswd 
    2020}}} 
  • accountmanagerplugin/trunk/setup.py

    r76 r77  
    88setup( 
    99    name = 'TracAccountManager', 
    10     version = '0.1', 
     10    version = '0.1.1', 
    1111    author = 'Matthew Good', 
    1212    author_email = 'trac@matt-good.net',