[CPS-devel] Add None to getSQLValue in SQLDirectory.py

Jose Luis de la Rosa Triviño joseluis.rosa at iavante.es
Wed Apr 25 09:42:14 CEST 2007


Hello everybody,

After a ValueError using an SQLDirectory and searching for the reason I 
found the method getSQLValue 
(https://svn.nuxeo.org/trac/pub/browser/CPS3/products/CPSDirectory/trunk/SQLDirectory.py#L125) 
which quotes from python values to sql values. I thought this method 
needs to deal with None types also, the lines to add would be:

 elif value is None:
            # XXX probably depends on SQL dialect
            return 'NULL'


If you agree I will create a ticket and commit changes to the trunk.

Regards,

Jose Luis.






This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.