Re: [Tutor] Design suggestion - is a cookie the answer?

2006-01-15 Thread Alan Gauld
> I'm sure this is implied in Alan's post, but I'm going to point it out ... > To avoid further cheating you might want to sure there is no way to > submit the form without javascript turned on. E.g. Don't have a submit > button and a form with an 'onSubmit' validation. Which some examples > do use

[Tutor] setuptools question

2006-01-15 Thread Shuying
Hi, I'm not sure where's the best place to ask so I thought I'd try it here. I've got python2.3 and python2.4 installed on my machine and I'm trying to upgrade setuptools for both versions of python. So I've got no problems upgrading setuptools for python2.3 but when I try to do the same for pyth

Re: [Tutor] Design suggestion - is a cookie the answer?

2006-01-15 Thread Adam Cripps
On 1/15/06, Simon Gerber <[EMAIL PROTECTED]> wrote: > > I'd recommend using client side JavaScript for this. > > Create a submit function in JavaScript that will only > > actually submit the form if all the questions have been > > completed. > > I'm sure this is implied in Alan's post, but I'm goin

[Tutor] Complete programming newbie requires tutorial. (Chris Andrew)

2006-01-15 Thread Ron Sheely
Two things. First, I've been watching this list for several weeks now. I wanted to respond to Chris Andrew's question regarding Python tutorials (Complete programming newbie requires tutorial. (Message-ID: <[EMAIL PROTECTED]>Chris Andrew). Did I reply correctly? Second, I've found four Python tut

Re: [Tutor] PAMIE but for linux

2006-01-15 Thread ZIYAD A. M. AL-BATLY
On Sun, 2006-01-15 at 00:44 -0200, Ismael Garrido wrote: > Hi > > Is there anything like PAMIE but for a linux browser? Even better if it > works in windows and linux. PAMIE lets you control Internet Explorer > programmatically. > > I've read about PyXPCOM (for mozilla) but I coudn't find any d

Re: [Tutor] "while" loop for satisfing two conditions , advice requested

2006-01-15 Thread Pujo Aji
in understanding while loop someone should understand "if conditional" first.In "If conditional" there are common relational symbol "and" and "or"Let's discuss  "and" conditional Condition 1 Condition 2  ResultTrue    True    TrueTrue    F

Re: [Tutor] Whois

2006-01-15 Thread Kent Johnson
Øyvind wrote: > Hello. > > I am trying to write a module that lets me check whois-info of ip-adresses: > > import socket > > class whois: > pass > > def ip(self, adresse): > self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > self.s.connect(('whois.ripe.net', 43

Re: [Tutor] "while" loop for satisfing two conditions ,

2006-01-15 Thread Kent Johnson
> From: John Joseph <[EMAIL PROTECTED]> >I am trying to use “while” loop , here I want > while loop to check for two conditions , I am not > getting an idea how to use “while” loop for checking > two conditions > I used "&" condition , but it is not > giving me the expect

Re: [Tutor] "while" loop for satisfing two conditions , advice requested

2006-01-15 Thread Carlo Capuano
Hi >while (condition no 1) & (condition no2): > print "Results" > While (condition no 1) and (condition no2): print "Results" in python you use the words and, or, not, is like: if myvar1 is not None and myvar2 == '1': print 'what a nice snowing day!' Carlo what

[Tutor] "while" loop for satisfing two conditions , advice requested

2006-01-15 Thread John Joseph
Hi I am trying to use “while” loop , here I want while loop to check for two conditions , I am not getting an idea how to use “while” loop for checking two conditions I used "&" condition , but it is not giving me the expected results I used in this way

[Tutor] Whois

2006-01-15 Thread Øyvind
Hello. I am trying to write a module that lets me check whois-info of ip-adresses: import socket class whois: pass def ip(self, adresse): self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.s.connect(('whois.ripe.net', 43)) #self.s.connect(('whois.nor

Re: [Tutor] Complete programming newbie requires tutorial.

2006-01-15 Thread Alan Gauld
> but am a complete newbie when it comes to programming. > I bought the O'Reilly "Learning Python" book, but have struggled Its really for existing programmers. Its a great book though so once you get over the initial hurdle go back and read it ahain. > note that resources on the python.org we