web/views/staticcontrollers.py
changeset 8369 e538ad6f9b99
parent 8361 7f356ba4181c
child 8389 94f26e3b09bf
equal deleted inserted replaced
8368:062c9c7fe502 8369:e538ad6f9b99
   205         if self._cw.https:
   205         if self._cw.https:
   206             uiprops = config.https_uiprops
   206             uiprops = config.https_uiprops
   207         else:
   207         else:
   208             uiprops = config.uiprops
   208             uiprops = config.uiprops
   209         relpath = self.relpath
   209         relpath = self.relpath
       
   210         if relpath.startswith('fckeditor/'):
       
   211             relpath = relpath[len('fckeditor/'):]
       
   212         relpath = relpath.split('?', 1)[0]
   210         return self.static_file(osp.join(uiprops['FCKEDITOR_PATH'], relpath))
   213         return self.static_file(osp.join(uiprops['FCKEDITOR_PATH'], relpath))
   211 
   214 
   212 
   215 
   213 class StaticDirectoryController(StaticFileController):
   216 class StaticDirectoryController(StaticFileController):
   214     """Controller in charge of serving static file in /static/
   217     """Controller in charge of serving static file in /static/