.. image:: https://img.shields.io/pypi/v/design.plone.ioprenoto.svg
:target: https://pypi.org/project/design.plone.ioprenoto/
:alt: Latest Version
.. image:: https://img.shields.io/pypi/pyversions/design.plone.ioprenoto.svg?style=plastic
:target: https://pypi.org/project/design.plone.ioprenoto/
:alt: Supported - Python Versions
.. image:: https://img.shields.io/pypi/dm/design.plone.ioprenoto.svg
:target: https://pypi.org/project/design.plone.ioprenoto/
:alt: Number of PyPI downloads
.. image:: https://img.shields.io/pypi/l/design.plone.ioprenoto.svg
:target: https://pypi.org/project/design.plone.ioprenoto/
:alt: License
.. image:: https://github.com/RedTurtle/design.plone.ioprenoto/actions/workflows/tests.yml/badge.svg
:target: https://github.com/RedTurtle/design.plone.ioprenoto/actions
:alt: Tests
.. image:: https://coveralls.io/repos/github/RedTurtle/design.plone.ioprenoto/badge.svg?branch=master
:target: https://coveralls.io/github/RedTurtle/design.plone.ioprenoto?branch=master
:alt: Coverage
=======================
Design Plone Io-Prenoto
=======================
This product is designed to integrate `redturtle.prenotazioni` package with `design.plone.contenttypes`
PrenotazioniFolder additional fields
====================================
There is a behavior that adds some additional fields:
- Uffici correlati
- Orario di apertura
Rest API
========
Servizio serializer
-------------------
There is a customization of Servizio serializer that adds an additional field:
- `referenced_by_prenotazioni_folder` which idicates if it has backreferences to PrenotazioniFolder
(design.plone.ioprenoto) throught correlated UO (with "Uffici correlati" field)
PrenotazioniFolder serializer
-----------------------------
There is a customization of PrenotazioniFolder serializer that redirects to '/prenotazione-appuntamenti-uffici'
if the user has not `design.plone.ioprenoto.ManagePrenotazioni`.
@bookable-uo-list
-----------------
Endpoint that returns a list of *UnitaOrganizzativa* contents that have at least one PrenotazioniFolder that
relates to it (with "Uffici correlati" field).
Parameters:
- **uid**: The uid of a Servizio.
The endpoint can be called with a GET request::
curl -i http://localhost:8080/Plone/@bookable-uo-list -H 'Accept: application/json'
Response::
{
"@id": "http://localhost:8080/Plone/@bookable-uo-list",
"items": [
{
"@id": "...",
"title": "...",
"id": "...",
"prenotazioni_folder": [
{
"@id": "http://localhost:8080/Plone/prenotazioni-folder",
"address": {
"@id": "http://localhost:8080/Plone/a-venue",
"@type": "Venue",
"city": "Ferrara",
"geolocation": {
"latitude": 1111,
"longitude": 2222,
},
...
}
}
],
}
]
}
If uid parameter is passed, only UnitaOrganizzative related to that Servizio (with *canale_fisico* relation field) will be returned.
@bookable-list
--------------
Endpoint that returns a list of *Bookable*.
The endpoint can be called with a GET request::
curl -i http://localhost:8080/Plone/@bookable-list -H 'Accept: application/json'
Response::
{
"@id": "http://localhost:8080/Plone/@bookable-list",
"items": [
{
"@id": "...",
"title": "...",
"url": "...",
"booking_types": [],
}
]
}
Content Rules (mail notifications) of redturtle.prenotazioni
------------------------------------------------------------
The email templates var list is extended by the following variables:
* ``${unita_organizzativa_title}`` - title of UnitaOrganizzativa related to PrenotazioniFolder.
* ``${booking_print_url_with_delete_token}`` - booking pring url with delete token.
Installation
============
Install design.plone.ioprenoto by adding it to your buildout::
[buildout]
...
eggs =
design.plone.ioprenoto
and then running `bin/buildout`
Contribute
==========
- Issue Tracker: https://github.com/RedTurtle/design.plone.ioprenoto/issues
- Source Code: https://github.com/RedTurtle/design.plone.ioprenoto
Notes
=====
**design.plone.ioprenoto** has been tested with Plone 6 and works with Python 3.
Authors
=======
This product was developed by **RedTurtle Technology** team.
.. image:: https://avatars1.githubusercontent.com/u/1087171?s=100&v=4
:alt: RedTurtle Technology Site
:target: http://www.redturtle.it/
Contributors
============
- RedTurtle, info@redturtle.it
Changelog
=========
1.2.8 (2024-10-17)
------------------
- Fix get prenotazione, for missing gate
[mamico]
1.2.7 (2024-10-17)
------------------
- Fix add prenotazione, for missing gate
[mamico]
1.2.6 (2024-08-21)
------------------
- Added more information in the `/@booking/<bookingid>` service (e.g. booking_folder, booking_address, booking_office),
already present in the `/@bookings?fullobjects=1` service. https://github.com/RedTurtle/design.plone.ioprenoto/pull/41
These changes will be moved in the future from here to redturtle.prenotazioni 2.3.x
[mamico]
1.2.5 (2024-04-22)
------------------
- Refactor rest service to simplify inheritance
[lucabel]
- Add redturtle.prenotazioni's notify_upcoming_bookings script to console_scripts (allows it to be available in the buildout).
[folix-01]
1.2.4 (2024-04-11)
------------------
- default b_size for booking types vocabulary serializer to 200
[mamico]
1.2.3 (2024-03-13)
------------------
- Fix problem with DefaultJSONSummarySerializer hineritance in prenotazioniFolder
DefaultJSONSummarySerializer override.
[lucabel]
- Add the plone.restapi>=9.6.0 constaint.
[folix-01]
1.2.2 (2024-01-25)
------------------
- Fix: term values must be unique in booking_type vocabulary
[mamico]
- Fix booking_type encoding
[mamico]
1.2.1 (2023-12-19)
------------------
- booking_type vocabulary for Service
[mamico]
- Align tests with redturtle.prenotazioni > 2.2.5.
[cekk]
1.2.0 (2023-11-20)
------------------
- [BREAKING CHANGE] Compatibility with redturtle.prenotazioni>=2.2.0.
[folix-01]
- Handle missing infos in prenotazioniFolder serializer.
[cekk]
- Add the UO.contact_info field to @bookable-uo-list response.
[folix-01]
- Extend prenotazioni email vars list (unita_organizzativa_title, booking_print_url_with_delete_token).
[folix-01]
1.1.10 (2023-10-16)
-------------------
- Inherit redturtle.prenotazioni browser layer.
[folix-01]
1.1.9 (2023-10-13)
------------------
- Compatibilize with the 2.1.3redturtle.prenotazioni version.
[folix-01]
1.1.8 (2023-10-13)
------------------
- Update redturtle.prenotazioni version to >= 2.1.1
[folix-01]
- Add the UO.contact_info field to @bookable-uo-list response.
[folix-01]
1.1.7 (2023-09-25)
------------------
- Workaround booking_url in @bookings differente per gestori e cittadini
[mamico]
1.1.6 (2023-09-22)
------------------
- Fix @bookings overrides
[mamico]
1.1.5 (2023-09-05)
------------------
- Move redirect for anonymous in the frontend
[mamico]
1.1.4 (2023-08-31)
------------------
- Fixed the manager message stringinterp adapter.
[folix-01]
1.1.3 (2023-08-11)
------------------
- Fix bad stringinterp adapter definition.
[folix-01]
- Remove "description" field to customizable PrenotazioniFolder fields.
[cekk]
- Customize @booking-schema endpoint to set *description* as always required.
[cekk]
- Url operator
[mamico]
1.1.2 (2023-07-25)
------------------
- Fix redireect url for anonymous
[mamico]
- Changed label 'uffici correalti'
[mamico]
1.1.1 (2023-07-07)
------------------
- fix booking_url in @bookings
[mamico]
1.1.0 (2023-06-30)
------------------
- Move message to contentrule in iocittadino
[mamico]
- Handle custom frontend_domain in notification urls (to fix the /admin problem).
[cekk]
- Fix permission management in PrenotazioniFolder serializer.
[cekk]
1.0.10 (2023-06-20)
-------------------
- Fix the prentazione created message.
[folix-01]
1.0.9 (2023-06-19)
------------------
- Fix the prentazione link in the message.
[folix-01]
1.0.8 (2023-06-19)
------------------
- Edit prenotazione creation message.
[folix-01]
1.0.7 (2023-06-16)
------------------
- Add title to message created on prenotazione creation(#42314).
[folix-01]
1.0.6 (2023-06-16)
------------------
- On message creation use `sent` state.
[folix-01]
1.0.5 (2023-06-16)
------------------
- Add message on Prenotazione creation (#42314).
[folix-01]
1.0.4 (2023-06-14)
------------------
- Overrides @bookings for booking urls
[mamico]
1.0.3 (2023-06-13)
------------------
- typo "corellati" vs. "correlati" (+ i18n)
[mamico]
1.0.2 (2023-06-12)
------------------
- Fix uo-bookable-list esporta solo le stanze pubbliche
[mamico]
- Customize some stringinterp adapters to use io-comune frontend view.
[cekk]
1.0.1 (2023-04-06)
------------------
- Fix CI struments configs.
[foxtrot-dfm1]
1.0.0 (2023-04-06)
------------------
- Initial release.
[RedTurtle]
Raw data
{
"_id": null,
"home_page": "https://github.com/RedTurtle/design.plone.ioprenoto",
"name": "design.plone.ioprenoto",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "Python Plone CMS",
"author": "RedTurtle",
"author_email": "info@redturtle.it",
"download_url": "https://files.pythonhosted.org/packages/ee/08/88b387c03554e2c71295f72f8ecaf92d0b64f8d8233ab2667edcfd1c975c/design_plone_ioprenoto-1.2.8.tar.gz",
"platform": null,
"description": "\n.. image:: https://img.shields.io/pypi/v/design.plone.ioprenoto.svg\n :target: https://pypi.org/project/design.plone.ioprenoto/\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/pyversions/design.plone.ioprenoto.svg?style=plastic\n :target: https://pypi.org/project/design.plone.ioprenoto/\n :alt: Supported - Python Versions\n\n.. image:: https://img.shields.io/pypi/dm/design.plone.ioprenoto.svg\n :target: https://pypi.org/project/design.plone.ioprenoto/\n :alt: Number of PyPI downloads\n\n.. image:: https://img.shields.io/pypi/l/design.plone.ioprenoto.svg\n :target: https://pypi.org/project/design.plone.ioprenoto/\n :alt: License\n\n.. image:: https://github.com/RedTurtle/design.plone.ioprenoto/actions/workflows/tests.yml/badge.svg\n :target: https://github.com/RedTurtle/design.plone.ioprenoto/actions\n :alt: Tests\n\n.. image:: https://coveralls.io/repos/github/RedTurtle/design.plone.ioprenoto/badge.svg?branch=master\n :target: https://coveralls.io/github/RedTurtle/design.plone.ioprenoto?branch=master\n :alt: Coverage\n\n=======================\nDesign Plone Io-Prenoto\n=======================\n\nThis product is designed to integrate `redturtle.prenotazioni` package with `design.plone.contenttypes`\n\nPrenotazioniFolder additional fields\n====================================\n\nThere is a behavior that adds some additional fields:\n\n- Uffici correlati\n- Orario di apertura\n\nRest API\n========\n\nServizio serializer\n-------------------\n\nThere is a customization of Servizio serializer that adds an additional field:\n\n- `referenced_by_prenotazioni_folder` which idicates if it has backreferences to PrenotazioniFolder\n (design.plone.ioprenoto) throught correlated UO (with \"Uffici correlati\" field)\n\nPrenotazioniFolder serializer\n-----------------------------\n\nThere is a customization of PrenotazioniFolder serializer that redirects to '/prenotazione-appuntamenti-uffici'\nif the user has not `design.plone.ioprenoto.ManagePrenotazioni`.\n\n@bookable-uo-list\n-----------------\n\nEndpoint that returns a list of *UnitaOrganizzativa* contents that have at least one PrenotazioniFolder that\nrelates to it (with \"Uffici correlati\" field).\n\nParameters:\n\n- **uid**: The uid of a Servizio.\n\nThe endpoint can be called with a GET request::\n\n curl -i http://localhost:8080/Plone/@bookable-uo-list -H 'Accept: application/json'\n\nResponse::\n\n {\n \"@id\": \"http://localhost:8080/Plone/@bookable-uo-list\",\n \"items\": [\n {\n \"@id\": \"...\",\n \"title\": \"...\",\n \"id\": \"...\",\n \"prenotazioni_folder\": [\n {\n \"@id\": \"http://localhost:8080/Plone/prenotazioni-folder\",\n \"address\": {\n \"@id\": \"http://localhost:8080/Plone/a-venue\",\n \"@type\": \"Venue\",\n \"city\": \"Ferrara\",\n \"geolocation\": {\n \"latitude\": 1111,\n \"longitude\": 2222,\n },\n ...\n }\n }\n ],\n }\n ]\n }\n\nIf uid parameter is passed, only UnitaOrganizzative related to that Servizio (with *canale_fisico* relation field) will be returned.\n\n@bookable-list\n--------------\n\nEndpoint that returns a list of *Bookable*.\n\nThe endpoint can be called with a GET request::\n\n curl -i http://localhost:8080/Plone/@bookable-list -H 'Accept: application/json'\n\nResponse::\n\n {\n \"@id\": \"http://localhost:8080/Plone/@bookable-list\",\n \"items\": [\n {\n \"@id\": \"...\",\n \"title\": \"...\",\n \"url\": \"...\",\n \"booking_types\": [],\n }\n ]\n }\n\n\nContent Rules (mail notifications) of redturtle.prenotazioni\n------------------------------------------------------------\n\nThe email templates var list is extended by the following variables:\n\n* ``${unita_organizzativa_title}`` - title of UnitaOrganizzativa related to PrenotazioniFolder.\n* ``${booking_print_url_with_delete_token}`` - booking pring url with delete token.\n\n\nInstallation\n============\n\nInstall design.plone.ioprenoto by adding it to your buildout::\n\n [buildout]\n\n ...\n\n eggs =\n design.plone.ioprenoto\n\n\nand then running `bin/buildout`\n\nContribute\n==========\n\n- Issue Tracker: https://github.com/RedTurtle/design.plone.ioprenoto/issues\n- Source Code: https://github.com/RedTurtle/design.plone.ioprenoto\n\n\nNotes\n=====\n\n**design.plone.ioprenoto** has been tested with Plone 6 and works with Python 3.\n\nAuthors\n=======\n\nThis product was developed by **RedTurtle Technology** team.\n\n.. image:: https://avatars1.githubusercontent.com/u/1087171?s=100&v=4\n :alt: RedTurtle Technology Site\n :target: http://www.redturtle.it/\n\n\n\nContributors\n============\n\n- RedTurtle, info@redturtle.it\n\n\nChangelog\n=========\n\n1.2.8 (2024-10-17)\n------------------\n\n- Fix get prenotazione, for missing gate\n [mamico]\n\n\n1.2.7 (2024-10-17)\n------------------\n\n- Fix add prenotazione, for missing gate\n [mamico]\n\n\n1.2.6 (2024-08-21)\n------------------\n\n- Added more information in the `/@booking/<bookingid>` service (e.g. booking_folder, booking_address, booking_office),\n already present in the `/@bookings?fullobjects=1` service. https://github.com/RedTurtle/design.plone.ioprenoto/pull/41\n These changes will be moved in the future from here to redturtle.prenotazioni 2.3.x\n [mamico]\n\n\n1.2.5 (2024-04-22)\n------------------\n\n- Refactor rest service to simplify inheritance\n [lucabel]\n- Add redturtle.prenotazioni's notify_upcoming_bookings script to console_scripts (allows it to be available in the buildout).\n [folix-01]\n\n1.2.4 (2024-04-11)\n------------------\n\n- default b_size for booking types vocabulary serializer to 200\n [mamico]\n\n\n1.2.3 (2024-03-13)\n------------------\n\n- Fix problem with DefaultJSONSummarySerializer hineritance in prenotazioniFolder\n DefaultJSONSummarySerializer override.\n [lucabel]\n- Add the plone.restapi>=9.6.0 constaint.\n [folix-01]\n\n\n1.2.2 (2024-01-25)\n------------------\n\n- Fix: term values must be unique in booking_type vocabulary\n [mamico]\n\n- Fix booking_type encoding\n [mamico]\n\n1.2.1 (2023-12-19)\n------------------\n\n- booking_type vocabulary for Service\n [mamico]\n- Align tests with redturtle.prenotazioni > 2.2.5.\n [cekk]\n\n\n1.2.0 (2023-11-20)\n------------------\n\n- [BREAKING CHANGE] Compatibility with redturtle.prenotazioni>=2.2.0.\n [folix-01]\n- Handle missing infos in prenotazioniFolder serializer.\n [cekk]\n- Add the UO.contact_info field to @bookable-uo-list response.\n [folix-01]\n- Extend prenotazioni email vars list (unita_organizzativa_title, booking_print_url_with_delete_token).\n [folix-01]\n\n\n1.1.10 (2023-10-16)\n-------------------\n\n- Inherit redturtle.prenotazioni browser layer.\n [folix-01]\n\n\n1.1.9 (2023-10-13)\n------------------\n\n- Compatibilize with the 2.1.3redturtle.prenotazioni version.\n [folix-01]\n\n\n1.1.8 (2023-10-13)\n------------------\n\n- Update redturtle.prenotazioni version to >= 2.1.1\n [folix-01]\n- Add the UO.contact_info field to @bookable-uo-list response.\n [folix-01]\n\n\n1.1.7 (2023-09-25)\n------------------\n\n- Workaround booking_url in @bookings differente per gestori e cittadini\n [mamico]\n\n\n1.1.6 (2023-09-22)\n------------------\n\n- Fix @bookings overrides\n [mamico]\n\n1.1.5 (2023-09-05)\n------------------\n\n- Move redirect for anonymous in the frontend\n [mamico]\n\n\n1.1.4 (2023-08-31)\n------------------\n\n- Fixed the manager message stringinterp adapter.\n [folix-01]\n\n\n1.1.3 (2023-08-11)\n------------------\n\n- Fix bad stringinterp adapter definition.\n [folix-01]\n- Remove \"description\" field to customizable PrenotazioniFolder fields.\n [cekk]\n- Customize @booking-schema endpoint to set *description* as always required.\n [cekk]\n- Url operator\n [mamico]\n\n1.1.2 (2023-07-25)\n------------------\n\n- Fix redireect url for anonymous\n [mamico]\n\n- Changed label 'uffici correalti'\n [mamico]\n\n1.1.1 (2023-07-07)\n------------------\n\n- fix booking_url in @bookings\n [mamico]\n\n1.1.0 (2023-06-30)\n------------------\n\n- Move message to contentrule in iocittadino\n [mamico]\n\n- Handle custom frontend_domain in notification urls (to fix the /admin problem).\n [cekk]\n\n- Fix permission management in PrenotazioniFolder serializer.\n [cekk]\n\n1.0.10 (2023-06-20)\n-------------------\n\n- Fix the prentazione created message.\n [folix-01]\n\n\n1.0.9 (2023-06-19)\n------------------\n\n- Fix the prentazione link in the message.\n [folix-01]\n\n\n1.0.8 (2023-06-19)\n------------------\n\n- Edit prenotazione creation message.\n [folix-01]\n\n\n1.0.7 (2023-06-16)\n------------------\n\n- Add title to message created on prenotazione creation(#42314).\n [folix-01]\n\n1.0.6 (2023-06-16)\n------------------\n\n- On message creation use `sent` state.\n [folix-01]\n\n\n1.0.5 (2023-06-16)\n------------------\n\n- Add message on Prenotazione creation (#42314).\n [folix-01]\n\n\n1.0.4 (2023-06-14)\n------------------\n\n- Overrides @bookings for booking urls\n [mamico]\n\n\n1.0.3 (2023-06-13)\n------------------\n\n- typo \"corellati\" vs. \"correlati\" (+ i18n)\n [mamico]\n\n\n1.0.2 (2023-06-12)\n------------------\n\n- Fix uo-bookable-list esporta solo le stanze pubbliche\n [mamico]\n\n- Customize some stringinterp adapters to use io-comune frontend view.\n [cekk]\n\n1.0.1 (2023-04-06)\n------------------\n\n- Fix CI struments configs.\n [foxtrot-dfm1]\n\n\n1.0.0 (2023-04-06)\n------------------\n\n- Initial release.\n [RedTurtle]\n",
"bugtrack_url": null,
"license": "GPL version 2",
"summary": "An add-on for Plone",
"version": "1.2.8",
"project_urls": {
"Homepage": "https://github.com/RedTurtle/design.plone.ioprenoto",
"PyPI": "https://pypi.org/project/design.plone.ioprenoto/",
"Source": "https://github.com/RedTurtle/design.plone.ioprenoto",
"Tracker": "https://github.com/RedTurtle/design.plone.ioprenoto/issues"
},
"split_keywords": [
"python",
"plone",
"cms"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0d25014a6e99882af57be7a2d40821eb60c15cee4c44fa09a67045f1a2c5912e",
"md5": "58f8127345bdd1c77386d2ec2fe1efc5",
"sha256": "aa360422941187fdb032b7eebc5413aaa5a3e5f31332bda4f3bbc2bf6e0e39b4"
},
"downloads": -1,
"filename": "design.plone.ioprenoto-1.2.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "58f8127345bdd1c77386d2ec2fe1efc5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 61750,
"upload_time": "2024-10-17T14:28:14",
"upload_time_iso_8601": "2024-10-17T14:28:14.768655Z",
"url": "https://files.pythonhosted.org/packages/0d/25/014a6e99882af57be7a2d40821eb60c15cee4c44fa09a67045f1a2c5912e/design.plone.ioprenoto-1.2.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ee0888b387c03554e2c71295f72f8ecaf92d0b64f8d8233ab2667edcfd1c975c",
"md5": "a7ec3dbc4215b909dbbe7c29c246b898",
"sha256": "91a87ab24aaa8533279f51bd815013ce88af136b134f9ed3ab0a6d82288a69b6"
},
"downloads": -1,
"filename": "design_plone_ioprenoto-1.2.8.tar.gz",
"has_sig": false,
"md5_digest": "a7ec3dbc4215b909dbbe7c29c246b898",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 44496,
"upload_time": "2024-10-17T14:28:17",
"upload_time_iso_8601": "2024-10-17T14:28:17.022452Z",
"url": "https://files.pythonhosted.org/packages/ee/08/88b387c03554e2c71295f72f8ecaf92d0b64f8d8233ab2667edcfd1c975c/design_plone_ioprenoto-1.2.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-17 14:28:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "RedTurtle",
"github_project": "design.plone.ioprenoto",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"requirements": [],
"tox": true,
"lcname": "design.plone.ioprenoto"
}