Added django-compress.
[redakcja.git] / apps / compress / versioning / base.py
diff --git a/apps/compress/versioning/base.py b/apps/compress/versioning/base.py
new file mode 100644 (file)
index 0000000..8b81519
--- /dev/null
@@ -0,0 +1,13 @@
+class VersioningBase(object):
+
+    def get_version(self, source_files):
+        raise NotImplementedError
+        
+    def needs_update(self, output_file, source_files, version):
+        raise NotImplementedError
+        
+class VersioningError(Exception):
+    """
+    This exception is raised when version creation fails
+    """
+    pass
\ No newline at end of file