etwist/server.py
branchstable
changeset 8341 af813e7d5daa
parent 8149 3ed48646f354
child 8349 fdb796435d7b
--- a/etwist/server.py	Wed Apr 04 18:44:07 2012 +0200
+++ b/etwist/server.py	Thu Apr 05 14:44:00 2012 +0200
@@ -94,6 +94,15 @@
     def directoryListing(self):
         return ForbiddenDirectoryLister()
 
+    def createSimilarFile(self, path):
+        # we override this method because twisted calls __init__
+        # which we overload with a different signature
+        f = self.__class__(self.config, path)
+        f.processors = self.processors
+        f.indexNames = self.indexNames[:]
+        f.childNotFound = self.childNotFound
+        return f
+
 
 class DataLookupDirectory(NoListingFile):
     def __init__(self, config, path):