Re: [Tutor] web programming tutorials?

2008-04-18 Thread Terry Carroll
On Fri, 18 Apr 2008, Che M wrote: > Thank you, everyone, for all the responses! I will wade through them > and try to get some understanding and then will no doubt come back with > some questions in some days. Much appreciated. -Che Che, I've done several superficial web programs over the years

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Chris Calloway
On 4/18/2008 4:00 PM, Monika Jisswel wrote: > Ok but I still need more votes for zope to be convinced, Well, arguing about what is the best python web framework is kind of fruitless. Everybody has an opinion. But no one is qualified to pronounce a comparison on all of them. The "votes" you would

Re: [Tutor] Reading Multiple Files in Sequence

2008-04-18 Thread Hansen, Mike
> [mailto:[EMAIL PROTECTED] On Behalf Of Kelvin Gorospe > > Sorry, I need to stop doing this... Attached is the script > that I forgot to attach in my last email to the list. Thanks again, K > > > On Fri, Apr 18, 2008 at 11:22 AM, Kelvin Gorospe > <[EMAIL PROTECTED]> wrote: > > > H

Re: [Tutor] Reading Multiple Files in Sequence

2008-04-18 Thread linuxian iandsd
if you only want to start a loop to parse all files in a directory try something like this: import glob > > n=0 > for file in > glob.glob('/Users/Kelvin/TEMPDATASET/CLEANEDFIELDDATA/WEST/*'): > n=n+1 > new_output_file='/Users/Kelvin/TEMPDATASET/PCA/'+ str(n) + '.txt' > output = open(new_output_

Re: [Tutor] Reading Multiple Files in Sequence

2008-04-18 Thread Kelvin Gorospe
Sorry, I need to stop doing this... Attached is the script that I forgot to attach in my last email to the list. Thanks again, K On Fri, Apr 18, 2008 at 11:22 AM, Kelvin Gorospe <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm new to Python AND programming and would appreciate any help anybody

[Tutor] Reading Multiple Files in Sequence

2008-04-18 Thread Kelvin Gorospe
Hi everyone, I'm new to Python AND programming and would appreciate any help anybody has to offer. I have several .csv files that contains temperature data taken at several different locations. Each line in the csv file is a list such as this: timestamp at location 1, temperature at location 1, t

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Che M
Thank you, everyone, for all the responses! I will wade through them and try to get some understanding and then will no doubt come back with some questions in some days. Much appreciated. -Che _ More immediate than e-mail? Get i

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Monika Jisswel
> > and has a huge community, it is a very advanced framework. > Ok but I still need more votes for zope to be convinced, Just in case Zope won the majority of the voices ... How much time would it take one to learn & become productive in zope ? ___ Tuto

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Jan Ulrich Hasecke
Am 18.04.2008 um 21:37 schrieb Monika Jisswel: Hi, reading theses emails i have a question : ikaaro or zope - what's best ? which one is the most used ? Zope is in production since 1996 and has a huge community, it is a very advanced framework. One of the best CMS is built on top of Z

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Monika Jisswel
Hi, reading theses emails i have a question : ikaaro or zope - what's best ? which one is the most used ? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Chris Calloway
On 4/18/2008 11:01 AM, Hansen, Mike wrote: > I'm curious about > other tutor list member's thoughts on this. Am I out to lunch on this > viewpoint? +1 (In favor of your viewpoint, that is. Not in favor of you being out to lunch on this. :) In the Zope community I see evidence all the time from

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Jan Ulrich Hasecke
Hi Che, try out Grok. Grok is a convention-over-configuration-framework for Zope and an excellent start into this framework. You'll find a really cool tutorial of Grok here: http://grok.zope.org/documentation/book/ juh ___ Tutor maillist - Tutor@pyth

Re: [Tutor] When to use __new__ vs. __init__ ?

2008-04-18 Thread Jerry Hill
On Fri, Apr 18, 2008 at 12:08 PM, <[EMAIL PROTECTED]> wrote: > Any guidelines on when to use __new__ vs. __init__ when sub-classing? Use __new__ when you need to control the creation of a new instance. Use __init__ when you need to control initialization of a new instance. __new__ is the first s

Re: [Tutor] When to use __new__ vs. __init__ ?

2008-04-18 Thread python
Thanks Kent! Malcolm ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] When to use __new__ vs. __init__ ?

2008-04-18 Thread Kent Johnson
On Fri, Apr 18, 2008 at 12:08 PM, <[EMAIL PROTECTED]> wrote: > Any guidelines on when to use __new__ vs. __init__ when sub-classing? > Generally use __init__(). The only use-case for __new__() that I can think of is when you subclass immutable classes like str or int you generally have to use __n

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Eric Abrahamsen
On Apr 18, 2008, at 8:01 AM, Hansen, Mike wrote: > IMHO, I think before anyone jumps into using a framework, they should > understand the basics of cgi programming. Maybe do just a small > exercise with simple form processing. After that exercise, then move > on to one of the frameworks that make

[Tutor] When to use __new__ vs. __init__ ?

2008-04-18 Thread python
Any guidelines on when to use __new__ vs. __init__ when sub-classing? Thanks! Malcolm ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Fwd: urllib2.urlopen(url)

2008-04-18 Thread Kent Johnson
On Fri, Apr 18, 2008 at 8:19 AM, Monika Jisswel <[EMAIL PROTECTED]> wrote: > Hi, > > can i stop urllib2.urlopen() from following redirects automatically ? There doesn't seem to be an easy way to do this. Probably the simplest way is to create a subclass of HTTPRedirectHandler that does nothin

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Chris Calloway
On 4/18/2008 8:20 AM, bob gailer wrote: > Norman Khine wrote: >> Here are the docs, http://download.ikaaro.org/doc/itools/index.html >> >> > Having never heard of itools I decided to take a look at the itools.web > examples. I was OK with 13.1 Hello world. Then I hit 13.2 Traversal. The > text

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Hansen, Mike
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Che M > Sent: Thursday, April 17, 2008 9:21 PM > To: tutor@python.org > Subject: [Tutor] web programming tutorials? > > [I thought I sent a similar msg to this list 2 days ago, but > now I'm not sure

Re: [Tutor] Tutor Digest, Vol 50, Issue 56

2008-04-18 Thread Dick Moores
At 01:35 AM 4/18/2008, kinuthia muchane wrote: > > > > -- > > > > Message: 3 > > Date: Thu, 17 Apr 2008 10:58:00 -0700 > > From: Dick Moores <[EMAIL PROTECTED]> > > Subject: Re: [Tutor] python assignments > > To: Python Tutor List > > Message-ID: <[EMAIL PROTECTED]> >

[Tutor] urllib2.urlopen(url)

2008-04-18 Thread Monika Jisswel
Hi, can i stop urllib2.urlopen() from following redirects automatically ? one more question i had in mind, the function urllib2.urlopen.geturl() does get me what i want but does it do the download of the page i was redirected to ? or just downloads the initial page that actually does the redir

Re: [Tutor] datetime module problem

2008-04-18 Thread Dick Moores
At 02:17 AM 4/18/2008, Sander Sweers wrote: >On Fri, Apr 18, 2008 at 4:49 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > > Got it, I think. > >Here is a my somewhat simplified version of your daysDelta script. It >uses less variables but I am not sure if it

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Kent Johnson
On Thu, Apr 17, 2008 at 11:20 PM, Che M <[EMAIL PROTECTED]> wrote: > Can someone point me to a start-from-dead-scratch tutorial about the > basics of web programming? > You might be interested in the book "Foundations of Python Network Programming". http://www.complete.org/publications/pynet/ It

Re: [Tutor] web programming tutorials?

2008-04-18 Thread bob gailer
Norman Khine wrote: > Hi Che, > I started with python web programming using Zope, but this was because I > needed a quick CMS application for a small project I did and Zope's CMF > fitted the bill nicely. > > Now I use itools (http://ikaaro.org/itools) it is relatively easy to > setup and is 99%

Re: [Tutor] datetime module problem

2008-04-18 Thread Sander Sweers
On Fri, Apr 18, 2008 at 4:49 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > Got it, I think. Here is a my somewhat simplified version of your daysDelta script. It uses less variables but I am not sure if it is faster? http://py77.python.pastebin.com/m14e40

Re: [Tutor] Tutor Digest, Vol 50, Issue 56

2008-04-18 Thread kinuthia muchane
> > -- > > Message: 3 > Date: Thu, 17 Apr 2008 10:58:00 -0700 > From: Dick Moores <[EMAIL PROTECTED]> > Subject: Re: [Tutor] python assignments > To: Python Tutor List > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="us-ascii"; format=flowed >

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Norman Khine
yes i have to admit documentation is not all there, but there is a chapter for the web, http://download.ikaaro.org/doc/itools/chapter--web.html which gives basic understandings of how it works. Alan Gauld wrote: > "Norman Khine" <[EMAIL PROTECTED]> wrote > >> Now I use itools (http://ikaaro.org

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Oleg Oltar
Introduction into CGI in Russian http://www.intuit.ru/department/internet/cgi/ Please give alternative link on English variant On Fri, Apr 18, 2008 at 10:53 AM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "Che M" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > I was kind of hop

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Alan Gauld
"Norman Khine" <[EMAIL PROTECTED]> wrote > Now I use itools (http://ikaaro.org/itools) it is relatively easy to > setup and is 99% python (the parser is now in C) the latest version > has > two packages, the core itools is a python library and ikaaro is the > CMS. I had a look at this since I

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Alan Gauld
"Che M" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I was kind of hoping Alan Gauld's project would be updated > for the tempting but not yet existent section on web programming. I have been working on two web programming topics (one client side, one server side) for over a ye

Re: [Tutor] web programming tutorials?

2008-04-18 Thread Oleg Oltar
Hi Che! Use django, don't use Zope and everything will be fine. Django is a new very powerful web framework. Many cool web applications was created using django! e.g. you can take a look on our project: www.mydeco.com Use django and let the Power be with you :) Thanks, Oleg On Fri, Apr 18, 2008