Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

PD Prenotazioni for Plone Demografico

Project Description

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.

Authors

This product was developed by RedTurtle Technology team.

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]
Release History

Release History

This version
History Node

1.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pd.plonedemografico-1.0.1.zip (30.1 kB) Copy SHA256 Checksum SHA256 Source Sep 10, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting