pyams_content.component.extfile package¶
+Subpackages¶
+ +Module contents¶
+-
+
-
+class
pyams_content.component.extfile.
BaseExtFile
¶
+ Bases:
+pyams_content.component.association.AssociationItem
External file persistent class
+-
+
Computed attributes based on schema fields
+Field properties provide default values, data validation and error messages +based on data found in field meta-data.
+Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.
+
-
+
-
+
description
¶
+ Computed attributes based on schema fields
+Field properties provide default values, data validation and error messages +based on data found in field meta-data.
+Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.
+
-
+
-
+
filename
¶
+ Computed attributes based on schema fields
+Field properties provide default values, data validation and error messages +based on data found in field meta-data.
+Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.
+
-
+
-
+
language
¶
+ Computed attributes based on schema fields
+Field properties provide default values, data validation and error messages +based on data found in field meta-data.
+Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.
+
-
+
-
+
title
¶
+ Computed attributes based on schema fields
+Field properties provide default values, data validation and error messages +based on data found in field meta-data.
+Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.
+
-
+
-
+class
pyams_content.component.extfile.
BaseExtFileAssociationInfoAdapter
(context)¶
+ Bases:
+pyams_utils.adapter.ContextAdapter
Base external file association info adapter
+-
+
-
+
human_size
¶
+
-
+
-
+
inner_title
¶
+
-
+
-
+
pictogram
¶
+
-
+
-
+
user_title
¶
+
-
+
-
+
-
+class
pyams_content.component.extfile.
ExtAudio
¶
+ Bases:
+pyams_content.component.extfile.BaseExtFile
External audio file persistent class
+-
+
-
+
data
¶
+ I18n property class used to handle files
+
-
+
-
+
icon_class
= 'fa-file-audio-o'¶
+
-
+
-
+
icon_hint
= 'Audio file'¶
+
-
+
-
+
title
¶
+ Computed attributes based on schema fields
+Field properties provide default values, data validation and error messages +based on data found in field meta-data.
+Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.
+
-
+
-
+
-
+class
pyams_content.component.extfile.
ExtAudioContentChecker
(context)¶
+ Bases:
+pyams_content.component.extfile.ExtFileContentChecker
External audio file content checker
+-
+
-
+
interface
= <InterfaceClass pyams_content.component.extfile.interfaces.IExtAudio>¶
+
-
+
-
+
-
+class
pyams_content.component.extfile.
ExtFile
¶
+ Bases:
+pyams_content.component.extfile.BaseExtFile
Generic external file persistent class
+-
+
-
+
data
¶
+ I18n property class used to handle files
+
-
+
-
+
icon_class
= 'fa-file-text-o'¶
+
-
+
-
+
icon_hint
= 'Standard file'¶
+
-
+
-
+
-
+class
pyams_content.component.extfile.
ExtFileContentChecker
(context)¶
+ Bases:
+pyams_content.features.checker.BaseContentChecker
Base external file content checker
+-
+
-
+
inner_check
(request)¶
+
-
+
-
+
interface
= <InterfaceClass pyams_content.component.extfile.interfaces.IExtFile>¶
+
-
+
-
+
label
¶
+
-
+
-
+
-
+class
pyams_content.component.extfile.
ExtImage
¶
+ Bases:
+pyams_content.component.extfile.BaseExtFile
External image persistent class
+-
+
-
+
alt_title
¶
+ Computed attributes based on schema fields
+Field properties provide default values, data validation and error messages +based on data found in field meta-data.
+Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.
+
-
+
-
+
data
¶
+
-
+
-
+
icon_class
= 'fa-file-image-o'¶
+
-
+
-
+
icon_hint
= 'Image'¶
+
-
+
-
+
title
¶
+ Computed attributes based on schema fields
+Field properties provide default values, data validation and error messages +based on data found in field meta-data.
+Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.
+
-
+
-
+
-
+class
pyams_content.component.extfile.
ExtImageContentChecker
(context)¶
+ Bases:
+pyams_content.component.extfile.ExtFileContentChecker
External image content checker
+-
+
-
+
interface
= <InterfaceClass pyams_content.component.extfile.interfaces.IExtImage>¶
+
-
+
-
+
-
+class
pyams_content.component.extfile.
ExtVideo
¶
+ Bases:
+pyams_content.component.extfile.BaseExtFile
External video file persistent class
+-
+
-
+
data
¶
+ I18n property class used to handle files
+
-
+
-
+
icon_class
= 'fa-file-video-o'¶
+
-
+
-
+
icon_hint
= 'Video'¶
+
-
+
-
+
title
¶
+ Computed attributes based on schema fields
+Field properties provide default values, data validation and error messages +based on data found in field meta-data.
+Note that FieldProperties cannot be used with slots. They can only +be used for attributes stored in instance dictionaries.
+
-
+
-
+
-
+class
pyams_content.component.extfile.
ExtVideoContentChecker
(context)¶
+ Bases:
+pyams_content.component.extfile.ExtFileContentChecker
External video file content checker
+-
+
-
+
interface
= <InterfaceClass pyams_content.component.extfile.interfaces.IExtVideo>¶
+
-
+
-
+
-
+class
pyams_content.component.extfile.
ExternalFilesFactoriesVocabulary
(context)¶
+ Bases:
+zope.schema.vocabulary.SimpleVocabulary
External files factories vocabulary
+
-
+
-
+
pyams_content.component.extfile.
handle_added_extfile
(event)¶
+ Handle added external file
+
-
+
-
+
pyams_content.component.extfile.
handle_modified_extfile
(event)¶
+ Handle modified external file
+
-
+
-
+
pyams_content.component.extfile.
handle_removed_extfile
(event)¶
+ Handle removed external file
+
-
+
-
+
pyams_content.component.extfile.
register_file_factory
(key, factory, name=None)¶
+ Register new file factory
+
-
+
-
+
pyams_content.component.extfile.
update_properties
(extfile)¶
+ Update missing file properties
+