2014-11-13 15:22 GMT-04:30 Robert Coup <robert.c...@koordinates.com>: > On Fri, Nov 14, 2014 at 8:24 AM, Jesús Gómez <jgo...@gmail.com> wrote: >> >> >> I started to write a proposal[1] for the python section of REST >> examples[2]. Almost textually based on the cURL examples[3]. I aim to >> do all the examples. >> >> I could change the idea and do a more creative work with another >> examples, but first i would like to know if it is of your liking. > > > Yay! This is a great idea > > Only comments are that I'd strongly suggest using requests in all the > examples and just say "you can use the builtin http/urllib modules to > achieve the same thing if for some reason you can't use requests". It is so > much nicer, especially around error handling, auth, data encoding, ... > > Personally I'd also suggest using JSON rather than XML, and if you still > want to use XML then construct/parse it using a proper library that escapes > values correctly, rather than using string substitutions. > > My 2c, feel free to ignore though >
Thank you for your feedback. Maybe the gain on legibility is worth the "effort" of installing "requests". Ok, i'll do it with requests, maybe JSON and evaluate the gsconfig.py > Rob :) > -- > Koordinates > PO Box 1604, Shortland St, Auckland 1140, New Zealand > Phone +64-9-966 0433 koordinates.com ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk _______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel