Mimicing an HTML form

2009-08-12 Thread Zach Hobesh
Hi all, I'm having alot of trouble automating the submitting of form. I have an HTML page that works and it looks like this: When I put valid values for the handling script an app ID, this page works. Now I'm trying to turn this same functionality into a script. Here's my code: import

Re: Config files with different types

2009-07-03 Thread Zach Hobesh
]: yaml.load("""name: person name >   ...: age: 25 >   ...: is_programmer: true""") > Out[2]: {'age': 25, 'is_programmer': True, 'name': 'person name'} > > Best regards, >    Javier > > 2009/7/2 Zach Hobesh : >

Config files with different types

2009-07-02 Thread Zach Hobesh
Hi all, I've written a function that reads a specifically formatted text file and spits out a dictionary.  Here's an example: config.txt: Destination = C:/Destination Overwrite = True Here's my function that takes 1 argument (text file) the_file = open(textfile,'r') linelist = the_file.read()

Re: Re: Executing a python script while it is running

2009-06-16 Thread Zach Hobesh
On Tue, Jun 16, 2009 at 6:37 PM, Chris Rebert wrote: > On Tue, Jun 16, 2009 at 6:21 PM, wrote: >> Hey Dave, >> >> Thanks for the helpful responses. >> >>> Option 2 is what you get by default.  Naturally it depends on what the >>> application  is using to launch the batch file, but the most common

Re: Re: Executing a python script while it is running

2009-06-16 Thread hobesh
Hey Dave, Thanks for the helpful responses. Option 2 is what you get by default. Naturally it depends on what the application is using to launch the batch file, but the most common cases will launch a separate process. The app ended up delaying starting the second batch file until it finis

Re: Executing a python script while it is running

2009-06-16 Thread Zach Hobesh
> A lot more information would be useful.  What version of Python, and what > operating system environment?  Exactly what would you like to happen when > the batch file is invoked a second time? I'm running Python 2.6.2 on Windows. I'm passing filenames to the batch files and I need all filenames

Executing a python script while it is running

2009-06-16 Thread Zach Hobesh
Hi everybody, Here's my situation: I have a batch file that calls a python script. This batch file is triggered by an outside application when the application completes a task. The problem is that while the batch file (and pythons script) is running, the application will complete the next task,

Shared script

2008-08-01 Thread Zach Hobesh
I wrote a script that several different people on different machines need to run on a regular basis. When I first wrote it, it was in crisis mode, I got something out that was quick and dirty, very bare bones. Recently I had some more time, so I pushed most of the functions that the script uses i

Running python scripts in a VB program

2008-07-28 Thread Zach Hobesh
Does anyone have any clue on how to embed python scripts in a visual basic windows app? Additionally, does anybody else feel like Visual Basic is ridiculously confusing? Any help is appreciated. Thanks, -Zach -- http://mail.python.org/mailman/listinfo/python-list

automating python programs

2008-07-21 Thread Zach Hobesh
Hi, I'm trying to figure out how to run a python program on a schedule, maybe every half an hour... Is this possible? Thanks! -Zach -- http://mail.python.org/mailman/listinfo/python-list