Nice catch!

On Thu, Dec 11, 2008 at 7:20 PM,  <[email protected]> wrote:
>
> Author: Gustavo
> Date: Thu Dec 11 12:20:11 2008
> New Revision: 5850
> URL: http://trac.turbogears.org/changeset/5850
>
> Log:
> Ignored arguments not used by repoze.who, but defined in {app}.config.app_cfg 
> (otherwise we'll get an exception)
>
> Modified:
>   trunk/tg/configuration.py
>
> Modified: trunk/tg/configuration.py
> ==============================================================================
> --- trunk/tg/configuration.py   (original)
> +++ trunk/tg/configuration.py   Thu Dec 11 12:20:11 2008
> @@ -1,6 +1,7 @@
>  """Configuration Helpers for TurboGears 2"""
>  import os
>  import logging
> +from copy import copy
>  from UserDict import DictMixin
>  from pylons.i18n import ugettext
>  from genshi.filters import Translator
> @@ -373,8 +374,13 @@
>     def add_auth_middleware(self, app):
>         """Configure authentication and authorization"""
>         from repoze.what.plugins.quickstart import setup_sql_auth
> +
> +        # Removing keywords not used by repoze.who:
> +        auth_args = copy(self.sa_auth)
> +        if 'password_encryption_method' in auth_args:
> +            del auth_args['password_encryption_method']
>
> -        app = setup_sql_auth(app, **self.sa_auth)
> +        app = setup_sql_auth(app, **auth_args)
>         return app
>
>     def add_core_middleware(self, app):
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to