Moved catalogue, chunks, compress, newtagging and pagination applications to apps...
[wolnelektury.git] / apps / compress / filter_base.py
diff --git a/apps/compress/filter_base.py b/apps/compress/filter_base.py
new file mode 100644 (file)
index 0000000..9b98531
--- /dev/null
@@ -0,0 +1,14 @@
+class FilterBase:
+    def __init__(self, verbose):
+        self.verbose = verbose
+
+    def filter_css(self, css):
+        raise NotImplementedError
+    def filter_js(self, js):
+        raise NotImplementedError
+        
+class FilterError(Exception):
+    """
+    This exception is raised when a filter fails
+    """
+    pass
\ No newline at end of file