fckeditor may be a subdirectory of the data directory stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Jun 2009 11:31:57 +0200
branchstable
changeset 2169 124fb0b9fa4b
parent 2168 f1d5d01dd345
child 2170 6adbc965c51b
child 2171 b0c564c86a4b
fckeditor may be a subdirectory of the data directory
etwist/server.py
--- a/etwist/server.py	Thu Jun 25 11:28:04 2009 +0200
+++ b/etwist/server.py	Fri Jun 26 11:31:57 2009 +0200
@@ -138,6 +138,9 @@
                     if segments[0] == 'static':
                         # instance static directory
                         datadir = self.config.static_directory
+                    elif segments[1] == 'fckeditor':
+                        fckeditordir = self.config.ext_resources['FCKEDITOR_PATH']
+                        return static.File(fckeditordir), segments[2:]
                     else:
                         # cube static data file
                         datadir = self.config.locate_resource(segments[1])