devtools/fake.py
changeset 2476 1294a6bdf3bf
parent 2471 3e2b50ece726
child 2650 18aec79ec3a3
equal deleted inserted replaced
2475:b6753521129d 2476:1294a6bdf3bf
    85 
    85 
    86     def header_if_modified_since(self):
    86     def header_if_modified_since(self):
    87         return None
    87         return None
    88 
    88 
    89     def base_url(self):
    89     def base_url(self):
    90         """return the root url of the application"""
    90         """return the root url of the instance"""
    91         return BASE_URL
    91         return BASE_URL
    92 
    92 
    93     def relative_path(self, includeparams=True):
    93     def relative_path(self, includeparams=True):
    94         """return the normalized path of the request (ie at least relative
    94         """return the normalized path of the request (ie at least relative
    95         to the application's root, but some other normalization may be needed
    95         to the instance's root, but some other normalization may be needed
    96         so that the returned path may be used to compare to generated urls
    96         so that the returned path may be used to compare to generated urls
    97         """
    97         """
    98         if self._url.startswith(BASE_URL):
    98         if self._url.startswith(BASE_URL):
    99             url = self._url[len(BASE_URL):]
    99             url = self._url[len(BASE_URL):]
   100         else:
   100         else: