dbapi.py
changeset 5713 605f571198eb
parent 5508 6718ba5db0eb
child 5764 ec5dbbb6a549
equal deleted inserted replaced
5712:e136d392bd71 5713:605f571198eb
    18 """DB-API 2.0 compliant module
    18 """DB-API 2.0 compliant module
    19 
    19 
    20 Take a look at http://www.python.org/peps/pep-0249.html
    20 Take a look at http://www.python.org/peps/pep-0249.html
    21 
    21 
    22 (most parts of this document are reported here in docstrings)
    22 (most parts of this document are reported here in docstrings)
    23 
       
    24 """
    23 """
       
    24 
    25 __docformat__ = "restructuredtext en"
    25 __docformat__ = "restructuredtext en"
    26 
    26 
    27 from logging import getLogger
    27 from logging import getLogger
    28 from time import time, clock
    28 from time import time, clock
    29 from itertools import count
    29 from itertools import count
   571 
   571 
   572         You should call `load_appobjects` at some point to register those views.
   572         You should call `load_appobjects` at some point to register those views.
   573         """
   573         """
   574         from cubicweb.web.request import CubicWebRequestBase as cwrb
   574         from cubicweb.web.request import CubicWebRequestBase as cwrb
   575         DBAPIRequest.build_ajax_replace_url = cwrb.build_ajax_replace_url.im_func
   575         DBAPIRequest.build_ajax_replace_url = cwrb.build_ajax_replace_url.im_func
       
   576         DBAPIRequest.ajax_replace_url = cwrb.ajax_replace_url.im_func
   576         DBAPIRequest.list_form_param = cwrb.list_form_param.im_func
   577         DBAPIRequest.list_form_param = cwrb.list_form_param.im_func
   577         DBAPIRequest.property_value = _fake_property_value
   578         DBAPIRequest.property_value = _fake_property_value
   578         DBAPIRequest.next_tabindex = count().next
   579         DBAPIRequest.next_tabindex = count().next
   579         DBAPIRequest.form = {}
   580         DBAPIRequest.form = {}
   580         DBAPIRequest.data = {}
   581         DBAPIRequest.data = {}