Changeset 438
- Timestamp:
- 04/28/07 02:48:24
- Files:
-
- branches/ldap/storage/storeldap.py (modified) (4 diffs)
- branches/ldap/test/test.py (modified) (1 diff)
- branches/ldap/test/test_storeldap.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/ldap/storage/storeldap.py
r437 r438 1 1 """ 2 2 3 References the python-ldap package at:3 references the python-ldap package at: 4 4 http://python-ldap.sourceforge.net/ 5 5 6 especially have a look on forexamples:6 especially have a look on examples: 7 7 http://python-ldap.cvs.sourceforge.net/python-ldap/python-ldap/Demo/ 8 8 9 long-term-todo: python ldap module can parse ldap scheme 9 long-term-todo: 10 python ldap module can parse ldap scheme 10 11 map scheme to units dynamically via python_types() 11 example s for this:12 example for scheme parser: 12 13 http://python-ldap.cvs.sourceforge.net/python-ldap/python-ldap/Demo/schema_tree.py?view=log 13 14 14 ldap can work complet ly asynchronous15 ldap can work completely asynchronous 15 16 but for now lets only use synchronous functions 16 17 marked by an '_s' for to keep things simple … … 44 45 ## setting sizelimit 45 46 #ldap.set_option(ldap.OPT_SIZELIMIT, 10) 46 ## set path name of file containing all CA certificates 47 ## needed to validate server certificates 47 ## set path name of file containing certificate 48 48 #ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, tls_cert) 49 49 ## create ldap object instance (connect to url) … … 125 125 ## """multirecall(classes, expr) -> Full inner join units.""" 126 126 127 ## todo: where to put ldap.__version__ ? 127 ## todo: where to put ldap.__version__ 128 ## todo: get ldap server version 128 129 __version__ = "0.1" 129 130 … … 157 158 query = "%s=%s, %s" % (clstype, clsname, self.basedn) 158 159 query_parameters = [("objectclass", [clstypename]), 159 (clstyp ,[clsname])]160 (clstype, [clsname])] 160 161 self.connection.add_s(query, query_parameters) 161 162 branches/ldap/test/test.py
r437 r438 97 97 'test_storefs', 98 98 'test_storefirebird', 99 'test_storeldap', 99 100 'test_storemsaccess', 100 101 'test_storemysql',
