Re: modification time in Python - Django: datetime != datetime :-(

2014-03-04 Thread donarb
Note that it's bad form to post the same question to different forums, you also posted this question to django-users. By posting to multiple forums, you run the risk of not having the question answered or followed up in one of the forums. This frustrates other users who may one day have a

Re: modification time in Python - Django: datetime != datetime :-(

2014-03-03 Thread donarb
On Monday, March 3, 2014 6:28:21 AM UTC-8, Jaap van Wingerde wrote: Op Tue, 4 Mar 2014 01:08:52 +1100 schreef Chris Angelico ros...@gmail.com in bericht captjjmrp9ca5zyfo75nkcx_ik0qi4kocjhhy6eewkq-xjx7...@mail.gmail.com: See if ls is actually giving you ctime rather than mtime - compare

Re: Output JSON-schema from bottle application?

2014-02-28 Thread donarb
On Thursday, February 27, 2014 7:49:07 PM UTC-8, Alec Taylor wrote: Are there libraries for doing this? I would like to autogenerate JSON-schema for use inside an API explorer. However whenever there is a schema change; I would only like to change the schema in one place (where possible).

Re: OT: How to tell an HTTP client to limit parallel connections?

2013-11-08 Thread donarb
On Friday, November 8, 2013 9:25:30 AM UTC-8, Grant Edwards wrote: Yes, this off-topic, but after a fair amount of Googling and searching in the right places, I'm running out of ideas. I've got a very feeble web server. The crypto handshaking involved in opening an https: connection takes

Re: How to parse JSON passed on the command line?

2013-11-07 Thread donarb
On Wednesday, November 6, 2013 10:09:49 PM UTC-8, yupeng zhang wrote: Hi Anthony Papillion. I'm fresh to Python, but I do love its short simple and graceful. I've solved your problem. You could try the code below: getargfromcli.py \{'url':'http://www.google.com'}\ AS command line will

Re: Thorough Python 2.7.3 Windows Build Documentation?

2013-01-17 Thread donarb
On Jan 17, 7:29 am, Leonard, Arah arah.leon...@bruker-axs.com wrote: Hello fellow Python programmers, I'm building a 32-bit CPython 2.7.3 distro for Windows using the MS Visual Studio Professional 2008 SP1 (and all hotfixes) MSVC 9 compiler.  My build works, technically, but it also happens

PyWart: Exception error paths far too verbose

2013-01-16 Thread donarb
Done https://github.com/erikrose/tracefront This module displays traces with shortened paths, and will even prepend your editor of choice and line number to the path, making a shortcut to jumping to the source in error via copy/paste. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a more elegant way to handle determing fail status?

2013-01-15 Thread donarb
On Tuesday, January 15, 2013 3:24:44 PM UTC-8, J wrote: Ok, so I have a diagnostic tool, written by someone else. That tool runs a series of small tests defined by the user and can simplified summary output that can be one of the following: FAILED_CRITICAL FAILED_HIGH

Re: Evaluate postgres boolean field

2013-01-04 Thread donarb
On Friday, January 4, 2013 10:08:22 AM UTC-8, andyd...@gmail.com wrote: Hi, I'm hoping for some help on a python script I need to query an api. I'm not a (Python) programmer ordinarily, but do plan to improve! Specifically I have a for loop evaluating a database row, which I think I can

Re: Scrapy/XPath help

2012-12-25 Thread donarb
On Friday, December 21, 2012 1:58:47 PM UTC-8, Always Learning wrote: The errors I get are File C:\python27\lib\site-packages\scrapy-0.16.3-py2.7.egg\scrapy\selector\lxmlsel.py, line 47, in select raise ValueError(Invalid XPath: %s % xpath) exceptions.ValueError: Invalid XPath: