Hello, Mark.
On Monday January 5, 2009 05:45:03 Mark Ramm wrote:
> Hmm, I can't reproduce that right now.
>
> Perhaps you had a strange intermediary state where I accidentially had
> url called new_url in tg, but current trunk appears to work and all
> the url tests are passing.
Now I have a fresh virtualenv with the latest trunk and the problem is still
present. Can you please try the attached patch?
Cheers.
--
Gustavo Narea <http://gustavonarea.net/>.
Get rid of unethical constraints! Get freedomware:
http://www.getgnulinux.org/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Index: configuration.py
===================================================================
--- configuration.py (revision 6032)
+++ configuration.py (working copy)
@@ -15,6 +15,7 @@
from paste.deploy.converters import asbool
from pylons.middleware import report_libs, StatusCodeRedirect
from tg import TGApp
+from tg.controllers import url
from tg.error import ErrorHandler
from tg.util import Bunch, get_partial_dict, get_dotted_filename
from routes import Mapper
@@ -461,6 +462,16 @@
auth_args = copy(self.sa_auth)
if 'password_encryption_method' in auth_args:
del auth_args['password_encryption_method']
+
+ # Inserting the script path if using the default RedirectingFormPlugin:
+ if auth_args.get('form_plugin') is None:
+ login_url = self.sa_auth.get('login_url', '/login')
+ login_handler = self.sa_auth.get('login_handler', '/login_handler')
+ logout_handler = self.sa_auth.get('logout_handler',
+ '/logout_handler')
+ auth_args['login_url'] = url(login_url)
+ auth_args['login_handler'] = url(login_handler)
+ auth_args['logout_handler'] = url(logout_handler)
app = setup_sql_auth(app, **auth_args)
return app