/srv/irclogs.ubuntu.com/2015/10/19/#launchpad-dev.txt

stubcjwatson: There is also that 'fades' thing  Facundo put together that builds the virtualenv on demand01:39
replaceafillhi wgrant, are you around?04:55
wgrantrpadovani: I am.04:56
wgrantEr04:56
wgrantreplaceafill: ^^04:56
replaceafill:D04:56
replaceafillmay i take a few minutes of your time with a lazr.restful + lazr.batchnavigation question? :)04:56
replaceafilli'm not sure if this is the right place to ask04:57
replaceafillbut i've seen lazr discussed here i think...04:57
lifelessit was built for lp05:00
lifelessso seems fine to me05:00
replaceafilllifeless, thanks :)05:01
replaceafilli'm using it with a SchoolTool experiment05:01
replaceafilland i have a lazr.restful implementation running through paste05:02
replaceafilli just noticed one thing in the URLs generated in my queries05:02
replaceafillspecifically the next_collection_link and prev_collection_link05:03
replaceafillthey return URLs like: "next_collection_link": "http://localhost:7080/1.0/persons/...05:03
replaceafillwhen i get resource_type_link's and self_link's like:05:04
replaceafill"self_link": "http://localhost:7080/api/1.0/persons/student051"05:04
replaceafillwhich are correct, notice the /api/ part05:04
replaceafillthat's from my paste configuration05:05
* replaceafill is not sure he's clear enough explaining this... :(05:05
replaceafillanyway i tracked the url generation in both cases and noticed that lazr.restful generates the urls using absolutURL calls,which seems fine05:06
replaceafillbut lazr.batchnavigator doesn't05:06
lifelesssounds like a bug somewhere ;)05:06
lifelessI don't recall the nuance of that code - its been ~4 years since I hacked on it05:06
replaceafilllifeless, i could be it's here: http://bazaar.launchpad.net/~lazr-developers/lazr.batchnavigator/trunk/view/head:/src/lazr/batchnavigator/_batchnavigator.py#L27205:06
lifelesswgrant: may have more recent memories05:06
replaceafill:)05:06
replaceafilli guess i just wanted to confirm it's a bug and i should just not trust those batch links05:08
lifelessit may be that batchnavigation thinks its returning html urls not api urls05:08
replaceafilli 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#L207005:11
wgrantWhoops, sorry, got called away.05:53
wgrantreplaceafill: Hmm, so batchnavigator is meant to use the same request as lazr.restful.05:54
wgrantreplaceafill: But it's possible you have to instantiate it directly with the right request, let me see.05:54
wgrantHmm.05:56
wgrantreplaceafill: Have you worked out what the difference between the URL generation calls is between lazr.restful itself and lazr.batchnavigator?05:58
wgrantI can't see why batchnav would be getting the wrong request.05:58
wgrantUnless you have a property that directly returns one?05:59
wgrantreplaceafill: So the only way I can see that happening is if your code creates a BatchNavigator directly.06:00
wgrantIf you simply declare an attribute as a collection and let lazr.restful batch it for you, it should Just Work.06:00
cjwatsonhttps://code.launchpad.net/~cjwatson/turnip/virtualenv/+merge/274701 should be less flaky now10:43
=== BradCrittenden is now known as Guest53960

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