/srv/irclogs.ubuntu.com/2012/03/20/#ubuntu-website.txt

AlanBellin summit how would I set a cookie to give to the browser?08:25
cjohnstonmhall119: ^^10:42
mhall119AlanBell: HttpResponse.set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=True)11:30
AlanBelloh great, so I can set that in the model code?11:31
cjohnstonAmoz: I figured out the footer thing12:28
mhall119AlanBell: no, you'llhave to do it in the view12:35
mhall119HttpResponse is what your view code returns12:35
mhall119so just call set_cookie on the return value before you return it12:35
AlanBellok, so in _show_meeting in views.py12:41
AlanBellI was a bit confused by the templates12:42
mhall119AlanBell: how so?12:53
AlanBellI was trying to figure out how to set a cooke in the meeting.html12:53
AlanBelland it wasn't tying up with the documentation about django I was reading12:54
mhall119AlanBell: you don't set cookies in the template12:58
mhall119you set them in the view code12:58
mhall119render_to_response return an instance of HttpResponse12:59
mhall119you'll need to put that in a variable, then call set_cookie on the variable, then return it12:59
mhall119AlanBell: what are you setting a cookie for anyway?12:59
cjohnstonmhall119: I assume logging into etherpad13:00
mhall119hey, are we going to switch to EP lite for UDS-Q?13:01
AlanBelletherpad lite13:01
mhall119yeah13:01
AlanBellthe summit server can talk to the pad server and create a pad, and create an author and create a session to link an author to a pad (or a group stricktly speaking I think)13:02
AlanBellthat creates a session and you have to give the session ID to the browser in a cookie13:02
AlanBellso you will log into summit and it will know who you are13:02
AlanBellif you don't log in you get a live read-only pad, but you can use the comments13:02
AlanBellif it is a private session it will probably create a group specificially for that session13:03
AlanBellthe pad server and summit server need to have the same domain *.ubuntu.com for the cookie to be shared I think13:03
=== johnoxton_ is now known as johnoxton
=== johnoxton__ is now known as johnoxton
cjohnstonAmoz: ping21:33

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!