[Tutor] quick OO pointer

2006-08-06 Thread shawn bright
Hello there,a while back i wrote a module called DbConnector.py that allowed me to run different types of SQL queries. Cool enough.i did it mostly to handle the open and close of a db connection so i wouldn't have to worry about 'too many connection' errors. it makes a connection, runs a query, the

Re: [Tutor] Python for basic web-testing

2006-08-06 Thread Hans Dushanthakumar
Have been doing some googling myself..The Selenium tool looks good. It appears to be a record-and-play extension to the firefox browser...Anyone have any experience with the Selnium Remote Control? I'm having difficulty installing it. Cheers Hans -Original Message- From: [EMAIL PROTECTED]

Re: [Tutor] Python for basic web-testing

2006-08-06 Thread Dustin J. Mitchell
Hans Dushanthakumar wrote: > Hi, >How do I use python for basic web-tasks like inputting data or > clicking buttons on web-pages. For eg, how do I enter my username and > password and click on the "OK" button on the yahoo mail page? > I had a look at the webbrowser module documentation > (http:

Re: [Tutor] Python for basic web-testing

2006-08-06 Thread Jordan Greenberg
Hans Dushanthakumar wrote: > Hi, >How do I use python for basic web-tasks like inputting data or > clicking buttons on web-pages. For eg, how do I enter my username and > password and click on the "OK" button on the yahoo mail page? > I had a look at the webbrowser module documentation > (http:

[Tutor] Python for basic web-testing

2006-08-06 Thread Hans Dushanthakumar
Hi,    How do I use python for basic web-tasks like inputting data or clicking buttons on web-pages. For eg, how do I enter my username and password and click on the "OK" button on the yahoo mail page? I had a look at the webbrowser module documentation (http://www.python.org/doc/current/lib

[Tutor] Community documentation framework?

2006-08-06 Thread Bob Nienhuis
Have you had the experience of finding a nifty bit of code on the web, trying it out, and then discovering that technique only worked in version X.YY, or requires module Z that is no longer available? Well perhaps we can address this situation. I would like to see an online system that facilitat

Re: [Tutor] can you explain string replacement syntax and comma separated statements

2006-08-06 Thread Danny Yoo
On Sun, 6 Aug 2006, anil maran wrote: >text = """From: the bugman <[EMAIL PROTECTED]> > To: the bugfixer <[EMAIL PROTECTED]> > Subject: bug: %s: %s (%s) > Content-Type: multipart/mixed; boundary="here" [text example cut] Hi Anil, Anil, take a look at: http://www.python.org/d

Re: [Tutor] help regarding forms...

2006-08-06 Thread Danny Yoo
On Sat, 5 Aug 2006, anil maran wrote: > http://localhost/newtodo?category= > > can one of you guys explain what this is Hi Anil, Are you taking some kind of internet web-development class? You seem to be asking a lot of web-development questions. In the absence of context, I'm not sure wha

Re: [Tutor] can you explain string replacement syntax and commaseparated statements

2006-08-06 Thread Alan Gauld
> can you explain string replacement syntax and commaseparated > statements string substitution replaces the 5 %s comvbinations with the 5 values after the % sign A simplied example is: s = "hello %s, welcome to %s" % ('world','python') Your example just uses triple quotes to allow the string

Re: [Tutor] how to use

2006-08-06 Thread Alan Gauld
Hi Anil, Are you reading a tutorial? Most of the questions you are asking should be covered in any standard tutorial. > what does > > x**x) do? Its equivalent to pow(x,x) ie raises x to the power x. > 2nd) what is the key for the dictionary, i assume x is the value of > the dictionary > dict

[Tutor] Raw files and jpeg thumbnail extraction

2006-08-06 Thread Richard Querin
I am interested in extracting jpeg thumbnails that are stored in my camera's Canon .CR2 raw files. Does anybody know of any python libraries with this kind of functionality? Is dcraw the only way to implement this functionality? I'm writing a simple gui to selectively process raw files into jpegs,

Re: [Tutor] This will run on Outlook but not Outlook Express

2006-08-06 Thread Alan Gauld
> from win32com.client import Dispatch > s=Dispatch("Mapi.Session") I don't think Outlook express uses MAPI. MAPI is a strictly Microsoft protocol and only used in Outlook and a few other clients that try to talk to Exchange servers. Outlook Express is a much more conventional mailtool that tal

[Tutor] can you explain string replacement syntax and comma separated statements

2006-08-06 Thread anil maran
    text = """From: the bugman ...@example.com> To: the bugfixer ...@example.com> Subject: bug: %s: %s (%s) Content-Type: multipart/mixed; boundary="here" --here Content-Type: text/plain Content-Disposition: inline %s %s --here Content-Type: text/html; name="bug.ht

[Tutor] error, i m unable to find the error for past 1week, this doesnt work, please help me out

2006-08-06 Thread anil maran
You can override the web.internalerror function to have it to do other interesting things. For example, I have infogami send me an email with the full debugerror traceback whenever there's a crash: olderror = web.internalerror def error():     olderror()     import sys, traceback     tb = sy

Re: [Tutor] how to use

2006-08-06 Thread anil maran
what does x**x) do?2nd) what is the key for the dictionary, i assume x is the value of the dictionaryJohn Fouhy <[EMAIL PROTECTED]> wrote: On 05/08/06, anil maran <[EMAIL PROTECTED]> wrote:> list comprehensions to return a dictionaryWell, hyou can use the dict function. eg:dict((x, x**x) for x in