Re: [Tutor] Tail -f problem

2005-08-31 Thread Alberto Troiano
Hey Nick About the mysql upgrade (by the way thanks for the reply) I have downloaded the rpm fron mysql.com along with the installation manual..I will give it a try The code you sent in the hyperlink looks neat...I will try it out since the page hasn't much documentation about this example in

Re: [Tutor] Tail -f problem

2005-08-31 Thread Nick Lunt
Hi Alberto, > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Alberto Troiano > Sent: 31 August 2005 22:01 > To: tutor@python.org > Subject: [Tutor] Tail -f problem > > > Hey > I thought about tail-f > /var/log/radacct/max/detail but this thing opens a

[Tutor] Tail -f problem

2005-08-31 Thread Alberto Troiano
Hey I'm still working with this RADIUS system over Red Hat 9.0, mysql 3.23 and python 2.2.2 I ran to another problem.I have a file that is written by the RADIUS server (for those who don't know RADIUS is an authentication Service). The file contains the detail of the RADIUS, the server wri

Re: [Tutor] Popen and Prompting

2005-08-31 Thread Faulconer, Steven M.
Danny, Thanks for the response. We looked at using pexpect (I'm a UNIX guy at heart), but we have variable command prompts, that may or may not show up, with this program, so expect/pexpect would be difficult. John's suggestion was to add some sort of unique ID as a good idea, but won't work in th

Re: [Tutor] Writing to XML file with minidom

2005-08-31 Thread Travis Spencer
On 8/31/05, Danny Yoo <[EMAIL PROTECTED]> wrote: > Hi Travis, Hey Danny, > Putting pure binary bytes in an XML file has a flaw: the issue is that the > binary bytes themselves might contain characters that could be interpreted > as XML! Even if we wrap the content in CDATA, there's nothing that

Re: [Tutor] Closing SimpleXMLRPCServer properly

2005-08-31 Thread Danny Yoo
> class StoppableXMLRPCServer(SimpleXMLRPCServer.SimpleXMLRPCServer): > def serve_forever(self): > """to stop this server: register a function in the class > that uses it which sets server.stop to True.""" > self.stop = False > while not self.stop: > self.handle_request() > > Here's the code where

Re: [Tutor] Popen and Prompting

2005-08-31 Thread Danny Yoo
On Tue, 30 Aug 2005, Faulconer, Steven M. wrote: > Been digging through the web and the archives for the tutor list and > can't seem to locate an answer to my question. It is probably out there, > but my searching skills are failing me. I recently wrote a GUI for > several command line programs

Re: [Tutor] PYTHON????

2005-08-31 Thread Danny Yoo
On Mon, 29 Aug 2005 [EMAIL PROTECTED] wrote: > How does a calculator multiply? I want to create a computer software > that can multiply. How do I program the computer to multiply? Hello, Have you had a chance to look at: http://wiki.python.org/moin/BeginnersGuide/NonProgrammers There ar

Re: [Tutor] Writing to XML file with minidom

2005-08-31 Thread Danny Yoo
> > One snag that I found is that the des encryption that I used for the > > data that is written back, it is not parsed correctly when the file is > > read again with the new data in it. There is non-printable characters > > or non-ascii chars in that gives errors from expat when the contents > >

[Tutor] Closing SimpleXMLRPCServer properly

2005-08-31 Thread lawrence wang
I have a SimpleXMLRPCServer, which I've tweaked thusly: class StoppableXMLRPCServer(SimpleXMLRPCServer.SimpleXMLRPCServer):     def serve_forever(self):         """to stop this server: register a function in the class         that uses it which sets server.stop to True."""         self.stop = Fal

[Tutor] PYTHON????

2005-08-31 Thread luckygoodluck
Dear Python,  How does a calculator multiply? I want to create a computer software that can multiply. How do I program the computer to multiply?  ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Popen and Prompting

2005-08-31 Thread Faulconer, Steven M.
John, I thought about that, but it would potentially cause other conflicts. I think our final plan is to edit the code to die on error cases instead of prompting. However, if anyone knows of a way of handling this, I'd love to know for future use. Thanks for the response. Steven -Original Me

Re: [Tutor] Writing to XML file with minidom

2005-08-31 Thread Travis Spencer
On 8/30/05, Johan Geldenhuys <[EMAIL PROTECTED]> wrote: > One snag that I found is that the des encryption that I used for the data > that is > written back, it is not parsed correctly when the file is read again with the > new > data in it. There is non-printable characters or non-ascii chars

Re: [Tutor] Listbox help

2005-08-31 Thread Kent Johnson
David Holland wrote: > I can work out how to use most Tkinter widgets. Eg > buttons like :- >def create_widgets(self): > #create GUI >Button(self, text = "x", command = > self.y).grid(row = 3, column = 3, columnspan = 3) > > However I am not sure how to use Listboxes. What >

[Tutor] Listbox help

2005-08-31 Thread David Holland
I can work out how to use most Tkinter widgets. Eg buttons like :- def create_widgets(self): #create GUI Button(self, text = "x", command = self.y).grid(row = 3, column = 3, columnspan = 3) However I am not sure how to use Listboxes. What would be the similar syntax to create