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 03-12-2009, 11:06 PM
Toshio Kuratomi
 
Default Change request -- Django Provider update 2

Okay, the last auth update fixed redirects but broke logging into django
apps. I'd like to install a new python-fedora with a one-line change
for that.

=== modified file 'fedora/django/auth/middleware.py'
--- fedora/django/auth/middleware.py 2009-03-12 14:02:58 +0000
+++ fedora/django/auth/middleware.py 2009-03-12 22:34:37 +0000
@@ -39,7 +39,7 @@
logout(request)

def process_response(self, request, response):
- if type(response) == HttpResponse:
+ if response.status_code != 301:
if isinstance(request.user, AnonymousUser):
# response.set_cookie(key='tg-visit', value=', max_age=0)
if 'tg-visit' in request.session:


-Toshio

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 
Old 03-12-2009, 11:13 PM
Mike McGrath
 
Default Change request -- Django Provider update 2

On Thu, 12 Mar 2009, Toshio Kuratomi wrote:

> Okay, the last auth update fixed redirects but broke logging into django
> apps. I'd like to install a new python-fedora with a one-line change
> for that.
>
> === modified file 'fedora/django/auth/middleware.py'
> --- fedora/django/auth/middleware.py 2009-03-12 14:02:58 +0000
> +++ fedora/django/auth/middleware.py 2009-03-12 22:34:37 +0000
> @@ -39,7 +39,7 @@
> logout(request)
>
> def process_response(self, request, response):
> - if type(response) == HttpResponse:
> + if response.status_code != 301:
> if isinstance(request.user, AnonymousUser):
> # response.set_cookie(key='tg-visit', value=', max_age=0)
> if 'tg-visit' in request.session:
>
>

+1
-Mike

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 
Old 03-12-2009, 11:25 PM
Ricky Zhou
 
Default Change request -- Django Provider update 2

On 2009-03-12 05:06:45 PM, Toshio Kuratomi wrote:
> Okay, the last auth update fixed redirects but broke logging into django
> apps. I'd like to install a new python-fedora with a one-line change
> for that.
>
> === modified file 'fedora/django/auth/middleware.py'
> --- fedora/django/auth/middleware.py 2009-03-12 14:02:58 +0000
> +++ fedora/django/auth/middleware.py 2009-03-12 22:34:37 +0000
> @@ -39,7 +39,7 @@
> logout(request)
>
> def process_response(self, request, response):
> - if type(response) == HttpResponse:
> + if response.status_code != 301:
> if isinstance(request.user, AnonymousUser):
> # response.set_cookie(key='tg-visit', value=', max_age=0)
> if 'tg-visit' in request.session:
+1

Thanks,
Ricky
_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 

Thread Tools




All times are GMT. The time now is 07:04 AM.

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