Expose lp authorization cookie via settings

Bug #1101346 reported by Matthew Wedgwood
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Summit
Fix Released
Undecided
José Antonio Rey

Bug Description

The Launchpad authorization cookie should be exposed via settings so it can be included in local_settings.py.

Something like:
=== modified file 'summit/schedule/models/summitmodel.py'
--- summit/schedule/models/summitmodel.py 2012-10-27 14:59:34 +0000
+++ summit/schedule/models/summitmodel.py 2013-01-18 19:13:51 +0000
@@ -251,7 +251,7 @@
         while trycounter <= retrytotal:
             req = urllib2.Request(url)
             req.add_header("Cache-Control", "no-cache")
- req.add_header("Cookie", "please-don't-cache-me")
+ req.add_header("Cookie", "lp=%s" & getattr(settings, "LP_AUTH_COOKIE", "please-dont'-cache-me"))
             try:
                  export = urllib2.urlopen(req)
             except urllib2.HTTPError, e:

Related branches

José Antonio Rey (jose)
Changed in summit:
status: New → Confirmed
status: Confirmed → New
José Antonio Rey (jose)
Changed in summit:
assignee: nobody → José Antonio Rey (joseeantonior)
status: New → In Progress
José Antonio Rey (jose)
Changed in summit:
status: In Progress → Fix Committed
José Antonio Rey (jose)
Changed in summit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.