mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Remove stuff I intended to use but never did
This commit is contained in:
parent
95217e8e21
commit
4065d14fab
@ -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):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user