Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

Changeset 438

Show
Ignore:
Timestamp:
04/28/07 02:48:24
Author:
umaxx
Message:

add a tests for ldap stroage, of course not working yet

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/ldap/storage/storeldap.py

    r437 r438  
    11""" 
    22 
    3 References the python-ldap package at: 
     3references the python-ldap package at: 
    44http://python-ldap.sourceforge.net/ 
    55 
    6 especially have a look on for examples: 
     6especially have a look on examples: 
    77http://python-ldap.cvs.sourceforge.net/python-ldap/python-ldap/Demo/ 
    88 
    9 long-term-todo: python ldap module can parse ldap scheme 
     9long-term-todo: 
     10python ldap module can parse ldap scheme 
    1011map scheme to units dynamically via python_types() 
    11 examples for this
     12example for scheme parser
    1213http://python-ldap.cvs.sourceforge.net/python-ldap/python-ldap/Demo/schema_tree.py?view=log 
    1314 
    14 ldap can work completly asynchronous 
     15ldap can work completely asynchronous 
    1516but for now lets only use synchronous functions 
    1617marked by an '_s' for to keep things simple 
     
    4445        ## setting sizelimit 
    4546        #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 
    4848        #ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, tls_cert) 
    4949        ## create ldap object instance (connect to url) 
     
    125125##        """multirecall(classes, expr) -> Full inner join units.""" 
    126126 
    127     ## todo: where to put ldap.__version__ ? 
     127    ## todo: where to put ldap.__version__ 
     128    ## todo: get ldap server version 
    128129    __version__ = "0.1" 
    129130 
     
    157158        query = "%s=%s, %s" % (clstype, clsname, self.basedn) 
    158159        query_parameters = [("objectclass", [clstypename]), 
    159                             (clstyp,          [clsname])] 
     160                            (clstype,       [clsname])] 
    160161        self.connection.add_s(query, query_parameters) 
    161162 
  • branches/ldap/test/test.py

    r437 r438  
    9797        'test_storefs', 
    9898        'test_storefirebird', 
     99        'test_storeldap', 
    99100        'test_storemsaccess', 
    100101        'test_storemysql',