[01:39] cjwatson: There is also that 'fades' thing Facundo put together that builds the virtualenv on demand [04:55] hi wgrant, are you around? [04:56] rpadovani: I am. [04:56] Er [04:56] replaceafill: ^^ [04:56] :D [04:56] may i take a few minutes of your time with a lazr.restful + lazr.batchnavigation question? :) [04:57] i'm not sure if this is the right place to ask [04:57] but i've seen lazr discussed here i think... [05:00] it was built for lp [05:00] so seems fine to me [05:01] lifeless, thanks :) [05:01] i'm using it with a SchoolTool experiment [05:02] and i have a lazr.restful implementation running through paste [05:02] i just noticed one thing in the URLs generated in my queries [05:03] specifically the next_collection_link and prev_collection_link [05:03] they return URLs like: "next_collection_link": "http://localhost:7080/1.0/persons/... [05:04] when i get resource_type_link's and self_link's like: [05:04] "self_link": "http://localhost:7080/api/1.0/persons/student051" [05:04] which are correct, notice the /api/ part [05:05] that's from my paste configuration [05:05] * replaceafill is not sure he's clear enough explaining this... :( [05:06] anyway i tracked the url generation in both cases and noticed that lazr.restful generates the urls using absolutURL calls,which seems fine [05:06] but lazr.batchnavigator doesn't [05:06] sounds like a bug somewhere ;) [05:06] I don't recall the nuance of that code - its been ~4 years since I hacked on it [05:06] lifeless, i could be it's here: http://bazaar.launchpad.net/~lazr-developers/lazr.batchnavigator/trunk/view/head:/src/lazr/batchnavigator/_batchnavigator.py#L272 [05:06] wgrant: may have more recent memories [05:06] :) [05:08] i guess i just wanted to confirm it's a bug and i should just not trust those batch links [05:08] it may be that batchnavigation thinks its returning html urls not api urls [05:11] i wonder if batchnavigation could use this same approach used in lazr.restful: http://bazaar.launchpad.net/~lazr-developers/lazr.restful/trunk/view/head:/src/lazr/restful/_resource.py#L2070 [05:53] Whoops, sorry, got called away. [05:54] replaceafill: Hmm, so batchnavigator is meant to use the same request as lazr.restful. [05:54] replaceafill: But it's possible you have to instantiate it directly with the right request, let me see. [05:56] Hmm. [05:58] replaceafill: Have you worked out what the difference between the URL generation calls is between lazr.restful itself and lazr.batchnavigator? [05:58] I can't see why batchnav would be getting the wrong request. [05:59] Unless you have a property that directly returns one? [06:00] replaceafill: So the only way I can see that happening is if your code creates a BatchNavigator directly. [06:00] If you simply declare an attribute as a collection and let lazr.restful batch it for you, it should Just Work. [10:43] https://code.launchpad.net/~cjwatson/turnip/virtualenv/+merge/274701 should be less flaky now === BradCrittenden is now known as Guest53960