Hello everybody,
We have an instance of CPS 3.4.3 which uses CPSLDAPSetup, and we get an exception "iteration over non-sequence" when trying to use the search in the members directory.
After a little research we have done these modifications to the module CPSDirectory.utils.py and got rid of the exception:
Add the line to the top of the module
from DateTime import DateTime
In the method "match", replace the line:
isinstance(searched, (basestring, int, long, NoneType)
for
isinstance(searched, (basestring, int, long, NoneType, DateTime)
The next link goes to the line (in TRAC) that should be modified:
http://svn.nuxeo.org/trac/pub/browser/CPS3/products/CPSDirectory/trunk/utils.py#L152
The reason to add the type DateTime? is because is used for the field last_login_time. We had some other ticket related to this field http://www.mail-archive.com/cps-devel@lists.nuxeo.com/msg01828.html