ANN: python-ldap-2.3.10

2009-11-01 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com -- http://mail.python.org/mailman/listinfo/python-list

Publishing new release on PyPI: How?

2009-10-30 Thread Michael Ströder
HI! Well, maybe I'm completely blind but I can't find a way to add a new release to PyPI index for python-ldap, not just a new file to an existing release version. I'm the project owner and I did it several times in the past. But I simply can't find the button where to add another release. Was

Error building Python 2.6.3 and 2.6.4rc2

2009-10-24 Thread Michael Ströder
HI! I'm on a openSUSE system where Python 2.6 is installed from RPMs. I'm trying to build Python from source separately. This used to work in former versions but fails now (see build traceback below). Anyone having a clue what's going on here? Is there a possible work-around? A possible conflict

Re: Error building Python 2.6.3 and 2.6.4rc2

2009-10-24 Thread Michael Ströder
Christian Heimes wrote: Michael Ströder wrote: - snip - /usr/src/Python-2.6.4rc2 make 'import site' failed; use -v for traceback Traceback (most recent call last): File ./setup.py, line 15, in module from

Re: Is it possible to use python to get True Full Duplex on a Serial port?

2009-08-15 Thread Michael Ströder
Hendrik van Rooyen wrote: In the past, on this group, I have made statements that said that on Linux, the serial port handling somehow does not allow transmitting and receiving at the same time, and nobody contradicted me. Despite all the good comments here by other skilled people I'd

Re: unicode() vs. s.decode()

2009-08-08 Thread Michael Ströder
Thorsten Kampe wrote: * Steven D'Aprano (08 Aug 2009 03:29:43 GMT) But why assume that the program takes 8 minutes to run? Perhaps it takes 8 seconds to run, and 6 seconds of that is the decoding. Then halving that reduces the total runtime from 8 seconds to 5, which is a noticeable speed

Re: unicode() vs. s.decode()

2009-08-06 Thread Michael Ströder
Thorsten Kampe wrote: * Michael Ströder (Wed, 05 Aug 2009 16:43:09 +0200) These both expressions are equivalent but which is faster or should be used for any reason? u = unicode(s,'utf-8') u = s.decode('utf-8') # looks nicer decode was added in Python 2.2 for the sake of symmetry

Re: unicode() vs. s.decode()

2009-08-06 Thread Michael Ströder
Thorsten Kampe wrote: * Michael Ströder (Thu, 06 Aug 2009 18:26:09 +0200) timeit.Timer(unicode('äöüÄÖÜß','utf-8')).timeit(1000) 17.23644495010376 timeit.Timer('äöüÄÖÜß'.decode('utf8')).timeit(1000) 72.087096929550171 That is significant! So the winner is: unicode('äöüÄÖÜß','utf-8

unicode() vs. s.decode()

2009-08-05 Thread Michael Ströder
HI! These both expressions are equivalent but which is faster or should be used for any reason? u = unicode(s,'utf-8') u = s.decode('utf-8') # looks nicer Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

64-bit issues with dictionaries in Python 2.6

2009-07-29 Thread Michael Ströder
HI! Are there any known issues with dictionaries in Python 2.6 (not 2.6.2) when running on a 64-bit platform? A friend of mine experiences various strange problems with my web2ldap running with Python 2.6 shipped with openSUSE 11.1 x64. For me it seems some dictionary-based internal registries

ANN: python-ldap-2.3.9

2009-07-27 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com Released 2.3.9 2009-07-26 Changes since 2.3.8: Lib/ * All modules (ldap, ldif, dsml and ldapurl) have

Re: python-ldap

2009-07-09 Thread Michael Ströder
on the download page above). Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Open source python projects

2009-06-23 Thread Michael Ströder
project I'd rather recommend that you contribute to projects you're using for your own daily work. Why? Because you simply know what's really needed if you deploy a software yourself. Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com -- http://mail.python.org

ANN: python-ldap-2.3.8

2009-04-30 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com Released 2.3.8 2009-04-30 Changes since 2.3.7: Lib/ * ldap.schema.models: More fault-tolerant parsing

ANN: python-ldap-2.3.8

2009-04-30 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com Released 2.3.8 2009-04-30 Changes since 2.3.7: Lib/ * ldap.schema.models: More fault-tolerant parsing

ANN: python-ldap-2.3.7

2009-04-10 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Note that the download page has changed recently. You can now find the source distribution at PyPI: http://pypi.python.org/pypi/python-ldap/ Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com

ANN: python-ldap-2.3.7

2009-04-10 Thread Michael Ströder
. processing LDIF, LDAPURLs and LDAPv3 schema). Note that the download page has changed recently. You can now find the source distribution at PyPI: http://pypi.python.org/pypi/python-ldap/ Ciao, Michael. -- Michael Ströder E-Mail: mich...@stroeder.com http://www.stroeder.com

Re: Read a content file from a P7M

2009-03-20 Thread Michael Ströder
Emanuele Rocca wrote: On 11/03/09 - 05:05, Luca wrote: There is standard or sugested way in python to read the content of a P7M file? I don't need no feature like verify sign, or sign using a certificate. I only need to extract the content file of the p7m (a doc, a pdf, ...) For PDF

Re: Read a content file from a P7M

2009-03-20 Thread Michael Ströder
Luca wrote: On Wed, Mar 11, 2009 at 5:05 PM, Luca luca...@gmail.com wrote: There is standard or sugested way in python to read the content of a P7M file? I don't need no feature like verify sign, or sign using a certificate. I only need to extract the content file of the p7m (a doc, a pdf,

Re: ldap package question

2009-03-17 Thread Michael Ströder
John Gordon wrote: I'm using the ldap package to connect to an ldap server and run a query. Very simple code, along these lines: con = ldap.initialize(uri) con.simple_bind_s(user, password) results = con.search_s(group, ldap.SCOPE_SUBTREE, filter, attrs) for r in results: #

Re: Ldap Extended Operation python

2009-01-26 Thread Michael Ströder
Benny Fallica wrote: Hello there, what would be the python implementation for this line in Java: java.util.Hashtable environment = LdapHelper.getEnvironment(url, true); LdapContext ldapContext = new InitialLdapContext(environment, null); Response resp = (Response)

Re: EBCDIC -- ASCII

2008-12-05 Thread Michael Ströder
[EMAIL PROTECTED] wrote: On Dec 4, 4:45 pm, Michael Ströder [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I'm having a problem trying to use the codecs package to aid me in converting some bytes from EBCDIC into ASCII. Which EBCDIC variant? sEBCDIC = unicode(sSource, 'cp500', 'ignore

Re: EBCDIC -- ASCII

2008-12-04 Thread Michael Ströder
[EMAIL PROTECTED] wrote: I'm having a problem trying to use the codecs package to aid me in converting some bytes from EBCDIC into ASCII. Which EBCDIC variant? sEBCDIC = unicode(sSource, 'cp500', 'ignore') Are you sure CP500 is the EBCDIC variant for the language you want?

Re: python openssl x509 CA

2008-10-31 Thread Michael Ströder
Paul Rubin wrote: Marcin Jurczuk [EMAIL PROTECTED] writes: I want to create pure python implementation without use of openssl wrapped with python code. There was a CA written in Python quite a while back, http://pyca.de . That was the usual approach with invoking the openssl command-line

Re: python-ldap reading an OU with more than 1000 objects

2008-10-18 Thread Michael Ströder
Erick Perez - Quadrian Enterprises, S.A. wrote: I have a MS Windows AD domain, and have one OU with more tan 1000 users objects. When I try to read it, I hit the 1000 limit of AD while returning objects, so I'm asking for advice as to how to read them. IIRC with MS AD you can circumvent this

Re: Split entries from LDAP

2008-10-13 Thread Michael Ströder
Lars wrote: I'm trying to create a script that creates a variable list (just a txt file to be included in bash scripts) with hosts from LDAP. What exactly do you want to do? I'd recommend against passing a custom text format around. Use either LDIF or CSV with decent modules. The file will

Re: Python 2.5.3: call for patches

2008-10-10 Thread Michael Ströder
[EMAIL PROTECTED] wrote: On Oct 7, 9:27 am, Martin v. Löwis [EMAIL PROTECTED] wrote: In principle, the release will include all changes that are already on the release25-maint branch in subversion [1]. If you think that specific changes should be considered, please create an issue in the bug

Re: generate random digits with length of 5

2008-09-28 Thread Michael Ströder
Gary M. Josack wrote: Aaron Castironpi Brady wrote: On Sep 28, 2:59 pm, sotirac [EMAIL PROTECTED] wrote: Wondering if there is a better way to generate string of numbers with a length of 5 which also can have a 0 in the front of the number. pre random_number =

Lotus Domino and Python via DIIOP or similar?

2008-09-25 Thread Michael Ströder
HI! Anybody here with experience in accessing Lotus Domino with Python via DIIOP? In particular I'd like to be able to register Notes users with a Python script. Preferrably without having to use Win32 COM although it would be better than nothing. Adding address Notes book entries via LDAP is

Re: Can anyone suggest a good crypto package?

2008-09-04 Thread Michael Ströder
Fett wrote: On Sep 4, 2:23 pm, Mike Driscoll [EMAIL PROTECTED] wrote: How about M2Crypto:http://chandlerproject.org/Projects/MeTooCrypto#Downloads Seems that this is intended more for webapps or something, Why do you think so? It's a C wrapper module around the OpenSSL crypto libs. Ciao,

Split function for host:port in standard lib

2008-08-26 Thread Michael Ströder
HI! Is there a function in the standard lib which can be used to split a string containg 'host:port' into a tuple (host,port) and also does this reliably for IPv6 addresses? Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python LDAP

2008-08-26 Thread Michael Ströder
Juan wrote: self.conn = ldap.initialize(self.host, self.port) [..] LDAPError: (2, 'No such file or directory') You have to pass in a LDAP URI as documented here: http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.initialize Use of compability function ldap.open() is deprecated

Re: Fixed-length text file to database script

2008-08-14 Thread Michael Ströder
Larry Bates wrote: While you are correct, that is not what the OP asked. There is no reference to processing data prior to insertion into MySQL database. Also the OP said they had a 1 day deadline. Larry, having a bad day? I'm confident that the OP is able to sort out *himself* what he

Re: Fixed-length text file to database script

2008-08-13 Thread Michael Ströder
Larry Bates wrote: [EMAIL PROTECTED] wrote: I have a machine (PLC) that is dumping its test results into a fixed- length text file. I need to pull this data into a database (MySQL most likely) so that I can access it with Crystal Reports to create daily reports for my engineers. [..] I need to

Re: Inserting cookies into a web session

2008-07-24 Thread Michael Ströder
John Gordon wrote: I'm developing a web application that needs a semi-persistent way to store information. I've looked at some options such as writing entries to a database table or creating small textfiles, but I'm not thrilled with anything I've come up with so far. What's the problem?

Re: need ldap windows binary and/or installation help

2008-07-15 Thread Michael Ströder
Tim Golden wrote: Sells, Fred wrote: I'm running python 2.5 (or 2.4) in an XP environment. I downloaded and installed the .dll's from OpenLDAP-2.4.8+OpenSSL-0.9.8g-Win32.zip and copied the .dll's in c:/windows/system32 as instructed now I get this error. Is there anyway to avoid building the

Re: windows active directory ldap output encoding

2008-07-08 Thread Michael Ströder
jo3c wrote: Im trying to get some information out of a windows sever 2003 chinese active directory system so let's say encoding is probably big5 or utf-8 The Unicode encoding of LDAP attributes with syntax Directory String is always UTF-8 (e.g. attributes 'cn', 'sn', 'givenName' or

Re: windows active directory ldap output encoding

2008-07-08 Thread Michael Ströder
Michael Ströder wrote: jo3c wrote: Im trying to get some information out of a windows sever 2003 chinese active directory system so let's say encoding is probably big5 or utf-8 The Unicode encoding of LDAP attributes with syntax Directory String is always UTF-8 (e.g. attributes 'cn', 'sn

ANN: python-ldap-2.3.5

2008-07-06 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

ANN: python-ldap-2.3.5

2008-07-06 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

Re: Parsing MIME-encoded data in an HTTP request

2008-07-05 Thread Michael Ströder
Ron Garret wrote: In article [EMAIL PROTECTED], Ron Garret [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Michael Ströder [EMAIL PROTECTED] wrote: Ron Garret wrote: I'm writing a little HTTP server and need to parse request content that is mime-encoded. All the MIME routines

Re: imap4_SSL from behind a proxy server

2008-07-04 Thread Michael Ströder
Diez B. Roggisch wrote: Dave schrieb: I'm trying write some Python code to connect to Gmail from work, where I need to direct all non-HTTP traffic through a proxy server. AFAIK that's simply not possible. It's possible. Proxying that is not transparent is only (for practical matters,

Re: Parsing MIME-encoded data in an HTTP request

2008-07-04 Thread Michael Ströder
Ron Garret wrote: I'm writing a little HTTP server and need to parse request content that is mime-encoded. All the MIME routines in the Python standard library seem to have been subsumed into the email package, which makes this operation a little awkward. How about using

Re: images on the web

2008-06-20 Thread Michael Ströder
Matt Nordhoff wrote: Matt Nordhoff wrote: You could use data: URIs [1]. For example, a 43-byte single pixel GIF becomes this URI: data:image/gif;base64,R0lGODlhAQABAIAAAP%2F%2F%2F%2F%2F%2F%2FyH5BAEAAAEALAABAAEAAAICTAEAOw%3D%3D They don't have universal browser support, but that might not

Re: images on the web

2008-06-20 Thread Michael Ströder
chris wrote: I'm creating a data plot and need to display the image to a web page. What's the best way of doing this without having to save the image to disk? I already have a mod_python script that outputs the data in tabular format, but I haven't been able to find anything on adding a

Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Michael Ströder
HI! I'd like to hear from the Python community whether support for Python version prior to 2.3 is still needed in python-ldap. Please tell me which Python version you're using and why it'd be important for you to have python-ldap updates still supporting it. BTW: Actually older Python

Re: investigate python auth problem

2008-06-09 Thread Michael Ströder
David Hláčik wrote: I have reproduced steps, to show you sample on another module and its results in INN (becouse i really like to solve this :) Since I don't see anything related to python-ldap please don't follow-up on python-ldap-dev mailing list (removed it from Cc:). Thank you. If

Register codec dynamically without copying module to lib/python/encodings/

2008-06-05 Thread Michael Ströder
HI! I have a simple codec module for T.61 which principally works. I'd like to use this codec without having to copy the module to lib/python/encodings/. Is that possible? Can I can extend the encodings search path or register the module by calling a function? Ciao, Michael. --

Re: ThreadPoolingMixIn

2008-06-02 Thread Michael Ströder
[EMAIL PROTECTED] wrote: To benchmark this I used a simple tcp server which writes a small (16k) string to the client and closes the connection. Just a general note: When benchmarking such a network service it would be valuable to see benchmark results for several data sizes. I'd expect

Re: config files in python

2008-05-05 Thread Michael Ströder
sandipm wrote: In my application, I have some configurable information which is used by different processes. currently I have stored configration in a conf.py file as name=value pairs, and I am importing conf.py file to use this variable. it works well import conf print conf.SomeVariable but

Re: python-ldap - Operations Error

2008-04-25 Thread Michael Ströder
[EMAIL PROTECTED] wrote: Thanks for the help guys, it works! I used the ldap.set_option(ldap.OPT_REFERRALS, 0) from http://peeved.org/blog/2007/11/20/ Hmm, maybe I should generally switch off referral chasing in python-ldap forcing applications to enable it if needed overriding libldap's

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
Jason Scheirer wrote: On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote: Hello all, I am trying to integrate TurboGears with our Active Directory here at the office. TurboGears aside, i cannot get this to work. Seems more promising: http://tgolden.sc.sabren.com/python/active_directory.html This

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
[EMAIL PROTECTED] wrote: import ldap l = ldap.initialize(ldap://server.net;) l.simple_bind(DN, secret) 1 ^^^ You probably want to use the synchronous method simple_bind_s() since you want to impersonate on this LDAP connection immediately before doing anything else on that

Re: python-ldap: searching without specifying an OU?

2008-04-24 Thread Michael Ströder
hotani wrote: http://peeved.org/blog/2007/11/20/ BTW: This blog entry claims that LDAP_SERVER_DOMAIN_SCOPE_OID control cannot be used with python-ldap. But support for such simple LDAPv3 extended controls was added to python-ldap way back in 2005. Actually it's easy (relevant code

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder
hotani wrote: Thanks for the response. The user I'm connecting as should have full access but I'll double check tomorrow. This is the LDAP error that is returned when I leave out the OU: {'info': ': LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder
hotani wrote: This fixed it! http://peeved.org/blog/2007/11/20/ By adding this line after 'import ldap', I was able to search from the root level: ldap.set_option(ldap.OPT_REFERRALS, 0) Uumh, yes. I'm always switching off OpenLDAP client lib's internal referral chasing. But be prepared to

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder
hotani wrote: It seems the only way I can bind is by using this format: simple_bind_s('[EMAIL PROTECTED]','password') Believe me: This is not true. If I try using a DN, it fails every time. This will not work: simple_bind_s('cn=user,dc=server,dc=local', 'password') Check the DN you're

Re: python-ldap: searching without specifying an OU?

2008-04-22 Thread Michael Ströder
hotani wrote: I am attempting to pull info from an LDAP server (Active Directory), but cannot specify an OU. In other words, I need to search users in all OU's, not a specific one. If the user you're binding with has the right in AD to search the whole subtree you can start searching at the

Re: Remote mac address

2008-04-14 Thread Michael Ströder
Matias Surdi wrote: Anyone knows how having the IP address of a host on the lan could I get the mac address of that hosr? p/d: Parsing the output of arp -a is not an option. But the ARP table is exactly what you need to access. This is probably system-specific. You could also try to

Re: ldap

2008-04-07 Thread Michael Ströder
[EMAIL PROTECTED] wrote: Searching on the web I know that exists PythonLdap, but I dont'know if this is best choise or not. http://python-ldap.sf.net is the most complete implementation I know of. (Being the maintainer I might be biased.) It has the caveat of depending on the OpenLDAP client

Re: object-relational mappers

2008-04-04 Thread Michael Ströder
M.-A. Lemburg wrote: On 2008-04-01 22:40, Aaron Watters wrote: I've been poking around the world of object-relational mappers and it inspired me to coin a corellary to the the famous quote on regular expressions: You have objects and a database: that's 2 problems. So: get an

ANN: python-ldap-2.3.4

2008-03-29 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

ANN: python-ldap-2.3.2

2008-03-26 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

Re: Some notes on a high-performance Python application.

2008-03-26 Thread Michael Ströder
Heiko Wundram wrote: Am Mittwoch, 26. März 2008 17:33:43 schrieb John Nagle: ... Using MySQL as a queueing engine across multiple servers is unusual, but it works well. It has the nice feature that the queue ordering can be anything you can write in a SELECT statement. So we put fair

How to convert latex-based docs written with Python 2.5 to 2.6 framework

2008-03-26 Thread Michael Ströder
HI! I had a look on how Doc/ is organized with Python 2.6. There are files with suffix .rst. Hmm... I'm maintaing existing docs for python-ldap which I might have to convert to the new concept in the long run. What's the recommended procedure for doing so? Any pointer? Ciao, Michael. --

Re: python-ldap for plone 3 (python 2.4.4)

2008-02-21 Thread Michael Ströder
Erol Robaina Cepero wrote: On 19/02/2008 at 07:12 p.m. Michael Ströder wrote: Erol Robaina Cepero wrote: I need download python-ldap for my plone 3.0.5 that use python 2.4.4. Do you know where I can find it? http://python-ldap.sourceforge.net/download.shtml There I found the version

Re: python-ldap for plone 3 (python 2.4.4)

2008-02-19 Thread Michael Ströder
Erol Robaina Cepero wrote: I need download python-ldap for my plone 3.0.5 that use python 2.4.4. Do you know where I can find it? http://python-ldap.sourceforge.net/download.shtml Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption Recommendation

2008-01-29 Thread Michael Ströder
Diez B. Roggisch wrote: [EMAIL PROTECTED] wrote: I'm still using Python 2.4. In my code, I want to encrypt a password and at another point decrypt it. What is the standard way of doing encryption in python? Is it the Pycrypto module? Usually, one doesn't store clear-text passwords.

Re: Is there a string function to trim all non-ascii characters out of a string

2007-12-31 Thread Michael Ströder
[EMAIL PROTECTED] wrote: Is there a string function to trim all non-ascii characters out of a string? Let say I have a string in python (which is utf8 encoded), is there a python function which I can convert that to a string which composed of only ascii characters? I'd recommend to rethink

Re: lotus nsf to mbox

2007-12-19 Thread Michael Ströder
Adam Lanier wrote: Brian Munroe schrieb am 12/15/2007 07:10 PM: If you really need to do it from Linux and are lucky enough to be running the IIOP task on your Domino server, then you could possibly use CORBA. You could always enable the IMAP interface on the Domino machine and use

Re: Running unmodified CGI scripts persistently under mod_wsgi.

2007-12-08 Thread Michael Ströder
Jeffrey Froman wrote: I'd still be interested in a mod_wsgi wrapper for 3rd-party CGI scripts. I doubt that this is possible, not because of the interface. But conventional CGI scripts are implemented with the assumption of being stateless. You would have to completely reinitialize them for

Re: [OT] minimalist web server

2007-12-02 Thread Michael Ströder
Paul Rubin wrote: from SimpleHTTPServer import SimpleRequestHandler handler = HTTPServer (('', 8000), SimpleRequestHandler) I think you mean SimpleHTTPRequestHandler. Note that actually reads the url path and looks in the file system to get the file of that name, which isn't what the OP

Re: Get Only the Last Items in a Traceback

2007-09-12 Thread Michael Ströder
[EMAIL PROTECTED] wrote: I'm running code via the exec in context statement within a much larger program. What I would like to do is capture any possible errors and show a pretty traceback just like the Python interactive interpreter does, but only show the part of the traceback relating to

Re: FCGI app reloading on every request

2007-09-05 Thread Michael Ströder
John Nagle wrote: Tried putting this in the .htaccess file: Files *.fcgi SetHandler fcgid-script Options ExecCGI allow from all /Files Files *.foo ErrorDocument 403 File type not supported. /Files Even with that, a .foo file gets executed as a CGI script, and so does a

Re: FCGI app reloading on every request

2007-09-05 Thread Michael Ströder
John Nagle wrote: This is running on a dedicated server at APlus.net, running Red Hat Fedora Core 6, Python 2.5, and managed with Plesk 8.2. I just turned on fcgid from the Plesk control panel (Physical hosting setup page for domain, checked FastCGI), and enabled the standard FCGI

Re: FCGI app reloading on every request

2007-09-04 Thread Michael Ströder
John Nagle wrote: What's actually happening is that FCGI isn't running at all. My .fcgi file is being executed by Apache's CGI handler, and fcgi.py recognizes this, then reads the parameters as if a CGI program. So it works just like a CGI program: one load per request. Not sure why

Re: python setup.py: how to override a setup.cfg value ?

2007-08-24 Thread Michael Ströder
Chris Shenton wrote: I'm building python-ldap and need to change values of library and include paths that are in the setup.cfg file. This is an automated build (using buildit) so I'd prefer not to have edit the .cfg by hand, with sed, or even with buildit's Substitute(). Almost everything in

ANN: python-ldap-2.3.1

2007-07-25 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

ANN: python-ldap-2.3.1

2007-07-25 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

Re: python-ldap for Python 2.5 on Windows?

2007-06-09 Thread Michael Ströder
Waldemar Osuch wrote: On Jun 8, 6:36 am, Benedict Verheyen [EMAIL PROTECTED] wrote: Hi, i found python-ldap for version Python 2.4. Is there i place i can find a version for 2.5? If not, how can i build it myself for Windows? I have managed to build it for myself using MinGW:

Re: python-ldap for Python 2.5 on Windows?

2007-06-08 Thread Michael Ströder
Benedict Verheyen wrote: i found python-ldap for version Python 2.4. Is there i place i can find a version for 2.5? If not, how can i build it myself for Windows? Depending on what you need you might want to dive into OpenLDAP's FAQ: http://www.openldap.org/faq/data/cache/300.html There

Re: Python Web Programming - looking for examples of solid high-traffic sites

2007-05-22 Thread Michael Ströder
John Nagle wrote: Sure they do. I have a complex web site, http://www.downside.com;, that's implemented with Perl, Apache, and MySQL. It automatically reads SEC filings and parses them to produce financial analyses. It's been running for seven years, and hasn't been modified in five,

ANN: python-ldap-2.3.0

2007-03-27 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

Re: using python to query active directory

2007-03-07 Thread Michael Ströder
David Bear wrote: Is it possible to use python to make calls agains microsoft active directory? What do you mean with calls agains microsoft active directory? Querying user and computer entries etc.? python-ldap might be an option for you. Ciao, Michael. --

Re: LDAP/LDIF Parsing

2007-02-05 Thread Michael Ströder
Bruno Desthuilliers wrote: If you know which attributes are supposed to be multivalued in your specific application, then it's time to write a more serious, application-specific wrapper. ldap.schema can be used to find that out. Ciao, Michael. --

Re: LDAP/LDIF Parsing

2007-02-02 Thread Michael Ströder
Cruelemort wrote: I was wondering the best way to do this? I have installed and used the python-ldap libraries and these allow me to access and search the server, but the searches always return a horrible nesting of lists, tuples and dictionaries, below is an example of returning just one

Re: py-ldap question

2006-12-12 Thread Michael Ströder
Laszlo Nagy wrote: l = ldap.initialize(ldaps://neptunus.msnet:636) [..] ldap.SERVER_DOWN: {'info': 'error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', 'desc': Can't contact LDAP server} I think that I need to specify to the openldap client to trust the

Re: ldapsearch example in python-ldap?

2006-11-23 Thread Michael Ströder
Nico Grubert wrote: on a linux machine I am running this ldapsearch from the command line: ldapsearch -x -h myldaphost.mydomain.com \ -D CN=ldapuser,CN=Users,DC=mydomain,DC=com -w secret \ -b CN=ANYCOMPUTER,CN=Computers,DC=mydomain,DC=com How can I do this with python-ldap?

Re: Python v PHP for web, and restarting Apache?

2006-11-17 Thread Michael Ströder
walterbyrd wrote: I think I have read somewhere that using Python to develop web-applications requires some restarting of the Apache server, whereas PHP does not. Using Python to develop web-applications is a very broad topic. E.g. you don't have to restart Apache if you develop simple

Re: python-ldap and Python 2.5

2006-11-16 Thread Michael Ströder
Michael Ströder wrote: But this seems to help (tested on my local system): http://sourceforge.net/tracker/index.php?func=detailaid=1575329group_id=2072atid=102072 Released python-ldap 2.2.1 yesterday which contains this fix. Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python

ANN: python-ldap-2.2.1

2006-11-16 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

python-ldap and Python 2.5 (was: Python 2.5 Core Dump on Solaris 8)

2006-11-15 Thread Michael Ströder
Martin v. Löwis wrote: Melissa Evans schrieb: I've modified grappy.py, http://www.stacken.kth.se/~mattiasa/projects/grappy/, a postfix policy daemon for greylisting. to use LDAP as a backend instead of SQL (with python-ldap.) The daemon runs fine when testing but when I put it under load it

Re: python-ldap/win32 or python/ldap/win32

2006-11-06 Thread Michael Ströder
rcmn wrote: i'm running around in circle trying to to use python/ldap/ on win32(WinXP). Maybe this message sent to the python-ldap-dev mailing list helps. You're welcome to follow up on this list. Ciao, Michael. Original Message Subject: Experimental 2.2.0 Windows Build

Re: Obtaining SSL certificate info from SSL object - BUG?

2006-10-26 Thread Michael Ströder
John Nagle wrote: The Python SSL object offers two methods from obtaining the info from an SSL certificate, server() and issuer(). The actual values in the certificate are a series of name/value pairs in ASN.1 binary format. But what server() and issuer() return are strings, with the

Re: Obtaining SSL certificate info from SSL object - BUG?

2006-10-26 Thread Michael Ströder
Donn Cave wrote: In article [EMAIL PROTECTED], John Nagle [EMAIL PROTECTED] wrote: Note that OU=Terms of use at www.verisign.com/rpa (c)00 with a / in the middle of the value field. ... Is there a workaround for this? Without rebuilding Python and becoming incompatible? As a

Re: SSL follow up

2006-10-26 Thread Michael Ströder
Paul Rubin wrote: To dump out the certificate? Try: openssl x509 -text -in filename.crt if the cert is in a file. Omit that -in parameter if you want openssl to read from stdin. Of course now you get this other text format thing to parse, but it's not so bad. I wouldn't recommend

Re: UTF-8 to unicode or latin-1 (and yes, I read the FAQ)

2006-10-19 Thread Michael Ströder
[EMAIL PROTECTED] wrote: print 'K\xc3\xb6ni'.decode('utf-8') and this line raised a UnicodeDecode exception. Works for me. Note that 'K\xc3\xb6ni'.decode('utf-8') returns a Unicode object. With print this is implicitly converted to string. The char set used depends on your console Check

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Michael Ströder
[EMAIL PROTECTED] wrote: Fredrik you need tools to help you track the bugs and their status, but Fredrik you can handle issue registration, discussion, and most Fredrik maintenance stuff using good old mail just fine. Which is something SourceForge has yet to learn. At work we

Re: Python to use a non open source bug tracker?

2006-10-09 Thread Michael Ströder
Paul Rubin wrote: [EMAIL PROTECTED] writes: Which is something SourceForge has yet to learn. At work we use a system called RT (http://www.bestpractical.com/rt/). While it's not perfect, it does allow submissions and responses via email. That feature alone puts it miles ahead of SF in my

Re: Python to use a non open source bug tracker?

2006-10-06 Thread Michael Ströder
Ilias Lazaridis wrote: You need just 2 active contributors - and the python community, not more Hmm, this number does not say much. It really depends on the required service level and how much time these two people can spend for maintaining the tracker service. Ciao, Michael. --

<    1   2   3   >