Re: [Tutor] Tutorial for creating web server

2006-03-03 Thread Kent Johnson
Rakesh Mishra wrote: > hi > > i wanted to create my own web server, can any body suggest any tutorial, > by the way i have gone through book Core Python Programing, in this book > one example is given but it is to abstract, that i am unable to understand . Can you be more specific? Creating a web

[Tutor] windows help system

2006-03-03 Thread Kermit Rose
>> You can do this by setting an environment variable named PYTHONSTARTUP to >> name of a file containing your start-up commands > > How do I set environmental variables in Windows? If it's Windows 9x/Me use AUTOEXEC.BAT. SET PTYTHONSTARTUP C:\mypath\myfile.py If its Windows NT/2000/XP righ

[Tutor] odbchelper

2006-03-03 Thread Kermit Rose
When I tried to run a program show at the beginning of "Dive into Python", I got. Traceback (most recent call last): File "", line 1, in -toplevel- import odbchelper ImportError: No module named odbchelper >>> ___ Tutor maillist - Tuto

Re: [Tutor] password protection in httplib

2006-03-03 Thread Andre Engels
2006/3/2, Kent Johnson <[EMAIL PROTECTED]>: > Andre Engels wrote: > > Thanks for your help; it brought me quite a bit farther, but not as > > far as I wanted to come. The authentication is basic authentication, > > and I have been able to adapt the programs so that I now get my pages > > correctly.

Re: [Tutor] odbchelper

2006-03-03 Thread Ewald Ertl
Hi! How have you started the script? As far as I could see, in the Chapter 1 of "Dive into Python", the odbchelper.py is just a script-File and not a module to be imported, therefore the Exception with the "ImportError". I do not have a Windows box here to check if the problem is with the PythonI

Re: [Tutor] odbchelper

2006-03-03 Thread Kent Johnson
Kermit Rose wrote: > When I tried to run a program show at the beginning of "Dive into Python", > > I got. > > > Traceback (most recent call last): > File "", line 1, in -toplevel- > import odbchelper > ImportError: No module named odbchelper odbchelper is the module defined in Example 2

Re: [Tutor] password protection in httplib

2006-03-03 Thread Kent Johnson
Andre Engels wrote: > 2006/3/2, Kent Johnson <[EMAIL PROTECTED]>: > >>Andre Engels wrote: >> >>>Thanks for your help; it brought me quite a bit farther, but not as >>>far as I wanted to come. The authentication is basic authentication, >>>and I have been able to adapt the programs so that I now ge

Re: [Tutor] odbchelper

2006-03-03 Thread Kent Johnson
Ewald Ertl wrote: > Hi! > > How have you started the script? As far as I could see, in the Chapter 1 of > "Dive into Python", the odbchelper.py is just a script-File and not a module > to be imported, therefore the Exception with the "ImportError". It is both, if by "just a script-File" you mean

Re: [Tutor] password protection in httplib

2006-03-03 Thread Andre Engels
2006/3/3, Kent Johnson <[EMAIL PROTECTED]>: > Have you tried using a CookieManager as shown in the first example here: > http://docs.python.org/lib/cookielib-examples.html > > Once you set up your opener with a CookieJar the cookies should be > handled automatically - if a server sets a cookie it

Re: [Tutor] password protection in httplib

2006-03-03 Thread Kent Johnson
Andre Engels wrote: > 2006/3/3, Kent Johnson <[EMAIL PROTECTED]>: > > >>Have you tried using a CookieManager as shown in the first example here: >>http://docs.python.org/lib/cookielib-examples.html >> >>Once you set up your opener with a CookieJar the cookies should be >>handled automatically - i

Re: [Tutor] Tutorial for creating web server

2006-03-03 Thread Rakesh Mishra
Hi Johnson I wanted to create web server some think like similar to ZServer of zope. I wanted to use it for publishing my home page (it is in php), or any web application. I am confused with arch. , bye rakeshOn 3/3/06, Kent Johnson <[EMAIL PROTECTED]> wrote: Rakesh Mishra wrote:> hi>>

Re: [Tutor] Tutorial for creating web server

2006-03-03 Thread Kent Johnson
Rakesh Mishra wrote: > Hi Johnson > I wanted to create web server some think like similar to ZServer of zope. > I wanted to use it for publishing my home page (it is in php), or any > web application. > I am confused with arch. I still am not sure what you are asking for. Do you want to create s

Re: [Tutor] odbchelper

2006-03-03 Thread Ewald Ertl
Hi Kent! You are absolutely right. Sorry for my bad description. Kent Johnson wrote: > Ewald Ertl wrote: >> Hi! >> >> How have you started the script? As far as I could see, in the Chapter 1 of >> "Dive into Python", the odbchelper.py is just a script-File and not a module >> to be imported, the

Re: [Tutor] windows help system

2006-03-03 Thread Alan Gauld
> Environmental variable is not in the windows help glossary. Strange, in both Windows 2000 and XP I type 'environment variable' into the search box and the list of topics returned includes "Setting environment variables" I'm sure Win98 does too because I've used it in the past. > Before toda

Re: [Tutor] windows help system

2006-03-03 Thread Kermit Rose
    From: Alan Gauld Date: 03/03/06 11:41:05 To: Kermit Rose; tutor@python.org Subject: Re: [Tutor] windows help system   > Environmental variable is not in the windows help glossary.   Strange, in both Windows 2000 and XP I type 'environment variable' into the search box and the list of top

Re: [Tutor] password protection in httplib

2006-03-03 Thread Andre Engels
Thanks for your answers! It is working now! 2006/3/3, Kent Johnson <[EMAIL PROTECTED]>: > Andre Engels wrote: > > 2006/3/3, Kent Johnson <[EMAIL PROTECTED]>: > > > > > >>Have you tried using a CookieManager as shown in the first example here: > >>http://docs.python.org/lib/cookielib-examples.html

Re: [Tutor] windows help system

2006-03-03 Thread Alan Gauld
> I found the windows help glossary, but did not find a search box. > > How would I find the search box in > Microsoft Windows XP Home Edition When you open Help and Support, just above where it says "Pick a Help Topic" there is a text entry box labelled Search and a green arrow. At least the

Re: [Tutor] Print list vs telnetlib.telnet.write differences

2006-03-03 Thread Python
On Fri, 2006-03-03 at 15:41 +1000, STREET Gideon (SPARQ) wrote: > The problem I'm stumbling over is that when I print x, the output is > what I want. If I delete the print x and #, leaving only tn.write(x) > on > the last line everything looks good except it writes the 1st item in > "lines" (the b

Re: [Tutor] usernames and uid in linux

2006-03-03 Thread Bill Campbell
On Fri, Mar 03, 2006, Pat Martin wrote: > > Hello all, > I seem to be having a problem finding the right tool in python. Given > a username I want to find the uid for it. I can do the reverse very > easily with: > pwd.getpwuid(2012) > This returns a tuple of data from the passwd file. B

[Tutor] usernames and uid in linux

2006-03-03 Thread Pat Martin
Hello all,I seem to be having a problem finding the right tool in python. Given a username I want to find the uid for it. I can do the reverse very easily with:pwd.getpwuid(2012)This returns a tuple of data from the passwd file. But I want to do something like: command(username) And get something t

Re: [Tutor] usernames and uid in linux

2006-03-03 Thread Pat Martin
You're close:import pwdpw = pwd.getpwnam('username') Bill--INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Systems, Inc.URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676There is no distinctly native Am

[Tutor] One shared object. class attribute or global variable?

2006-03-03 Thread Adam
I've got a module that needs to share a pack of cards pack = ["14s", "2s", "3s", "4s", "5s", "6s", "7s", "8s", "9s", "10s", "11s", "12s", "13s", "14d", "2d", "3d", "4d", "5d", "6d", "7d", "8d", "9d", "10d", "11d", "12d", "13d", "14c", "2c", "3c", "4c", "5c", "6c", "7c", "8c", "9c", "10

Re: [Tutor] One shared object. class attribute or global variable?

2006-03-03 Thread Adam
On 04/03/06, Adam <[EMAIL PROTECTED]> wrote: > I've got a module that needs to share a pack of cards > > pack = ["14s", "2s", "3s", "4s", "5s", "6s", "7s", "8s", "9s", "10s", "11s", > "12s", "13s", "14d", "2d", "3d", "4d", "5d", "6d", "7d", "8d", "9d", > "10d", > "11d", "12d", "13d", "14c"

Re: [Tutor] One shared object. class attribute or global variable?

2006-03-03 Thread Kent Johnson
Adam wrote: > I've got a module that needs to share a pack of cards > > pack = ["14s", "2s", "3s", "4s", "5s", "6s", "7s", "8s", "9s", "10s", "11s", > "12s", "13s", "14d", "2d", "3d", "4d", "5d", "6d", "7d", "8d", "9d", > "10d", > "11d", "12d", "13d", "14c", "2c", "3c", "4c", "5c", "6c",

Re: [Tutor] One shared object. class attribute or global variable?

2006-03-03 Thread Python
On Sat, 2006-03-04 at 00:42 +, Adam wrote: > On 04/03/06, Adam <[EMAIL PROTECTED]> wrote: > > I've got a module that needs to share a pack of cards > > > > pack = ["14s", "2s", "3s", "4s", "5s", "6s", "7s", "8s", "9s", "10s", "11s", > > "12s", "13s", "14d", "2d", "3d", "4d", "5d", "6d", "7d

[Tutor] Urgent - Using Threads for processing each single Packet ?

2006-03-03 Thread Sudarshana KS
Hi All, Currently i am planning for writing a tool which gets a webpage and fills the appropriate fields and posts the page back to the server. The problem is that i am using SCAPY for doing http as i need VLAN TAG to be supported to get the HTTP Page. So before starting this i had couple of ques

Re: [Tutor] Tutorial for creating web server

2006-03-03 Thread Rakesh Mishra
hi Johnson late me try to explain what I wants... I am not interested in tool which is used to  creating the web pages.  but  I am interested in tool which is used for  webcasting the web pages. in contax of Zope... Apart from creating web pages it has its own web server called as ZServer.