Handler Reference
The handlers
Module
A collection of file handlers.
- ciowarehouse.handlers.includeme(configurator)[source]
Function to include CioWarehouse handlers.
- Parameters:
configurator (pyramid.config.Configurator) – Object used to do configuration declaration within the application.
The handlers.directory
Module
A file handlerxs for directories.
- ciowarehouse.handlers.handler_directory.includeme(configurator)[source]
Function to include CioWarehouse a handler.
- Parameters:
configurator (pyramid.config.Configurator) – Object used to do configuration declaration within the application.
The handlers.directory_cover
Module
A file handler for directories with a cover.
- ciowarehouse.handlers.handler_directory_cover.includeme(configurator)[source]
Function to include a CioWarehouse handler.
- Parameters:
configurator (pyramid.config.Configurator) – Object used to do configuration declaration within the application.
The handlers.handler_image
Module
A file handler for images.
- ciowarehouse.handlers.handler_image.includeme(configurator)[source]
Function to include CioWarehouse a handler.
- Parameters:
configurator (pyramid.config.Configurator) – Object used to do configuration declaration within the application.
- class ciowarehouse.handlers.handler_image.HandlerImage[source]
Class to manage an image.
- thumbnails(warehouse, abs_file, thumb_dir, request=None, registry=None)[source]
Create the small and large thumbnails representing the file.
The handlers.handler_audio
Module
A file handler for audios.
- ciowarehouse.handlers.handler_audio.includeme(configurator)[source]
Function to include CioWarehouse a handler.
- Parameters:
configurator (pyramid.config.Configurator) – Object used to do configuration declaration within the application.
The handlers.handler_video
Module
A file handler for videos.
- ciowarehouse.handlers.handler_video.includeme(configurator)[source]
Function to include CioWarehouse a handler.
- Parameters:
configurator (pyramid.config.Configurator) – Object used to do configuration declaration within the application.
The handlers.handler_pdf
Module
A file handler for PDF file.
- ciowarehouse.handlers.handler_pdf.includeme(configurator)[source]
Function to include CioWarehouse a handler.
- Parameters:
configurator (pyramid.config.Configurator) – Object used to do configuration declaration within the application.
- class ciowarehouse.handlers.handler_pdf.HandlerPdf[source]
Class to manage a PDF file.
- thumbnails(warehouse, abs_file, thumb_dir, request=None, registry=None)[source]
Create the small and large thumbnail representing the file.
The handlers.handler_plain
Module
A file handler for plain text files.
- ciowarehouse.handlers.handler_plain.includeme(configurator)[source]
Function to include CioWarehouse a handler.
- Parameters:
configurator (pyramid.config.Configurator) – Object used to do configuration declaration within the application.
- class ciowarehouse.handlers.handler_plain.HandlerPlain[source]
Class to manage a plain text file.
- infos_complete_fields(warehouse, path, abs_path, whoosh_fields, request=None)[source]
Complete the
whoosh_fields
dictionary with information found in the metadata file.