Chris McDonough
2009-02-05 afbbcde689f46ed6e14613f92f251d974fbf15f5
- Fix corner case issue of an exception raised when attempting to log
when there are no identifiers or authenticators.


2 files modified
12 ■■■■ changed files
CHANGES.txt 6 ●●●●● patch | view | raw | blame | history
repoze/who/middleware.py 6 ●●●● patch | view | raw | blame | history
CHANGES.txt
@@ -2,6 +2,12 @@
repoze.who changes
==================
Next Release
============
- Fix corner case issue of an exception raised when attempting to log
  when there are no identifiers or authenticators.
1.0.10 (2009/1/23)
==================
repoze/who/middleware.py
@@ -143,7 +143,7 @@
        logger = self.logger
        candidates = self.registry.get(IIdentifier, ())
        logger and self.logger.info('identifier plugins registered %s' %
                                    candidates)
                                    (candidates,))
        plugins = match_classification(IIdentifier, candidates, classification)
        logger and self.logger.info(
            'identifier plugins matched for '
@@ -160,7 +160,7 @@
                logger and logger.debug(
                    'no identity returned from %s (%s)' % (plugin, identity))
        logger and logger.debug('identities found: %s' % results)
        logger and logger.debug('identities found: %s' % (results,))
        return results
    def add_metadata(self, environ, classification, identity):
@@ -208,7 +208,7 @@
                identifier_rank += 1
            auth_rank += 1
        logger and logger.debug('identities authenticated: %s' % results)
        logger and logger.debug('identities authenticated: %s' % (results,))
        return results
    def _filter_preauthenticated(self, identities):