Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Remove stuff I intended to use but never did

Tikitu de Jager4065d14fabd9
diff --git a/src/documents/models.py b/src/documents/models.py
index c8342bf4a..e60a699d2 100644
--- a/src/documents/models.py
+++ b/src/documents/models.py
@@ -14,14 +14,11 @@ from .managers import LogManager
class FileInfo(object):
def __init__(self, title, suffix,
- correspondent=None, tags=None,
- file_mtime=None, path=None):
+ correspondent=None, tags=None):
self._title = title
self._suffix = suffix
self._correspondent = correspondent
self._tags = tags
- self._file_mtime = file_mtime
- self._path = path
REGEX_TITLE = re.compile(
r"^.*/(.*)\.(pdf|jpe?g|png|gif|tiff)$",
@@ -90,19 +87,6 @@ class FileInfo(object):
return FileInfo(
title=m.group(1), tags=(), suffix=get_suffix(m.group(2)))
- @classmethod
- def from_document(cls, document):
- pass
-
- def filename(self):
- pass
-
- def kwargs_for_document_create(self):
- pass
-
- def add_tags(self, tags):
- self._tags = set(tags).union(self._tags)
-
class SluggedModel(models.Model):