clld-audio-plugin
March 21, 2024 ยท View on GitHub
A plugin for the clld package.
Usage
clld-audio-plugin provides
- A model class
clld_audio_plugin.models.Counterpartaugmented with anaudiocolumn to store the URL to an audio file. - A column for a
DataTableclld_audio_plugin.datatables.AudioColto display objects with anaudioattribute as audio player. - A map class
clld_audio_plugin.maps.ParamMapspecifying a parameter map integrating clld audioplayer functionality. - Static resources for the configuration/layout of the UI elements contributed by the plugin.
To use map and static resources, include the plugin in your app's main function:
config.include('clld_audio_plugin')
To use model and column, just import in your app's datatables.py or models.py as needed.