- Fix corner case issue of an exception raised when attempting to log
when there are no identifiers or authenticators.
| | |
| | | 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) |
| | | ================== |
| | | |
| | |
| | | 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 ' |
| | |
| | | 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): |
| | |
| | | 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): |