Re: Using SimpleXMLRPCServer in a Windows Service

2006-11-28 Thread Rudy Schockaert
nellina <[EMAIL PROTECTED]> wrote: > At Thursday 23/11/2006 06:52, Rudy Schockaert wrote: > > >After some Googling I found a post of someone who wanted to do exactly > >as what I want to do now. > >There is however a problem in his code that makes the service fails > >

Using SimpleXMLRPCServer in a Windows Service

2006-11-23 Thread Rudy Schockaert
;C:\Python24\lib\xmlrpclib.py", line 1383, in __request verbose=self.__verbose File "C:\Python24\lib\xmlrpclib.py", line 1137, in request headers ProtocolError: Can someone help me in creating a windows service that allows me to handle XMLRPC request? Thanks in advance, Rudy Schockaert -- http://mail.python.org/mailman/listinfo/python-list

Problem binding to Active Directory

2006-03-24 Thread Rudy Schockaert
I use the following script:from win32com.client import GetObject, Dispatchuser=''password=''default_naming_context = GetObject("LDAP://rootDSE").Get("defaultNamingContext")ad = GetObject("LDAP:").OpenDSObject("LDAP://%s" % default_naming_context, user, password, 1 + 512) If user & password contain

Re: CSV module and UNICODE

2006-02-23 Thread Rudy Schockaert
Thanks a lot Skip. Sure that this will help. Learned two things: how to do it and to look at the docs for 2.5 also. These samples are not in the 2.4.2 reference guide. RudyOn 2/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Rudy> I'm having problems writing unicode to a csv file.Rud

Re: CSV module and UNICODE

2006-02-23 Thread Rudy Schockaert
Forgot to mention that I work on Windows XP and Windows 2003.On 2/23/06, Rudy Schockaert <[EMAIL PROTECTED] > wrote:I'm having problems writing unicode to a csv file.I use the following code: -import codecsimport csvcsvfile = csv.writer(codecs.open('filenam

CSV module and UNICODE

2006-02-23 Thread Rudy Schockaert
I'm having problems writing unicode to a csv file.I use the following code:-import codecsimport csvcsvfile = csv.writer(codecs.open('filename.csv','w+','utf-8'))a = u'\xc9' csvfile.writerow([a,a]) -It fails with the message: UnicodeEncodeError: 'ascii

Re: Seaching Active Directory via ADO

2006-02-17 Thread Rudy Schockaert
You could also use the excellent active_directory module of Tim Golden (http://tgolden.sc.sabren.com/python/active_directory.html)Your query would then become: import active_directoryfor person in active_directory.search ("objectClass='user'","name='Roger*'"): print person.displayName On 2/17/06,

Re: Difference between ActivePython and Python.org

2005-12-14 Thread Rudy Schockaert
Activestate just bundles teh standard python with the pywin32 module of Mark Hammond and provides the documentation in a handy one-file CHM format.Besides that there is  no difference as far as I know. On 12/14/05, S.Chang <[EMAIL PROTECTED]> wrote: Hi,Anyone knows the difference(s) between the Pyt

Re: AJAX => APAX? Or: is there support for python in browsers?

2005-11-15 Thread Rudy Schockaert
Indeed, and a huge success in the TurboGears project. Check it out.On 11/15/05, Larry Bates <[EMAIL PROTECTED] > wrote:Roger Erens wrote:> Hello,>> I remember that the first time I read about Python as a programming > language was when reading the W3C's HTML 4.01 specification a few years> ago. In

Re: Perl's documentation come of age

2005-09-21 Thread Rudy Schockaert
• Do think clearly before writing. You should start thinking before you write something. Do you really think anyone takes you serious the way you talk?I haven't seen anything constructive yet from your side. You always have to comment, why don't you start writing documentation yourself if it bothe