file.models.fileset

Attributes

file_to_set_associations

Classes

FileSet

A set of files that belong together. Each file may be part of

Module Contents

file.models.fileset.file_to_set_associations[source]
class file.models.fileset.FileSet[source]

Bases: onegov.core.orm.Base, onegov.core.orm.mixins.ContentMixin, onegov.core.orm.mixins.TimestampMixin

A set of files that belong together. Each file may be part of none, one or many sets. Each set may containe none, one or many files.

The fileset uses uuids for public urls instead of a readable url-safe name, because files are meant to be always public with an unguessable url, and so the filesets containing files must also have the same property.

Otherwise we might not be able to guess the name the of the file, but we will be able to guess the name of a fileset containing files.

__tablename__ = 'filesets'[source]
id: Column[str][source]
title: Column[str][source]
type: Column[str][source]
files: relationship[list[File]][source]
__mapper_args__[source]