Fix transifex disablement to not traceback w/ search engines
Search engines are hitting the login page and tripping a traceback. I'd
like to apply this patch to our hotfix from yesterday in order to fix that.
Issue reported here:
diff --git a/modules/hotfix/files/transifex/tx-simpleauth-views.py b/modules/hotfix/files/transifex/tx-simpleauth-views.py
index f38234c..d4ccb48 100644
--- a/modules/hotfix/files/transifex/tx-simpleauth-views.py
+++ b/modules/hotfix/files/transifex/tx-simpleauth-views.py
@@ -19,8 +19,11 @@ def logout(request, template_name='simpleauth/logged_out.html'):
def login(request, template_name='simpleauth/signin.html'):
"""Login the user to the website and redirect back."""
# Migration to fedora.transifex.net
- request.user.message_set.create(
- message=_("Login is disabled due to migration to fedora.transifex.net."))
+ try:
+ request.user.message_set.create(
+ message=_("Login is disabled due to migration to fedora.transifex.net."))
+ except:
+ pass
return HttpResponseRedirect(reverse('transifex.home'))
# next = clean_next(request.GET.get('next'))
# # By default keep the user logged in for 3 weeks
--
1.5.5.6
_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
02-22-2011, 04:22 PM
Kevin Fenzi
Fix transifex disablement to not traceback w/ search engines
On Tue, 22 Feb 2011 09:13:55 -0800
Toshio Kuratomi <a.badger@gmail.com> wrote:
> Search engines are hitting the login page and tripping a traceback.
> I'd like to apply this patch to our hotfix from yesterday in order to
> fix that. Issue reported here:
>
> https://fedorahosted.org/fedora-infrastructure/ticket/2638
>
> Can I get two +1's?
Looks good to me. +1
kevin
_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
02-22-2011, 07:33 PM
Ricky Zhou
Fix transifex disablement to not traceback w/ search engines
On 2011-02-22 09:13:55 AM, Toshio Kuratomi wrote:
> Search engines are hitting the login page and tripping a traceback. I'd
> like to apply this patch to our hotfix from yesterday in order to fix that.
> Issue reported here:
>
> https://fedorahosted.org/fedora-infrastructure/ticket/2638
>
> Can I get two +1's?
+1
Thanks,
Ricky
_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure