Re: SMTPHandler and Unicode

2010-07-07 Thread norbert
> Well, you could use an approach like the one suggested here: > > http://plumberjack.blogspot.com/2010/07/using-custom-formatter-to-dea... That's nice, thanks. I'll use something like this. Just a thought : I will use "errors=replace" in the call to the encode method to be sure that the logger do

Re: SMTPHandler and Unicode

2010-07-05 Thread norbert
> > Ouch. Implicit encoding sounds like a bad behaviour. Looking at the FileHandler source ( http://svn.python.org/view/python/trunk/Lib/logging/__init__.py?view=markup ) : the utf-8 encoding is a fallback. But *FileHandler family let you specify the encoding you want, so that's OK I think. But S

Re: SMTPHandler and Unicode

2010-07-05 Thread norbert
On 5 juil, 14:32, Chris Withers wrote: > norbert wrote: > > Your package has the same unicode problem : > > import logging,logging.handlers > > from mailinglogger.MailingLogger import MailingLogger > > mailingLogger = MailingLogger(mailhost=('smtp.example.com'

Re: SMTPHandler and Unicode

2010-07-05 Thread norbert
On 5 juil, 13:17, Chris Withers wrote: > try MailingLogger: > > If you have unicode problems with that, I'd be interested in fixing them! Your package has the same unicode problem : import logging,logging.handlers from mailinglogger.MailingLogger import MailingLogger mailingLogger = MailingLogger

SMTPHandler and Unicode

2010-07-05 Thread norbert
Hello, I want to send error messages with SMTPHandler logging. But SMTPHandler does not seem to be unicode aware. Is there something doable without playing with sys.setdefaultencoding ? import logging,logging.handlers smtpHandler = logging.handlers.SMTPHandler(mailhost=("smtp.example.com",25), fr

Hint :Easy_Install Documentation

2007-01-12 Thread Norbert
Hello list, just in the moment I wanted to write about then lacking documentation about Easy_Install, but then I found this one : http://www-128.ibm.com/developerworks/library/l-cppeak3.html. Just for google. HTH Norbert -- http://mail.python.org/mailman/listinfo/python-list

Re: python.org not current

2006-12-08 Thread Norbert
On 8 Dez., 08:40, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Norbert wrote: > > the python websitehttp://www.python.org/mentions Version 2.3.6 and > > 2.4.4 on the most prominent place. Shouldn't this be changed to 2.5.x > > ?you're looking at the news sec

python.org not current

2006-12-07 Thread Norbert
Hello all, the python website http://www.python.org/ mentions Version 2.3.6 and 2.4.4 on the most prominent place. Shouldn't this be changed to 2.5.x ? Regards Norbert -- http://mail.python.org/mailman/listinfo/python-list

Re: EasyInstall under Windows - strange behaviour

2006-11-30 Thread Norbert
re information. > > hth, > Don Thank you for the tip, but I checked this and this is not the case. I presume that I missed a step in the ez_setup process. Thanks again Norbert -- http://mail.python.org/mailman/listinfo/python-list

EasyInstall under Windows - strange behaviour

2006-11-30 Thread Norbert
xit( load_entry_point('setuptools==0.6c3', 'console_scripts', 'easy_install')() ) What is going on here ? I presume that there are some trivial things I don't understand, can someone provide apointer or hint ? Thank you for your time ! Norbert -- http://mail.python.org/mailman/listinfo/python-list

Re: small python cgi webserver

2006-11-05 Thread Norbert Kaufmann
n 1.1: http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6 As you may see you separate the header of a response from the body by an empty line, generated with CRLF. Since one CRLF ends the line inside the header you need two of them. Bye Norbert -- http://mail.python.org/mailman/listinfo/python-list

Re: small python cgi webserver

2006-11-04 Thread Norbert Kaufmann
27;/'. If you start your server in your home dir '/home/fab' then you have to name your cgi_directories ['/Desktop/cgi-bin']. In your response (cgi-script) you have to divide the header from the content '\r\n\r\n'. HTH Norbert -- http://mail.python.org/mailman/listinfo/python-list

Re: How do you practice Python?

2006-06-02 Thread Norbert Kaufmann
a, deploy configuration files, search in logfiles for errors, etc. -- for your project in Python. Convince your project manager to develop prototypes. No one in your company is better and faster in prototyping than the Python expert Ray. HTH Norbert -- It is easier to get forgiveness than p

Re: Pywin32: How to import data into Excel?

2005-11-13 Thread Norbert
happily enough, and you could always automate > save-as-workbook and any formatting you need afterwards. But there are thorny issues with different locales and number formats. Excel is also just too clever in recognising dates All the best Norbert -- http://mail.python.org/mailman/listinfo/python-list

Re: Formated String in optparse

2005-04-14 Thread Norbert Thek
;für' (maybe reader with only an english enabled browser wouldn't see a difference..) I tried to work with the encode method of string but It didn't work for me some hint what to do? Norbert -- http://mail.python.org/mailman/listinfo/python-list

Formated String in optparse

2005-03-31 Thread Norbert Thek
Hi I'm using Python 24 on Windows > (2k) Is there an easy way to convince optparse to accept newline in the helpstring? and more importand also in the 'desc' string. I tried everything (from the os.linesep) to \n, \r, \r\n, ... Norbert -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading Problem

2004-12-22 Thread Norbert
Thanks Alan, i hoped it would be something trivial :) Norbert -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading Problem

2004-12-22 Thread Norbert
How can I assure that the starting function finishes, while the other thread still runs ?' . As I said, this is the purpose of threading. Thanks again Norbert -- http://mail.python.org/mailman/listinfo/python-list

Threading Problem

2004-12-22 Thread Norbert
ng like the following : start threadfunction: entered start completed<--- threadfunction x=10 threadfunction x=20 threadfunction x=30 Does anyone know what's going on here ? Thanks for listening ! Norbert -- http://mail.python.org/mailman/listinfo/python-list