[Tutor] Python logging

2009-04-18 Thread Scott SA
Hi, For some reason, I'm having a bit of trouble figuring this one out. I know it has to be relatively easy but it just isn't "working" for me at the moment. I want to re-direct the logs from python's logging library and while using a config file rather than instantiating all of the loggi

Re: [Tutor] Webpy vs Django

2009-04-19 Thread Scott SA
On Apr 19, 2009, at 4:52 AM, vishwajeet singh wrote: This is not to flame any war; I just wanted to know the key features to consider among the two web frame works. What advantage and disadvantages you have when you decide using any one of them. I can't speak with any authority on Webpy (

Re: [Tutor] Python logging

2009-04-19 Thread Scott SA
Hi Stephan & Kent, On Apr 19, 2009, at 6:12 AM, Stefan Behnel wrote: just commenting on this part: ... which basically says append WARNING messages to the rotating file handler in DatetimeLevelMessage format to a log-file named test_warn.log splitting the log-file when it exceeds 125829120

Re: [Tutor] Reading from files problem

2009-04-20 Thread Scott SA
On Apr 20, 2009, at 12:59 AM, Alan Gauld wrote: You might want to store the data in a dictionary keyed by ID number? I had thought of suggesting this, but it appeared that the OP was going to re-iterate the file each time he wished to query the CSV. May have been a bad assumption on my par

Re: [Tutor] visualizing code structure / flow charting

2007-11-06 Thread Scott SA
On 11/6/07, Wesley Brooks ([EMAIL PROTECTED]) wrote: >Taking both one step further if you can extract all the __doc__ >strings for all the objects listed from the dir of an object: > >a = 'a random string' >for i in dir(a): >command = "print str." + i + ".__doc__" >exec(command) > >This wi

Re: [Tutor] Obtaining image date of creation

2007-11-14 Thread Scott SA
On 11/14/07, Roy Chen ([EMAIL PROTECTED]) wrote: >I would like to write a simple script that would rename a bunch of >photos according to their creation date, i.e. the date which the >photo was taken. > >Is there a way to use Python to obtain that information from the >image file, or is that

Re: [Tutor] repeat

2007-11-17 Thread Scott SA
On 11/17/07, Michael ([EMAIL PROTECTED]) wrote: >This has probably been asked before but can I get some clarification on >why Python does not have a repeat...until statement, and does that mean >repeat...until is bad practice? I was trying to get Python on the >standard langauge list for my sta

Re: [Tutor] Python CMS advice wanted

2007-11-27 Thread Scott SA
On 11/27/07, jim stockford ([EMAIL PROTECTED]) wrote: >IMO: >my experience with cms systems is that there's a big >learning curve. you might have more fun (and be more >productive and maybe more creative) if you use the >available appropriate python modules and cobble >together your own site. Woa

Re: [Tutor] Python CMS advice wanted

2007-11-27 Thread Scott SA
First-off, I have to appologize to the list for an accidental re-send of my original post. I didn't want to spam the list with an 'oops' message, but it seems appropriate now. If the other version gets caught by a moderator, it can be deleted - thanks! On 11/27/07, jim stockford ([EMAIL PROTECT

Re: [Tutor] Python CMS advice wanted

2007-11-27 Thread Scott SA
On 11/27/07, Richard Querin ([EMAIL PROTECTED]) wrote: >After reading it all I'm wondering if maybe a templating system like >Cheetah might be the way to go for us. I'll have to do a lot more >reading and exploring. Sure. Be wary of any system that allows the template to freely call python i.e.

Re: [Tutor] Python CMS advice wanted

2007-11-27 Thread Scott SA
On 11/27/07, jim stockford ([EMAIL PROTECTED]) wrote: >I'd love to know scott's definition of "framework", especially >contrasting with full-blown CMS. Yes, when one compares something like Quixote to Zope, there is a _lot_ of middle-ground. They are all frameorks, just with incrementally lar

[Tutor] Python Best Practice/Style Guide question

2008-04-29 Thread Scott SA
Per the interesting read at Can anyone explain the rationale behind this: - More than one space around an assignment (or other) operator to align it with another. Yes: x = 1 y = 2 long_variable = 3