A plugin for the clld
package.
clld-audio-plugin
provides
- A model class
clld_audio_plugin.models.Counterpart
augmented with anaudio
column to store the URL to an audio file. - A column for a
DataTable
clld_audio_plugin.datatables.AudioCol
to display objects with anaudio
attribute as audio player. - A map class
clld_audio_plugin.maps.ParamMap
specifying 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.