[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-ldap-dev
Subject:    Re: Error: Schema fetching on Oracle Directory Server
From:       Wido Depping <wido.depping () gmail ! com>
Date:       2005-01-24 17:22:34
Message-ID: 127079e105012409222e525ebc () mail ! gmail ! com
[Download RAW message or body]

On Thu, 20 Jan 2005 09:23:22 +0100, Michael Ströder
<michael@stroeder.com> wrote:
> There seems to be something wrong with your version of function
> ldap.schema.tokenizer.split_tokens(). I've experienced some strange
> issues when accessing MS AD with web2ldap.
> 
> Find attached a script I'm using for regression testing. It fails with
> your implementation. Maybe it helps you to sort out the problems. Please
> extend this script to also cover the Oracle-specific test cases and send
> it back to me. Hmm, the script should be also in
> Tests/Lib/ldap/schema/test_tokenizer.py of python-ldap's CVS.
> (Not sure, I'm off-line on the train while writing this.)
> 
> Ciao, Michael.

Hi Michael,
Attached are the updated testcase file and my improved split_tokens() function.
This time I use string.split() and string.join() to benefit from their
speed. The added checking in order to comply with the test cases has
the result, that the new algorithm is only slightly faster than the
old one. But now it should work with all known servers :)

mfg.
  Wido
-- 
Wido Depping
ICQ: 51303067    AIM: wido3379
Jabber: wido@jabber.ccc.de
Blog: http://widoww.blogspot.com

["split_tokens.py" (application/octet-stream)]
["test_tokenizer.py" (application/octet-stream)]
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic