{"id":25176273,"url":"https://github.com/redturtle/design.plone.ioprenoto","last_synced_at":"2025-05-06T23:18:59.682Z","repository":{"id":158003771,"uuid":"624379664","full_name":"RedTurtle/design.plone.ioprenoto","owner":"RedTurtle","description":"This product is designed to integrate redturtle.prenotazioni package with design.plone.contenttypes","archived":false,"fork":false,"pushed_at":"2025-03-07T21:32:13.000Z","size":352,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-26T04:46:00.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedTurtle.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE.GPL","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-06T10:39:57.000Z","updated_at":"2025-03-07T21:32:05.000Z","dependencies_parsed_at":"2023-09-23T12:53:05.209Z","dependency_job_id":"b03c073b-00c5-4c63-868f-88993c2704af","html_url":"https://github.com/RedTurtle/design.plone.ioprenoto","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fdesign.plone.ioprenoto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fdesign.plone.ioprenoto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fdesign.plone.ioprenoto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Fdesign.plone.ioprenoto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTurtle","download_url":"https://codeload.github.com/RedTurtle/design.plone.ioprenoto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252782939,"owners_count":21803424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-09T13:16:47.858Z","updated_at":"2025-05-06T23:18:59.652Z","avatar_url":"https://github.com/RedTurtle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\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\u0026v=4\n   :alt: RedTurtle Technology Site\n   :target: http://www.redturtle.it/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Fdesign.plone.ioprenoto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredturtle%2Fdesign.plone.ioprenoto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Fdesign.plone.ioprenoto/lists"}