Re: [Tutor] Help with pysvn

2007-04-16 Thread Martin Walsh
Hi Nam, Pavar, Namratha wrote: > Hi, > > > > I am getting the error "pysvn._pysvn.ClientError: callback_get_login > required" when I try to do a simple exercise using pysvn. I have made > sure the subversion config file doesn't have the "store-auth-creds = no" > . > > I would appreciate any h

[Tutor] Beautiful Soup update

2007-04-16 Thread Kent Johnson
There was a thread here a few months ago about problems with running the unit tests for Beautiful Soup under Python 2.5. These problems have apparently been fixed with a new release of Beautiful Soup. http://www.crummy.com/software/BeautifulSoup/ Kent ___

[Tutor] Help with pysvn

2007-04-16 Thread Pavar, Namratha
Hi, I am getting the error "pysvn._pysvn.ClientError: callback_get_login required" when I try to do a simple exercise using pysvn. I have made sure the subversion config file doesn't have the "store-auth-creds = no" . I would appreciate any help. Following is the code and error message.

Re: [Tutor] [OT] ETL Tools

2007-04-16 Thread Bob Gailer
I responded on 3/30, but did not hear back from you, so I thought I'd try again: Stephen Nelson-Smith wrote: > Hello all, > > Does anyone know of any ETL (Extraction, Transformation, Loading) > tools in Python (or at any rate, !Java)? > I have under development a Python tool that is based on I

Re: [Tutor] Multiple lines with the command line

2007-04-16 Thread Tom Tucker
Sorry, you mentioned you wanted to use the Unix mail program. Is your information static? If yes, how bout this. cmd = "mail -s 'my subject' [EMAIL PROTECTED] <[EMAIL PROTECTED]> < /path/to/static_message" os.system(cmd) Similar approach could be to capture the users message body as command line

Re: [Tutor] Multiple lines with the command line

2007-04-16 Thread Tom Tucker
Have you tried the "email" module? http://docs.python.org/lib/module-email.html On 4/16/07, Kharbush, Alex [ITCSV] <[EMAIL PROTECTED]> wrote: I want to use the UNIX Mail program with python I need multiple entries with the os.system(cmd)line I will need something like this #output to uni

Re: [Tutor] imported module/global

2007-04-16 Thread Andreas Kostyrka
* Luke Paireepinart <[EMAIL PROTECTED]> [070416 20:27]: > Andreas Kostyrka wrote: > >OTOH, module globals are seldom used, and usually frowned on. E.g. the > >python2.5 standard lib (>200K lines, 584 py files), uses exactly 104 > >distinct global statements. > > > >[EMAIL PROTECTED]:/usr/lib/python

[Tutor] Multiple lines with the command line

2007-04-16 Thread Kharbush, Alex [ITCSV]
I want to use the UNIX Mail program with python I need multiple entries with the os.system(cmd)line I will need something like this #output to unix Mail [EMAIL PROTECTED] -f [EMAIL PROTECTED] Subject : hello alex #message part how is it going #the end of mail . When I write os.system("Mail

Re: [Tutor] imported module/global

2007-04-16 Thread Luke Paireepinart
Andreas Kostyrka wrote: > OTOH, module globals are seldom used, and usually frowned on. E.g. the > python2.5 standard lib (>200K lines, 584 py files), uses exactly 104 > distinct global statements. > > [EMAIL PROTECTED]:/usr/lib/python2.5> grep -r "^[ \t]*global " . | sed 's/[ > \t][ \t]*/ /' | so

Re: [Tutor] python instances and type

2007-04-16 Thread Kent Johnson
Kent Johnson wrote: > The type and the class of an instance of an old-style class are not the > same. For a little more explanation, see http://docs.python.org/ref/node33.html For a lot more explanation, see http://www.python.org/doc/newstyle.html Kent _

Re: [Tutor] python instances and type

2007-04-16 Thread Kent Johnson
Adam Pridgen wrote: > x = foo_1() > x.data = "boring" > print type(x), type(x).mro() > [] > print type(bar), type(bar).mro() > [, ] As Andre has pointed out, this is a difference between new- and old-style classes, not an artifact of the way you are using the classes. The type and the class

Re: [Tutor] python instances and type

2007-04-16 Thread Andre Engels
2007/4/16, Adam Pridgen <[EMAIL PROTECTED]>: > Hello, > > Sorry for the long email, but thanks in advance. > > I am not quite sure what is happening, so I have not been able to > adequately seek a solution via Google, so if this answer is fairly > easy to find on Google, let me know. I am not sure

Re: [Tutor] python instances and type

2007-04-16 Thread Andreas Kostyrka
Sorry, I cannot replicate your described behaviour: [EMAIL PROTECTED]:~> cat /tmp/t.py def get_class_resolution(obj): ''' get the first class resolution string for a particular object @type obj: Mixed/ Any @param obj: this is the object to get the name of. Good

[Tutor] python instances and type

2007-04-16 Thread Adam Pridgen
Hello, Sorry for the long email, but thanks in advance. I am not quite sure what is happening, so I have not been able to adequately seek a solution via Google, so if this answer is fairly easy to find on Google, let me know. I am not sure how to produce an example of my problem without using th