dbapi.py
changeset 8537 e30d0a7f0087
parent 8404 3dcb117fb3b0
child 8538 00597256de18
equal deleted inserted replaced
8535:268b6349baf3 8537:e30d0a7f0087
   596         if 'views' in subpath:
   596         if 'views' in subpath:
   597             esubpath = list(subpath)
   597             esubpath = list(subpath)
   598             esubpath.remove('views')
   598             esubpath.remove('views')
   599             esubpath.append(join('web', 'views'))
   599             esubpath.append(join('web', 'views'))
   600         config.init_cubes(cubes)
   600         config.init_cubes(cubes)
   601         vpath = config.build_vregistry_path(reversed(config.cubes_path()),
   601         vpath = config.build_appobjects_path(reversed(config.cubes_path()),
   602                                             evobjpath=esubpath,
   602                                              evobjpath=esubpath,
   603                                             tvobjpath=subpath)
   603                                              tvobjpath=subpath)
   604         self.vreg.register_objects(vpath)
   604         self.vreg.register_objects(vpath)
   605 
   605 
   606     def use_web_compatible_requests(self, baseurl, sitetitle=None):
   606     def use_web_compatible_requests(self, baseurl, sitetitle=None):
   607         """monkey patch DBAPIRequest to fake a cw.web.request, so you should
   607         """monkey patch DBAPIRequest to fake a cw.web.request, so you should
   608         able to call html views using rset from a simple dbapi connection.
   608         able to call html views using rset from a simple dbapi connection.