FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Infrastructure

 
 
LinkBack Thread Tools
 
Old 02-22-2011, 04:13 PM
Toshio Kuratomi
 
Default 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:

https://fedorahosted.org/fedora-infrastructure/ticket/2638

Can I get two +1's?

-Toshio
From 26a5cc3de7b397dfd00903ea2659b73b966f15c8 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Toshio=20=E3=81=8F=E3=82=89=E3=81=A8=E3=81=BF? = <toshio@puppet01.phx2.fedoraproject.org>
Date: Tue, 22 Feb 2011 17:09:49 +0000
Subject: [PATCH] Fix search engines hitting the login page and causing a traceback

---
.../hotfix/files/transifex/tx-simpleauth-views.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)

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
 
Old 02-22-2011, 04:22 PM
Kevin Fenzi
 
Default 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
 
Old 02-22-2011, 07:33 PM
Ricky Zhou
 
Default 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
 

Thread Tools




All times are GMT. The time now is 02:06 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org