示例casepro数据盒返回静态配置的数据
casepropods.dumm的Python项目详细描述
示例casepro data pod返回静态配置的数据。
安装
$ pip install casepropods.dummy
用法
在casepro的设置文件中,将pod添加为已安装的应用程序,并配置要在ui中显示的pod:
INSTALLED_APPS+=('casepropods.dummy.plugin.DummyPodPlugin',)PODS=[{# maps this pod to the dummy pod type'label':'dummy_pod',# title of the pod to show in the ui'title':'Maternal Health Info',# static data to show as item in the ui for this pod# (only relevant to the dummy pod type)'data':{'items':[{'name':'EDD','value':'2015-07-18'},{'name':'Clinic Code','value':'2034 6524 6421'}]}}]