- -
-

pyams_media.zmi package

-
-

Submodules

-
-
-

pyams_media.zmi.audio module

-
-
-class pyams_media.zmi.audio.AudioPreview(context, request)
-

Bases: pyams_zmi.form.AdminDialogDisplayForm

-

Audio preview

-
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-label = 'Audio preview'
-
- -
-
-label_css_class = 'fa fa-fw fa-music'
-
- -
- -
-
-class pyams_media.zmi.audio.AudioPreviewViewletsPrefix(context, request, view, manager)
-

Bases: pyams_viewlet.viewlet.Viewlet

-

Audio preview viewlets prefix

-
- -
-
-

pyams_media.zmi.interfaces module

-
-
-

pyams_media.zmi.media module

-
-
-class pyams_media.zmi.media.AudioConversionsAJAXEditForm(context, request)
-

Bases: pyams_form.form.AJAXEditForm, pyams_media.zmi.media.AudioConversionsEditForm

-

Audio conversions edit form, JSON renderer

-
-
-get_ajax_output(changes)
-
- -
- -
-
-class pyams_media.zmi.media.AudioConversionsAction(context, request, view, manager)
-

Bases: pyams_skin.viewlet.toolbar.ToolbarActionItem

-

Audio conversions action

-
-
-label = 'Audio conversions...'
-
- -
-
-label_css_class = 'fa fa-fw fa-compress'
-
- -
-
-modal_target = True
-
- -
-
-url = 'audio-conversions.html'
-
- -
- -
-
-class pyams_media.zmi.media.AudioConversionsEditForm(context, request)
-

Bases: pyams_zmi.form.AdminDialogEditForm

-

Audio conversions display form

-
-
-ajax_handler = 'restart-audio-conversions.json'
-
- -
-
-applyChanges(data)
-
- -
-
-buttons = <z3c.form.button.Buttons object>
-
- -
-
-check_mode()
-
- -
-
-edit_permission = 'manage'
-
- -
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-icon_css_class = 'fa fa-fw fa-compress'
-
- -
-
-legend = 'Selected audio conversions'
-
- -
-
-title
-
- -
-
-updateActions()
-
- -
- -
-
-class pyams_media.zmi.media.AudioConversionsViewletsPrefix(context, request, view, manager)
-

Bases: pyams_viewlet.viewlet.Viewlet

-

Audio conversions display form viewlets prefix

-
-
-converters
-
- -
-
-has_conversion(converter)
-
- -
- -
-
-class pyams_media.zmi.media.MediaConversionsFormHelpAdapter(context, request, view)
-

Bases: pyams_form.help.FormHelp

-

Medias conversions form help adapter

-
-
-message = 'Several formats are required to handle different browsers and screen resolutions.\n \nConversion process may require some time based on media format and duration; this dashboard gives\nyou indications about required conversions.'
-
- -
-
-message_format = 'rest'
-
- -
- -
-
-class pyams_media.zmi.media.VideoConversionsAJAXEditForm(context, request)
-

Bases: pyams_form.form.AJAXEditForm, pyams_media.zmi.media.VideoConversionsEditForm

-

Video conversions edit form, JSON renderer

-
-
-get_ajax_output(changes)
-
- -
- -
-
-class pyams_media.zmi.media.VideoConversionsAction(context, request, view, manager)
-

Bases: pyams_skin.viewlet.toolbar.ToolbarActionItem

-

Video conversions action

-
-
-label = 'Video conversions...'
-
- -
-
-label_css_class = 'fa fa-fw fa-compress'
-
- -
-
-modal_target = True
-
- -
-
-url = 'video-conversions.html'
-
- -
- -
-
-class pyams_media.zmi.media.VideoConversionsEditForm(context, request)
-

Bases: pyams_zmi.form.AdminDialogEditForm

-

Video conversions display form

-
-
-ajax_handler = 'restart-video-conversions.json'
-
- -
-
-applyChanges(data)
-
- -
-
-buttons = <z3c.form.button.Buttons object>
-
- -
-
-check_mode()
-
- -
-
-edit_permission = 'manage'
-
- -
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-icon_css_class = 'fa fa-fw fa-compress'
-
- -
-
-legend = 'Selected video conversions'
-
- -
-
-title
-
- -
-
-updateActions()
-
- -
- -
-
-class pyams_media.zmi.media.VideoConversionsViewletsPrefix(context, request, view, manager)
-

Bases: pyams_viewlet.viewlet.Viewlet

-

Video conversions display form viewlets prefix

-
-
-converters
-
- -
-
-formats
-
- -
-
-get_conversion(converter, frame_size)
-
- -
-
-has_conversion(converter, frame_size)
-
- -
-
-original_frame_size
-
- -
- -
-
-

pyams_media.zmi.video module

-
-
-class pyams_media.zmi.video.VideoPreview(context, request)
-

Bases: pyams_zmi.form.AdminDialogDisplayForm

-

Video preview

-
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-label = 'Video preview'
-
- -
-
-label_css_class = 'fa fa-fw fa-film'
-
- -
- -
-
-class pyams_media.zmi.video.VideoPreviewViewletsPrefix(context, request, view, manager)
-

Bases: pyams_viewlet.viewlet.Viewlet

-

Video preview viewlets prefix

-
-
-timestamp
-
- -
- -
-
-class pyams_media.zmi.video.VideoThumbnailAJAXEditForm(context, request)
-

Bases: pyams_form.form.AJAXAddForm, pyams_media.zmi.video.VideoThumbnailEditForm

-

Video thumbnail selection form, JSON renderer

-
-
-get_ajax_output(changes)
-
- -
- -
-
-class pyams_media.zmi.video.VideoThumbnailAction(context, request, view, manager)
-

Bases: pyams_skin.viewlet.toolbar.ToolbarActionItem

-

Video thumbnail selection action

-
-
-label = 'Select thumbnail...'
-
- -
-
-label_css_class = 'fa fa-fw fa-film'
-
- -
-
-modal_target = True
-
- -
-
-url = 'video-thumbnail.html'
-
- -
- -
-
-class pyams_media.zmi.video.VideoThumbnailEditForm(context, request)
-

Bases: pyams_zmi.form.AdminDialogAddForm

-

Video thumbnail selection form

-
-
-ajax_handler = 'video-thumbnail.json'
-
- -
-
-buttons = <z3c.form.button.Buttons object>
-
- -
-
-createAndAdd(data)
-
- -
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-icon_css_class = 'fa fa-fw fa-film'
-
- -
-
-legend = 'Select video thumbnail'
-
- -
-
-title
-
- -
-
-updateActions()
-
- -
-
-updateWidgets(prefix=None)
-
- -
- -
-
-class pyams_media.zmi.video.VideoThumbnailEditFormHelpAdapter(context, request, view)
-

Bases: pyams_form.help.FormHelp

-

Video thumbnail selection form help adapter

-
-
-message = "You can play the video until you display the image you want.\n\nBy pausing the video and clicking on ''Select thumbnail'' button, the selected frame will be used as\nvideo illustration."
-
- -
-
-message_format = 'rest'
-
- -
- -
-
-class pyams_media.zmi.video.VideoThumbnailViewletsPrefix(context, request, view, manager)
-

Bases: pyams_viewlet.viewlet.Viewlet

-

Video thumbnail edit form viewlets prefix

-
-
-timestamp
-
- -
- -
-
-

Module contents

-
-
-class pyams_media.zmi.MediaAudioConversionPropertiesEditForm(context, request, view=None)
-

Bases: pyams_zmi.form.InnerAdminEditForm

-

Audio conversion utility properties edit form

-
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-id = 'audio_properties'
-
- -
-
-input_css_class = 'col-md-8'
-
- -
-
-label_css_class = 'control-label col-md-4'
-
- -
-
-legend = None
-
- -
-
-tab_label = 'Audio conversion'
-
- -
-
-weight = 2
-
- -
- -
-
-class pyams_media.zmi.MediaConversionProcessAJAXTestForm(context, request)
-

Bases: pyams_form.form.AJAXAddForm, pyams_media.zmi.MediaConversionProcessTestForm

-

Medias conversion process test form, JSON renderer

-
-
-get_ajax_output(changes)
-
- -
- -
-
-class pyams_media.zmi.MediaConversionProcessTestForm(context, request)
-

Bases: pyams_zmi.form.AdminDialogAddForm

-

Medias conversion process test form

-
-
-ajax_handler = 'test-conversion-process.json'
-
- -
-
-buttons = <z3c.form.button.Buttons object>
-
- -
-
-createAndAdd(data)
-
- -
-
-edit_permission = 'pyams.ManageSystem'
-
- -
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-form_target
-
- -
-
-icon_css_class = 'fa fa-fw fa-film'
-
- -
-
-legend = 'Test medias converter process connection'
-
- -
-
-prefix = 'test_form.'
-
- -
-
-title
-
- -
-
-updateActions()
-
- -
- -
-
-class pyams_media.zmi.MediaConversionProcessTestMenu(context, request, view, manager)
-

Bases: pyams_skin.viewlet.toolbar.ToolbarMenuItem

-

Medias conversion process test menu

-
-
-label = 'Test process connection...'
-
- -
-
-label_css_class = 'fa fa-fw fa-film'
-
- -
-
-modal_target = True
-
- -
-
-stop_propagation = True
-
- -
-
-url = 'test-conversion-process.html'
-
- -
- -
-
-class pyams_media.zmi.MediaConversionProcessTestSuffix(context, request, view, manager)
-

Bases: pyams_viewlet.viewlet.Viewlet

-

Media conversion process test form suffix

-
- -
-
-class pyams_media.zmi.MediaConversionUtilityPropertiesAJAXEditForm(context, request)
-

Bases: pyams_form.form.AJAXEditForm, pyams_media.zmi.MediaConversionUtilityPropertiesEditForm

-

Medias conversion utility properties edit form, JSON renderer

-
- -
-
-class pyams_media.zmi.MediaConversionUtilityPropertiesEditForm(context, request)
-

Bases: pyams_zmi.form.AdminDialogEditForm

-

Medias conversion utility properties edit form

-
-
-ajax_handler = 'properties.json'
-
- -
-
-edit_permission = 'pyams.ManageSystem'
-
- -
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-input_css_class = 'col-md-8'
-
- -
-
-label_css_class = 'control-label col-md-4'
-
- -
-
-legend = 'Update medias converter properties'
-
- -
-
-title
-
- -
- -
-
-class pyams_media.zmi.MediaVideoConversionPropertiesEditForm(context, request, view=None)
-

Bases: pyams_zmi.form.InnerAdminEditForm

-

Video conversion utility properties edit form

-
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-id = 'video_properties'
-
- -
-
-input_css_class = 'col-md-8'
-
- -
-
-label_css_class = 'control-label col-md-4'
-
- -
-
-legend = None
-
- -
-
-tab_label = 'Video conversion'
-
- -
-
-weight = 1
-
- -
- -
-
- - -