Plugin
ListPlugin
¶
Bases: SingletonPlugin
Summary dataset view.
Provides a summary view of records, to replace the grid.
Source code in ckanext/list/plugin.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
can_view(data_dict)
¶
Specify which resources can be viewed by this plugin.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_dict
|
return: boolean |
required |
Returns:
| Type | Description |
|---|---|
|
boolean |
Source code in ckanext/list/plugin.py
46 47 48 49 50 51 52 53 54 55 56 | |
setup_template_variables(context, data_dict)
¶
Setup variables available to templates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
|
required | |
data_dict
|
|
required |
Source code in ckanext/list/plugin.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
update_config(config)
¶
Add our template directories to the list of available templates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
|
required |
Source code in ckanext/list/plugin.py
30 31 32 33 34 35 36 37 38 | |