[Tutor] Counting MySQL Fields

2005-06-11 Thread Don Parris
Greetings, I've dabbled in programming/scripting a little, but never really seem to get the hang of it. I thought I'd try out Python for a front-end to my SQL database project. I've worked through the tutorial, and a few others to some extent. At the moment, I'm really just tinkering, but have

Re: [Tutor] Web browser

2005-06-11 Thread Alan G
What I need to do is load a web-page, enter a password-protected site and follow certain links, it needs to have frames and follow the refresh meta. I'm running winxp, python 2.4 Do you need to do this interactively in a browser? It sounds like scripting the process using urlib might be a

Re: [Tutor] Counting MySQL Fields

2005-06-11 Thread Alan G
I'd like to use the result.numfields() function to count the fields on a given table, but apparently don't quite grasp how to implement it. Below is my lame attempt. OK, I've never use the numfields function so have no idea how it works nor why I'd want to use it but... sql = SELECT * FROM

Re: [Tutor] Web browser

2005-06-11 Thread Kent Johnson
Ismael Garrido wrote: Hello. I've been looking around for a web browser either written in python, or with python bindings. What I need to do is load a web-page, enter a password-protected site and follow certain links, it needs to have frames and follow the refresh meta. I'm running

Re: [Tutor] Counting MySQL Fields

2005-06-11 Thread Kent Johnson
Don Parris wrote: I'd like to use the result.numfields() function to count the fields on a given table, but apparently don't quite grasp how to implement it. Below is my lame attempt. I searched the comp.lang.python group via Google, but didn't find any relevant info. The MySQLdb User Guide

Re: [Tutor] Web browser

2005-06-11 Thread Craig Booth
Hi, As was recommended to me in a previous thread if you're on a Windows machine with IE installed then PAMIE (http://www.pamie.sourceforge.net) can simplify using the IE COM and does nearly everything you need. Pamie doesn't support frames correctly yet, but it is very easy to hack in

Re: [Tutor] Web browser

2005-06-11 Thread Liam Clarke
Ai, for the frames you just call the win32 methods directly. Easy enough, just got to deal with the DOM!On 6/11/05, Craig Booth [EMAIL PROTECTED] wrote:Hi, As was recommended to me in a previous thread if you're on a Windows machine with IE installed then PAMIE(http://www.pamie.sourceforge.net)

[Tutor] Print behaviour inside a loop?

2005-06-11 Thread Simon Gerber
Hullo, Firstly, thanks to everyone who helped me find my own IP address. That was a big help. That bit is working now, and working very nicely. I am now stuck on something purely aesthetic - printing a few dots across the screen to provide a bit of feedback while the VPN tunnel is being

Re: [Tutor] Print behaviour inside a loop?

2005-06-11 Thread Max Noel
On Jun 12, 2005, at 00:42, Simon Gerber wrote: Any hints? I looked up the python reference manual, but couldn't find any way to force print statements to draw. Should I be looking into threads, perhaps? I/O in Python is buffered -- that is, it uses RAM whenever possible to delay the

Re: [Tutor] Web browser

2005-06-11 Thread Terry Carroll
On Sat, 11 Jun 2005, Ismael Garrido wrote: I've been looking around for a web browser either written in python, or with python bindings. MozPython? http://www.thomas-schilz.de/MozPython/README.html What I need to do is load a web-page, enter a password-protected site and follow certain

Re: [Tutor] Counting MySQL Fields

2005-06-11 Thread Don Parris
Oops! Didn't mean to reply off-list. On Sat, 11 Jun 2005 23:16:47 +0100 Alan G [EMAIL PROTECTED] wrote: HI Don, result = Cursor.fetchone() Con.close() # Count the fields result.num_fields() Should I have done something more like this? a = result the DB code

Re: [Tutor] Print behaviour inside a loop?

2005-06-11 Thread Chinook
On Sat, 11 Jun 2005 19:42:27 -0400, Simon Gerber wrote (in article [EMAIL PROTECTED]): Hullo, Firstly, thanks to everyone who helped me find my own IP address. That was a big help. That bit is working now, and working very nicely. I am now stuck on something purely aesthetic - printing a