Skip to main content

Example casepro data pod returning statically configureddata

Project description

Example casepro data pod returning statically configured data.

Install

$ pip install casepropods.dummy

Usage

In casepro’s settings file, add the pod as an installed app, and configure the pods that you would like to show in the UI:

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'
        }]
    }
}]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

casepropods.dummy-0.2.4.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

casepropods.dummy-0.2.4-py2-none-any.whl (4.3 kB view details)

Uploaded Python 2

File details

Details for the file casepropods.dummy-0.2.4.tar.gz.

File metadata

File hashes

Hashes for casepropods.dummy-0.2.4.tar.gz
Algorithm Hash digest
SHA256 c6d1faac8c4fa8a4f27862616529a0dc878a7c0fc7e99908f41793a46f0d559f
MD5 6d65b864fdfe3c68c837734cf882946e
BLAKE2b-256 2b8dd64b098140b5d433c11773e4897b5f57067d0080cfba68f5f969fc7a5b48

See more details on using hashes here.

File details

Details for the file casepropods.dummy-0.2.4-py2-none-any.whl.

File metadata

File hashes

Hashes for casepropods.dummy-0.2.4-py2-none-any.whl
Algorithm Hash digest
SHA256 5b2f94df53f12e489a6303a9f04781877a26aa8865e161d0014874fcad355c75
MD5 8deb52b51933d3040015aac9460d838a
BLAKE2b-256 69f57a98bd8c308538155050e0f62ee58d6ed53eb9950a3234968c72540a07f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page