gws.plugin.model_field.file
¶
File field.
Source code: gws.plugin.model_field.file
Package Contents¶
- class gws.plugin.model_field.file.ClientFileProps(*args, **kwargs)¶
Bases:
gws.Data
Basic data object.
This object can be instantiated by passing one or or
dict
arguments and/or keyword args. All dicts keys and keywords become attributes of the object.Accessing an undefined attribute returns
None
and no error is raised, unless the attribute name starts with an underscore.- content: bytes¶
- name: str¶
- class gws.plugin.model_field.file.Cols(*args, **kwargs)¶
Bases:
gws.Data
Basic data object.
This object can be instantiated by passing one or or
dict
arguments and/or keyword args. All dicts keys and keywords become attributes of the object.Accessing an undefined attribute returns
None
and no error is raised, unless the attribute name starts with an underscore.- content: gws.lib.sa.Column | None¶
- name: gws.lib.sa.Column | None¶
- path: gws.lib.sa.Column | None¶
- class gws.plugin.model_field.file.Config¶
Bases:
gws.base.model.field.Config
- contentColumn: str = ''¶
- nameColumn: str = ''¶
- pathColumn: str = ''¶
- class gws.plugin.model_field.file.FileInputProps(*args, **kwargs)¶
Bases:
gws.Data
Basic data object.
This object can be instantiated by passing one or or
dict
arguments and/or keyword args. All dicts keys and keywords become attributes of the object.Accessing an undefined attribute returns
None
and no error is raised, unless the attribute name starts with an underscore.- content: bytes¶
- name: str¶
- class gws.plugin.model_field.file.FileValue(*args, **kwargs)¶
Bases:
gws.Data
Basic data object.
This object can be instantiated by passing one or or
dict
arguments and/or keyword args. All dicts keys and keywords become attributes of the object.Accessing an undefined attribute returns
None
and no error is raised, unless the attribute name starts with an underscore.- content: bytes¶
- name: str¶
- path: str¶
- size: int¶
- class gws.plugin.model_field.file.Object¶
Bases:
gws.base.model.field.Object
- attributeType¶
- model: gws.DatabaseModel¶
- activate()¶
- after_select(features, mc)¶
- before_create(feature, mc)¶
- before_select(mc)¶
- before_update(feature, mc)¶
- configure_columns()¶
- configure_widget()¶
- from_props(feature, mc)¶
- from_record(feature, mc)¶
- handle_web_file_request(feature_uid: str, preview: bool, mc: gws.ModelContext) gws.ContentResponse | None ¶
- post_configure()¶
- python_to_prop(feature, value, mc) ServerFileProps ¶
- select_columns(with_content, mc)¶
- to_props(feature, mc)¶
- to_record(feature, mc)¶
- class gws.plugin.model_field.file.Props¶
Bases:
gws.base.model.field.Props
- class gws.plugin.model_field.file.ServerFileProps(*args, **kwargs)¶
Bases:
gws.Data
Basic data object.
This object can be instantiated by passing one or or
dict
arguments and/or keyword args. All dicts keys and keywords become attributes of the object.Accessing an undefined attribute returns
None
and no error is raised, unless the attribute name starts with an underscore.- downloadUrl: str¶
- extension: str¶
- label: str¶
- previewUrl: str¶
- size: int¶