/srv/irclogs.ubuntu.com/2010/09/04/#launchpad-reviews.txt

=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== lifeless changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [https://code.edge.launchpad.net/~lifeless/launchpad/oops/+merge/34600] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews || gmb is RM; for RC reviews please add him as a reviewer
mwhudsonlifeless: did you think about07:20
mwhudson278+ request = get_current_browser_request()07:20
mwhudson279+ timeline = get_request_timeline(request)07:20
mwhudsona helper for that ^ ?07:20
lifelessyes07:20
lifelessI felt it coupled things a little to much07:20
lifelessreally we want the IAnnotations context thing07:20
mwhudsonah yeah07:21
lifelessthis is at least clear that the context is 'a request' (for now)07:21
lifelessand if you have one, just passing it in and using it is ok07:21
mwhudsonyeah, fair enough07:21
mwhudsonanother general comment: make actions context managers?07:21
lifelessdefinitely not07:22
lifelessyou could make timeline a context manager07:22
lifelessand timedaction a context07:22
lifeless(__enter__ on timeline, returns a new TimedAction, __exit__ on TimedAction)07:22
lifelessthe definitely not is because07:23
lifelesswith action:07:23
lifeless ...07:23
lifelesswith action:07:23
lifeless ...07:23
lifelesswould not have any hope of DTRT cleanly07:23
lifelesswith timeline as action:07:23
lifeless ...07:23
lifelesswould07:23
lifelessor07:23
mwhudsonyeah, i guess that would be better07:23
lifelesswith timeline.start('foo', 'bar'):07:23
lifeless ...07:23
lifelessis probably what would work well.07:24
lifelesswe can revisit and do this, I think its a reasonable train of thought07:24
lifelessbut - for SQL, due to the way tracers are done, certainly not complete.07:24
lifelessand the first cut of this was to replace request_statements07:24
mwhudsonlifeless: branch reviewed07:26
lifelessthank you07:26
mwhudsonlifeless: it's clear you've thought about this much more than me, so i'm happy :-)07:26
mwhudsonheh, stupid braino in the review comment07:27
mwhudsonoh well07:27
mwhudsons/database/librarian/07:27
lifelessdatabase almost matter07:28
lifelessI've answer there for posterity07:28
lifelesslogin() should really be 'start_request()'07:30
lifelessgiven what it does07:30
lifelessor something07:30
=== lifeless changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews || gmb is RM; for RC reviews please add him as a reviewer
mwhudsonset_participation() would be more confusing but would encourage understanding of what it does07:33
lifelesstrue07:34
mwhudsonpersonally, i prefer calling it a participation in general and a request in the appserver, but this idea may not have caught on yet07:34

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