devtools/__init__.py
changeset 298 3e6d32667140
parent 0 b97547f5f1fa
child 937 491dbd818f9b
equal deleted inserted replaced
297:ac86aaaaad08 298:3e6d32667140
   255 
   255 
   256 CubicWebConfiguration.cls_adjust_sys_path()
   256 CubicWebConfiguration.cls_adjust_sys_path()
   257                                                     
   257                                                     
   258 def install_sqlite_path(querier):
   258 def install_sqlite_path(querier):
   259     """This patch hotfixes the following sqlite bug :
   259     """This patch hotfixes the following sqlite bug :
   260      - http://www.sqlite.org/cvstrac/tktview?tn=1327,33
   260        - http://www.sqlite.org/cvstrac/tktview?tn=1327,33
   261     (some dates are returned as strings rather thant date objects)
   261        (some dates are returned as strings rather thant date objects)
   262     """
   262     """
   263     def wrap_execute(base_execute):
   263     def wrap_execute(base_execute):
   264         def new_execute(*args, **kwargs):
   264         def new_execute(*args, **kwargs):
   265             rset = base_execute(*args, **kwargs)
   265             rset = base_execute(*args, **kwargs)
   266             if rset.description:
   266             if rset.description: