Introduction
Add custom views to the Plone booking product pd.prenotazioni.
The functionality of this package will be merged in pd.prenotazioni.
The views
prenotazione_add_ro
This is a form with all fields hidden. It is meant to be used to display the data before final submission.
slots.json
Call this view like this:
It will return a list of urls:
[
"http://localhost:8080/Plone/agenda/prenotazione_add?form.booking_date=2014-06-23+09%3A00&",
"http://localhost:8080/Plone/agenda/prenotazione_add?form.booking_date=2014-06-23+09%3A05&",
...
"http://localhost:8080/Plone/agenda/prenotazione_add?form.booking_date=2014-06-23+17%3A50&",
"http://localhost:8080/Plone/agenda/prenotazione_add?form.booking_date=2014-06-23+17%3A55&"
]
If the parameter booking_date is not specified it will default to today.
tipologies.json
Call this view like this:
It will return a json object:
{
"Task for 1 person": 10,
"Task for 2 people": 20,
"Task for 3 people": 30
}
The key is the booking tipology name, the value the booking duration in minutes.
Credits
Developed with the support of Comune di Padova.
Comune di Padova supports the PloneGov initiative.
Changelog
1.0.1 (2014-09-10)
Moved custom prenotazioni_context_state to pd.prenotazioni [alert]
1.0.0 (2014-05-05)
Initial release [alert]
Download
Metadata
Release files for pd.plonedemografico 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pd.plonedemografico-1.0.1.zip | 30.1 kB | Without provenance | Details for pd.plonedemografico-1.0.1.zip |
Release files / pd.plonedemografico-1.0.1.zip
| Download URL | pd.plonedemografico-1.0.1.zip |
|---|---|
| Size | 30.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
215e8c85e16de70ba33607c348648a00feb1391d6ec7b8f0e1d710315d5e6ad6
|
|
BLAKE2b-256 checksum How to use checksums |
c436d513a151865cf472fafcb07a1f8413c8e26ebe5e41fd8de143876d1f8c6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pd.plonedemografico 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.