Re: [Tutor] Writing to XML file with minidom

2005-08-30 Thread Johan Geldenhuys
Kent, Thanks for the tip. I can write the changed data back to my xml file. 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-as

Re: [Tutor] Killing a thread from main - was RE: "Lock"ing threads

2005-08-30 Thread Michael P. Reilly
On 8/29/05, Hans Dushanthakumar <[EMAIL PROTECTED]> wrote: Thanks KentHow do I send a signal from the main thread to stop execution of a childthread?I tried the foll:, but got an error:Other than by this method, is there any other mechanism to stop athread? import threadingimport timeclass shownum(

Re: [Tutor] Popen and Prompting

2005-08-30 Thread John Fouhy
On 31/08/05, Faulconer, Steven M. <[EMAIL PROTECTED]> wrote: > My question for all of you python people; how can I handle programs that MAY > need input from the command line. I thought about using something like > pexpect, but the input requests are fairly variable, and may not show up at > all. A

[Tutor] Popen and Prompting

2005-08-30 Thread Faulconer, Steven M.
Hello all, 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 using Tkinter. Everything is working quite well,

Re: [Tutor] Writing to XML file with minidom

2005-08-30 Thread Kent Johnson
Johan Geldenhuys wrote: > That means that I have to compile the whole file from scratch in Python, > minidom. > I am not that good, yet, but will try. No, not if I understand what you are trying to do - the xmlDocument you have is all the data from the file, just write it back out using the code

Re: [Tutor] MS Access......

2005-08-30 Thread Eric Walker
me = class Beautiful me.Crying... Great Info, I was able to connect through DAO and create an object and coulde open, Excel,Access and Word docs but I couldn't find any documentation on methods to use to do stuff. I will try ADO tonight directly and I am sure it will work great. Eric Thanks A

Re: [Tutor] Writing to XML file with minidom

2005-08-30 Thread Johan Geldenhuys
That means that I have to compile the whole file from scratch in Python, minidom. I am not that good, yet, but will try. will it be easier to search for the string that I look for in the file (readlines) and then just write the pieces back again? Johan On Tue, 2005-08-30 at 07:40 -0400, Kent J

Re: [Tutor] Writing to XML file with minidom

2005-08-30 Thread Kent Johnson
Johan Geldenhuys wrote: > Thanks for he help, so far. > > I am still having some questions on writing my new string back to the > xml file after I found what I was looking for and changed it. > > Extracts: > > xmlDocument = minidom.parse(file_name) # open existing file for parsing > main = xmlD

Re: [Tutor] MS Access......

2005-08-30 Thread Kent Johnson
Eric Walker wrote: > I want to know what modules are available to connect > and talk with MSAccess databases... google 'python msaccess' You can talk to Access directly using ADO: http://www.ecp.cc/pyado.html or via DAO: http://starship.python.net/crew/bwilk/access.html adodbapi puts a Python D

Re: [Tutor] Writing to XML file with minidom

2005-08-30 Thread Johan Geldenhuys
Thanks for he help, so far. I am still having some questions on writing my new string back to the xml file after I found what I was looking for and changed it. Extracts: xmlDocument = minidom.parse(file_name) # open existing file for parsing main = xmlDocument.getElementsByTagName('Config')