class documentation
class GalleryEntry(OFMGalleryBase): (source)
A class to define gallery entries and their table.
Do not update this without updating the schema version and creating way to migrate.
| Class Variable | __tablename__ |
Undocumented |
| Class Variable | created |
The created time. |
| Class Variable | gallery |
Extra data added by the gallery UI. |
| Class Variable | gallery |
Card type specific information that is shared with the gallery. |
| Class Variable | hash |
A hash for checking if the file has updated. |
| Class Variable | modified |
The modifiedtime. |
| Class Variable | path |
The path on disk relative to the base data directory. |
| Class Variable | thumbnail |
The path on disk (relative to the base data dir) or None for no thumbnail. |
Extra data added by the gallery UI.
This should not be changed server side. Its value should never affect the hash, as the hash is used to determine if the data on disk has changed since caching to the database. This data is not stored on disk except in the database.
A hash for checking if the file has updated.
Each gallery providing Thing can choose its own hashing method.