web/request.py
changeset 10850 928c7ec525e0
parent 10849 79066409fdcf
child 10903 da30851f9706
equal deleted inserted replaced
10849:79066409fdcf 10850:928c7ec525e0
   702     def base_url_path(self):
   702     def base_url_path(self):
   703         """returns the absolute path of the base url"""
   703         """returns the absolute path of the base url"""
   704         return urlsplit(self.base_url())[2]
   704         return urlsplit(self.base_url())[2]
   705 
   705 
   706     def data_url(self, relpath):
   706     def data_url(self, relpath):
   707         """returns the absolute path for a data resouce"""
   707         """returns the absolute path for a data resource"""
   708         return self.datadir_url + relpath
   708         return self.datadir_url + relpath
   709 
   709 
   710     @cached
   710     @cached
   711     def from_controller(self):
   711     def from_controller(self):
   712         """return the id (string) of the controller issuing the request"""
   712         """return the id (string) of the controller issuing the request"""