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

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] List processing question - consolidating duplicate entries

2007-11-27 Thread Michael Langford
What you want is a set of entries. Unfortunately, python lists are not "hashable" which means you have to convert them to something hashable before you can use the python set datatype. What you'd like to do is add each to a set while converting them to a tuple, then convert them back out of the se

Re: [Tutor] Python CMS advice wanted

2007-11-27 Thread jim stockford
I'd love to know scott's definition of "framework", especially contrasting with full-blown CMS. Frameworks for Python: CherryPy · Django · Karrigell · Nevow · Porcupine · Pylons · Spyce · TurboGears · TwistedWeb · Webware · Zope per http://en.wikipedia.org/wiki/Django_(web_framework)

Re: [Tutor] Python CMS advice wanted

2007-11-27 Thread Kent Johnson
Richard Querin wrote: > While we have less than 50 entries at the moment, adding each one is > still quite a hack. I've written a small wxpython app to take away > some of the pain of it, but it's still prone to corruption and still > too much work. Have you looked at Firedrop2? It makes it prett

Re: [Tutor] Python CMS advice wanted

2007-11-27 Thread Richard Querin
Whoa!. Lots of very good advice here. Thanks to all. 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. I'd love to learn something like Django but like it has been said, that's really a fram

Re: [Tutor] List processing question - consolidating duplicate entries

2007-11-27 Thread Kent Johnson
bob gailer wrote: > 2 - Sort the list. Create a new list with an entry for the first name, > project, workcode. Step thru the list. Each time the name, project, > workcode is the same, accumulate hours. When any of those change, create > a list entry for the next name, project, workcode and agai

Re: [Tutor] List processing question - consolidating duplicate entries

2007-11-27 Thread bob gailer
Richard Querin wrote: > I'm trying to process a list and I'm stuck. Hopefully someone can help > me out here: > > I've got a list that is formatted as follows: > [Name,job#,jobname,workcode,hours] > > An example might be: > > [Bob,07129,projectA,4001,5] > [Bob,07129,projectA,5001,2] > [Bob,07101,pr

Re: [Tutor] (no subject)

2007-11-27 Thread bob gailer
Latasha Marks wrote: > Design a program to keep track of the scores of bowlers as they bowl a > game. The program must prompt each bowler to bowl. The program begins > by allowing the bowlers to enter their names. Each frame is tracked > and properly displayed as the game progresses. I agree wit

Re: [Tutor] List processing question - consolidating duplicate entries

2007-11-27 Thread John Fouhy
On 28/11/2007, Richard Querin <[EMAIL PROTECTED]> wrote: > I've got a list that is formatted as follows: > [Name,job#,jobname,workcode,hours] [...] > Now I'd like to consolidate entries that are duplicates. Duplicates > meaning entries that share the same Name, job#, jobname and workcode. > So for

[Tutor] List processing question - consolidating duplicate entries

2007-11-27 Thread Richard Querin
I'm trying to process a list and I'm stuck. Hopefully someone can help me out here: I've got a list that is formatted as follows: [Name,job#,jobname,workcode,hours] An example might be: [Bob,07129,projectA,4001,5] [Bob,07129,projectA,5001,2] [Bob,07101,projectB,4001,1] [Bob,07140,projectC,3001,3

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 jim stockford
On Nov 27, 2007, at 9:40 AM, Scott SA wrote: > 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 appropr

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] Bowling program

2007-11-27 Thread Kent Johnson
Latasha Marks wrote: > Design a program to keep track of the scores of bowlers as they bowl a > game. The program must prompt each bowler to bowl. The program begins by > allowing the bowlers to enter their names. Each frame is tracked and > properly displayed as the game progresses.. This is o

Re: [Tutor] Python CMS advice wanted

2007-11-27 Thread Scott Sandeman-Allen
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

[Tutor] (no subject)

2007-11-27 Thread Latasha Marks
Design a program to keep track of the scores of bowlers as they bowl a game. The program must prompt each bowler to bowl. The program begins by allowing the bowlers to enter their names. Each frame is tracked and properly displayed as the game progresses.. Click Here for a see what the printed

Re: [Tutor] Python CMS advice wanted

2007-11-27 Thread Dave Kuhlman
On Tue, Nov 27, 2007 at 09:52:26AM -0500, Richard Querin wrote: > Hi, > > I've got a site that is currently a static site. While not unmanageable at > the moment (it's still pretty young), we've been entertaining thoughts of > converting it to a CMS system. I'm looking for some good suggestions ba

Re: [Tutor] Python CMS advice wanted

2007-11-27 Thread jim stockford
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. maintenance, especially by some one else, would be an area t

[Tutor] Python CMS advice wanted

2007-11-27 Thread Richard Querin
Hi, I've got a site that is currently a static site. While not unmanageable at the moment (it's still pretty young), we've been entertaining thoughts of converting it to a CMS system. I'm looking for some good suggestions based on some simple criteria: - Python based - I have a rudimentary knowle

Re: [Tutor] opening a javascript window and reading its source

2007-11-27 Thread Remco Gerlich
Hi, Python can't run Javascript functions. Note that "HTTPCookieProcessor" is a HTTP thing, so it can handle "http:" links, not "javascript:" links. Your best bet would probably be to download all the Javascript files mentioned in the original HTML file, and try to find out what the toggleBackpa

Re: [Tutor] Help with modulus.

2007-11-27 Thread Alan Gauld
"Luis N" <[EMAIL PROTECTED]> wrote > I'd like the below to be a single line if possible. Beware compression for the sake of it. However we can simplify a bit using divmod() > hours = metrics.totaltime/360 > minutes = (metrics.totaltime - 360*hours)/6 > seconds = (metrics.totaltime -

[Tutor] Help with modulus.

2007-11-27 Thread Luis N
I'd like the below to be a single line if possible. hours = metrics.totaltime/360 minutes = (metrics.totaltime - 360*hours)/6 seconds = (metrics.totaltime - 360*hours - 6*minutes)/1000 Would it be possible to simplify this with a generator expression e.g. total_time = tuple((

Re: [Tutor] detecting a change in a iterable object (list, array, etc.)

2007-11-27 Thread Tim Michelsen
Hello, > If you show us what you have done so far it would be easier to make > suggestions. The thing is that I am working a lot with time series data and need to write criteria based filters for that data. There's already a start in SciPy Time Series package: http://www.scipy.org/SciPyPackages/Tim