Flávio Martins wrote: > Hi, > > 2009/4/10 Amos Jeffries <[email protected]>: >> Is there a way to (optinally) cleanly erase the obsolete info from the prefs >> file as it goes? That would help migrating admin know where things are >> during this process which might take many weeks/months. >> >> AYJ >> >> > > Amos, the new attached patch adds that ability. > I yanked the file saving from users.py from Pootle 1.2.1. >>From my tests it seems to work great. > > Tell me what you think. > > Flávio Martins
Finally getting to test this out. After making sure the new pootle runs properly etc. I've added that patch, and the login results change from can't login (with details from old users.prefs) to an error loading the auth backend. The URL below is public, so if you want access go ahead. (If you get the CDN non-exist page it just means the testing PootleServer has died for some reason. Seems to die during the morning log rotations) Environment: Request Method: POST Request URL: http://pootle.treenet.co.nz/login.html Django Version: 1.0.2 final Python Version: 2.5.4 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'pootle_app', 'pootle_misc', 'pootle_store'] Installed Middleware: ('pootle_misc.middleware.baseurl.BaseUrlMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'pootle.middleware.check_cookies.CheckCookieMiddleware', 'pootle.middleware.locale.LocaleMiddleware', 'pootle.middleware.profile.ProfilerMiddleware') Traceback: File "/usr/lib/pymodules/python2.5/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/home/www/treehouse/projects/pootle/Pootle/local_apps/pootle_app/views/index/login.py" in view 51. if form.is_valid(): File "/usr/lib/pymodules/python2.5/django/forms/forms.py" in is_valid 120. return self.is_bound and not bool(self.errors) File "/usr/lib/pymodules/python2.5/django/forms/forms.py" in _get_errors 111. self.full_clean() File "/usr/lib/pymodules/python2.5/django/forms/forms.py" in full_clean 241. self.cleaned_data = self.clean() File "/usr/lib/pymodules/python2.5/django/contrib/auth/forms.py" in clean 78. self.user_cache = authenticate(username=username, password=password) File "/usr/lib/pymodules/python2.5/django/contrib/auth/__init__.py" in authenticate 34. for backend in get_backends(): File "/usr/lib/pymodules/python2.5/django/contrib/auth/__init__.py" in get_backends 27. backends.append(load_backend(backend_path)) File "/usr/lib/pymodules/python2.5/django/contrib/auth/__init__.py" in load_backend 14. raise ImproperlyConfigured, 'Error importing authentication backend %s: "%s"' % (module, e) Exception Type: ImproperlyConfigured at /login.html Exception Value: Error importing authentication backend auth.prefs_backend: "No module named auth.prefs_backend" ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
