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

2006-10-05 Thread Michael Ströder
Giovanni Bajo wrote: Martin, I am by no means understimating Daniel's work. I am just noting that the spare-time work he did is, by definition, much much lower than the 6-10 people that the PSF infrastructure committee is calling for. I would like this statement to be officially reduced to

Re: Pythondocs.info : collaborative Python documentation project

2006-09-18 Thread Michael Ströder
[EMAIL PROTECTED] wrote: That's why I have started a collaborative project to make a user contributed Python documentation. The wiki is online here: http://www.pythondocs.info Frankly I'm tired of these yet-another-wiki announcements! Who is supposed to fill them with content? If you have

Re: working with ldap files

2006-09-04 Thread Michael Ströder
flit wrote: I am struggling with some ldap files. More general you are struggling with multiple attribute values of DN syntax stored in a single field of a CSV file. I am using the csv module to work with this files (I exported the ldap to a csv file). I guess you have MS AD and used MS

Re: [newbie]apache authentication questions

2006-06-13 Thread Michael Ströder
Steve Holden wrote: [EMAIL PROTECTED] wrote: It is not impossible though and in cases where you don't have a choice but to use a HTTP authentication scheme, use of AJAX may be the answer to still allowing use of a form based login scheme. See:

Re: Active Directory Authentication

2006-05-06 Thread Michael Ströder
Stephan Diehl wrote: On Fri, 05 May 2006 05:39:08 -0700, D wrote: Is it possible to have Python authenticate with Active Directory? Specifically what I'd like to do is have a user enter a username/password, then have Python check the credentials with AD - if what they entered is valid, for

ANN: python-ldap-2.2.0

2006-04-09 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: ldap usage

2006-03-31 Thread Michael Ströder
Jed Parsons wrote: Which LDAP server are you using? You can switch off this behaviour with OpenLDAP. See man 5 slapd.conf, allow features. I don't have anything other than user access. Good to know about this feature, though. In case you're programming for different LDAP servers it's

Re: ldap usage

2006-03-30 Thread Michael Ströder
Jed Parsons wrote: As an addendum, I discovered one little gotcha, namely that this: l.bind_s(username, password, ldap.AUTH_SIMPLE) throws an ldap.INVALID_CREDENTIALS error if the password contains the wrong text, but works if the password is empty. I guess this is tantamount to

Re: ldap usage

2006-03-29 Thread Michael Ströder
Jed Parsons wrote: import ldap l = ldap.open('our.ldap.server') try: l.bind_s(username, password, ldap.AUTH_SIMPLE) authenticated = True except: authenticated = False ^^^ Identiation is wrong here. Also I'd recommend to catch the ldap.LDAPError

Re: Embedding an Application in a Web browser

2006-02-14 Thread Michael Ströder
bruno at modulix wrote: rodmc wrote: Is it possible to embed a Python application within Internet explorer? No. Nor in any other browser (except from Grail, but I think this doesn't count). I remember there was a project for running CGI-BIN-like programs directly in Mozilla without a web

Re: Webmail with Python

2006-02-06 Thread Michael Ströder
Paul Rubin wrote: Thomas Guettler [EMAIL PROTECTED] writes: Yes, Zope or Plone are to heavyweight for this. I will use squirrelmail, I think it stable. I hope that I don't need to touch the PHP code. Be careful, Squirrelmail had some annoying privacy bugs which the maintainers (as of the

Re: Authenticating to Kerberos

2006-01-30 Thread Michael Ströder
the same password as the Kerberos Domain Controller (e.g. MS AD or heimdal KDC with OpenLDAP backend). Ciao, Michael. -- Michael Ströder E-Mail: [EMAIL PROTECTED] http://www.stroeder.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Suggestions for workaround in CSV bug

2006-01-24 Thread Michael Ströder
Simmons, Stephen wrote: I've come across a bug in CSV where the csv.reader() raises an exception if the input line contains '\r'. Example code and output below shows a test case where csv.reader() cannot read an array written by csv.writer(). Error: newline inside string WARNING:

Re: Convert Active Directory Object to string

2006-01-19 Thread Michael Ströder
Dirk Hagemann wrote: What I want to do in the end is the following: I get some data from Active Directory, then I create a SQL-statement including this data and write this into the database. Which API and protocol are you using to access Active Directory? If you access it via LDAP (e.g.

Re: ldap passwd need help

2006-01-19 Thread Michael Ströder
Sells, Fred wrote: I've got the ldap stuff working for groups, but now I'm trying to use it to change a user password. I get a return of 2 and no error messages but it does not change ldap. Could you please post a complete Python traceback? If you mean 2 being the LDAP error code this is

Re: SuSe 10.0 missing Idle

2005-11-11 Thread Michael Ströder
Joseph Garvin wrote: SuSE probably has a seperate package, something like python-tk, that will install IDLE. # rpm -qf `which idle` python-idle-2.4.1-3 Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

ANN: python-ldap-2.0.11

2005-11-07 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.0.11

2005-11-07 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: Documentation for iteration in mappings

2005-10-25 Thread Michael Ströder
Dennis Benzinger wrote: I must be blind because I didn't find anything in the documentation which says iterating over an dictionary iterates over its keys. For example a_dictionary = {0: zero, 1: one} for x in a: print x gives you 0 1 Where is this information hidden? :)

Re: Web based applications are possible with wxPython?

2005-10-25 Thread Michael Ströder
HI! Shameless plug: I'm looking for the opposite way. I'd like to run a web application within a pseudo-browser in wxPython without the need to start a web server. Is that possible with a thin wrapper? Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: Send password over TCP connection

2005-10-13 Thread Michael Ströder
dcrespo wrote: Ok, I understand it. What about the MD5? Is it good enough to use when saving a hashed password on the database? For example: user_input = raw_input(Type your password: ) password = md5.md5(user_input).hexdigest() SavePasswordInDatabase(user,password) It would be better

Re: Jargons of Info Tech industry

2005-10-10 Thread Michael Ströder
Rich Teer wrote: On Sun, 9 Oct 2005, Roedy Green wrote: Normally you send photos to grandma with captions under each photo. That is far more convenient for the technopeasant receiver than dealing with multiple attachments. And even more convenient is Hey grandma, check out the latest photos

Re: Send password over TCP connection

2005-10-10 Thread Michael Ströder
Dan Stromberg wrote: On Mon, 10 Oct 2005 15:13:14 -0700, Paul Rubin wrote: Use SRP if you can. Where can I learn more about this? http://www.faqs.org/rfcs/rfc2945.html Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: Fixes since 2.4.2c1?

2005-09-30 Thread Michael Ströder
Martin v. Löwis wrote: Michael Ströder wrote: Does that differ from 2.4.2c1? On Monday I noticed a crash in the test suite on a box running Solaris 8. It seems I can build Python 2.4.1 and run make test there without problems. There is also a chance that you found a compiler bug. So

Fixes since 2.4.2c1? (was: RELEASED Python 2.4.2 (final))

2005-09-28 Thread Michael Ströder
Anthony Baxter wrote: On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.4.2 (final). Does that differ from 2.4.2c1? On Monday I noticed a crash in the test suite on a box running Solaris 8. It seems I can build Python 2.4.1 and run

Re: RE + UTF-8

2005-09-24 Thread Michael Ströder
[EMAIL PROTECTED] wrote: I have tried to test RE and UTF-8 in Python generally and the results are even more confusing (done with locale cs_CZ.UTF-8 in konsole): locale.getpreferredencoding() 'UTF-8' print re.sub((\w*),X,[Chelcický],re.L) You first have to turn the raw strings into

ANN: python-ldap-2.0.10

2005-09-23 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.0.10

2005-09-23 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: Secure email

2005-08-04 Thread Michael Ströder
[EMAIL PROTECTED] wrote: I need to write a .cgi that will take the content of an https GET or POST and send it securely as email to an Outlook client. I think that OpenSSL is somewhere in this, but I'm not even sure how to create the right certificate, how to use it to encrypt mail and how

Re: Secure email

2005-08-04 Thread Michael Ströder
Martin P. Hellwig wrote: I think you want this more common approach for mail encryption: server: https CGI form -- mail wrapper -- PGP encryption/signing -- send client: recieve mail -- pgp decryption/verification -- read This would require an additional PGP-plugin for Outlook. Outlook

Re: Secure email

2005-08-04 Thread Michael Ströder
Martin P. Hellwig wrote: Michael Ströder wrote: Martin P. Hellwig wrote: I think you want this more common approach for mail encryption: server: https CGI form -- mail wrapper -- PGP encryption/signing -- send client: recieve mail -- pgp decryption/verification -- read This would

ANN: python-ldap-2.0.9

2005-07-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.

Re: What license to choose for Python programs? (PSF License vs. GPL/LGPL)

2005-07-25 Thread Michael Ströder
Volker Grabsch wrote: I noticed that many packages in the PyPI are using the PSF License. Does this have a special reason? Personally I used Python style license to express that you can do with some of my modules exactly what you can do with Python itself. So if it is complicated to include

Re: Filtering out non-readable characters

2005-07-18 Thread Michael Ströder
Peter Hansen wrote: ''.join(chr(c) for c in range(65, 91)) 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' Wouldn't this be a candidate for making the Python language stricter? Do you remember old Python versions treating l.append(n1,n2) the same way like l.append((n1,n2)). I'm glad this is forbidden now. Ciao,

Re: Python ldap pointers for a newbie - Actually just trying to decifer the error..

2005-07-18 Thread Michael Ströder
rh0dium wrote: ldap_result_id = cnx.search_s(baseDN, searchScope, searchAttrs, retrieveAttrs) You are already using the synchronous search method which indeed return the search results. So this should read: result_data=cnx.search_s(baseDN,searchScope,searchAttrs,retrieveAttrs) result_type,

Re: DNS access

2005-07-13 Thread Michael Ströder
laksh wrote: is it possible to give parameters like the IP of a DNS server and the DNS query to a python program and obtain the response from the DNS server ? http://pydns.sf.net http://www.dnspython.org/ http://www.google.com/search?hl=enq=python+dnsbtnG=Google+Search Ciao, Michael. --

Re: website catcher

2005-07-06 Thread Michael Ströder
jwaixs wrote: I need some kind of database that won't exit if the cgi-bin script has finished. This database need to be open all the time and communicate very easily with the cgi-bin framwork main class. Maybe long-running multi-threaded processes for FastCGI, SCGI or similar is what you're

ANN: python-ldap-2.0.8

2005-06-22 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: Access lotus notes using Python

2005-05-23 Thread Michael Ströder
Kartic wrote: The Great 'Sateesh' uttered these words on 5/23/2005 7:14 AM: Is it possible to access Lotus notes using Python? Can anyone provide me some pointers? Yes, you can... You need the win32all distribution installed and you can access Notes using the COM interface

Re: Active Directory Modules?

2005-05-08 Thread Michael Ströder
Harlin Seritt wrote: Does anyone know if there are any Python Active Directory Modules out there? You could use ADSI with python-win32. I looked at LDAP module but there is no version for Python 2.4 Off course python-ldap works with Python 2.4. There are even Win32 binaries for Python 2.4:

undefined symbol: PyUnicodeUCS4_AsUTF8String

2005-04-29 Thread Michael Ströder
HI! I have the following problem after system upgrade to SuSE Linux 9.3: $ python -c import cPickle Traceback (most recent call last): File string, line 1, in ? ImportError: /usr/lib/python2.4/lib-dynload/cPickle.so: undefined symbol: PyUnicodeUCS4_AsUTF8String The Python 2.4.1 installation

ANN: python-ldap-2.0.7

2005-04-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.

kerberos extension module

2005-02-12 Thread Michael Ströder
John Reuning wrote: I'm interested in updating the very old kerberos extension module. [..] http://www.python.org/ftp/python/contrib-09- Dec-1999/System/krb5module-0.1.tar.gz http://www.python.org/ftp/python/contrib-09- Dec-1999/System/krb5module.README Will it build against heimdal or is this

Re: User Identification

2005-02-08 Thread Michael Ströder
Gerhard Haering wrote: os.getuid() will give you the user id, but I don't know if Python has methods to look up more information from that from /etc/passwd or whereever from. import pwd,os pwd.getpwuid(os.getuid()) ('michael', 'x', 1234, 100, 'Michael Str\xf6der', '/home/michael', '/bin/bash')

Re: python connect to db2

2005-01-14 Thread Michael Ströder
yuzx wrote: i try to connect to db2 use python,i find it on python-db2 doc: $ python import DB2 conn = DB2.connect(dsn='sample', uid='db2inst1', pwd='ibmdb2') curs = conn.cursor() but i don't know about dsn, It's the host name. In a former project (using module

Re: Working with flat files [LDIF].

2005-01-06 Thread Michael Ströder
[EMAIL PROTECTED] wrote: Scott A. McIntyre wrote: I looked around but didn't see any LDIF tools for perl or python... Did you ever get this issue resolved? I have a similar need to merge two LDIF files. Use module LDIF which is part of http://python-ldap.sourceforge.net/. You can use it

Re: Python2.4: building '_socket' extension fails with `INET_ADDRSTRLEN' undeclared

2004-12-04 Thread Michael Ströder
Martin v. Löwis wrote: Michael Ströder wrote: I'm trying to build Python2.4 on a rather old Debian machine. I only have a shell account there. That's why I'm very limited in my actions. Building _socket fails (see below) although I tried to use configure --disable-ipv6 Any clue? Hard to say

<    1   2   3