16 lines
426 B
Python
16 lines
426 B
Python
# SPDX-License-Identifier: WTFPL
|
|
|
|
from .dbrecord import DbRecord
|
|
|
|
class Document(DbRecord):
|
|
|
|
table = "document"
|
|
pk_field = "docid"
|
|
fields = ('docid', 'doctype', 'mimetype', 'filename', 'extension',
|
|
'hash', 'docsize', 'doctime', 'docdate', 'title', 'pages', 'remarks',
|
|
'roleaccess')
|
|
|
|
def __init__(self, db, docid=None):
|
|
super().__init__(db, docid)
|
|
self.title = _("Document({})")
|