/srv/irclogs.ubuntu.com/2011/05/19/#ubuntu-website.txt

mhall119nigelb: cjohnston: http://www.youtube.com/watch?v=AqwJejqdQRk02:35
cjohnstonthat your stupid usb thing02:37
mhall119no, that's my awesome usb thing03:16
=== daker_ is now known as daker
=== daker_ is now known as daker
nigelbmhall119: Its *awesome*14:19
=== MTecknology is now known as EvilMTeck
cjohnston?15:24
nigelbcjohnston: the awesome usb thing ;)15:35
=== daker is now known as daker_
mhall119cjohnston: nigelb: https://code.launchpad.net/~mhall119/django-openid-auth/fixes-642132/+merge/54193 has landed in trunk!19:19
mhall119now we just have to wait for the package to be built, and then sweet-talk IS into installing it19:20
mhall119hopefully my other code, to give a friendlier explanation of why login fails, will land and be part of that build19:21
nigelb\o/19:22
mhall119I'll need to propose my LD changes and make similar ones to summit19:23
nigelbmhall119: do you remember which bit of changes caused the % failure?19:24
mhall119in summit?19:24
nigelbmhall119: I'd like to try and figure out where to start fixing render.py :\19:24
mhall119nigelb: start from orbit, with a nuke19:24
nigelbmhall119: hahah.  After getting 2 fixes into LP, render.py seems like a good starting point :p19:24
mhall119true19:26
mhall119nigelb: so the problem is that render.py builds up a string, using a combination of static strings and db values19:26
mhall119then it takes the whole combined string and runs it through the built-in string formatting19:26
mhall119which means that if you have a % in one of those db values, it's going to think it's a string formatting variable19:27
nigelbso we need more escaping?19:27
nigelbor is there a different solution to the problem19:27
nigelbI mean, we can rewrite render.py but how can we do things differently is my question19:28
mhall119so the easiest way is, whenever you are pulling in a value from the db, do a .replace('%', '%%')19:29
nigelbmhall119: ah.  But the way that render.py does things is not not wrong per se.19:30
mhall119on the db value before you append it to the string19:30
mhall119nigelb: everything about render.py is wrong19:30
nigelbmhall119: haha, that's why I asked how would I fix it if I were interested in rewriting it.19:32
mhall119if you're interested in rewriting it, use templates19:32
nigelb(I am interested in rewriting it from scratch if that would give it more love)19:32
nigelbmhall119: explain more?19:33
mhall119instead of manually building up the entire page with a series a string concatenations, just build up the data as context variables and pass it to a template19:33
nigelbmhall119: Are you free on Friday for a call to explain how to start?19:34
mhall119only after noon my time19:34
mhall119Michelle voluntold me to help out at the school in the morning19:35
nigelbaround this time?19:35
nigelb1400 UTC that is19:35
nigelbbahhh19:36
nigelb1400 your time19:36
nigelbmhall119: ^^19:36
mhall119I should be home then,  yes19:36
mhall119we can see if cjohnston is available to join in too19:37
mhall119geez, I really need to convert readfeeder over to postgres, mysql is sloooow19:38
mhall119(for writes anyway)19:38
nigelbawesome19:39
nigelbheh19:44
nigelbyeah19:44
nigelbpostgres is awesome.19:45
cjohnstonget me to do what21:22
nigelbcjohnston: call at 1400 tomorrow.21:31
nigelb1400 your time21:31
cjohnstonI should be able to21:31
cjohnstonwhats it for? render.py?21:31
cjohnstonskype or somethign else?21:33

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