etwist/server.py
branchstable
changeset 2169 124fb0b9fa4b
parent 1977 606923dff11b
child 2181 94ca417b9b07
equal deleted inserted replaced
2168:f1d5d01dd345 2169:124fb0b9fa4b
   136                 if segments[0] in (self.versioned_datadir, 'data', 'static'):
   136                 if segments[0] in (self.versioned_datadir, 'data', 'static'):
   137                     # Anything in data/, static/ is treated as static files
   137                     # Anything in data/, static/ is treated as static files
   138                     if segments[0] == 'static':
   138                     if segments[0] == 'static':
   139                         # instance static directory
   139                         # instance static directory
   140                         datadir = self.config.static_directory
   140                         datadir = self.config.static_directory
       
   141                     elif segments[1] == 'fckeditor':
       
   142                         fckeditordir = self.config.ext_resources['FCKEDITOR_PATH']
       
   143                         return static.File(fckeditordir), segments[2:]
   141                     else:
   144                     else:
   142                         # cube static data file
   145                         # cube static data file
   143                         datadir = self.config.locate_resource(segments[1])
   146                         datadir = self.config.locate_resource(segments[1])
   144                         if datadir is None:
   147                         if datadir is None:
   145                             return None, []
   148                             return None, []