Package: pd.prenotazioni
ContentsIntroductionCustomizationsBooking folder content typeprenotazioni_context_stateCustom mail actionBooking PDF receiptCustom event logEvent log viewsCustomized Searchable textPopup with tooltipsterCreditsAuthorsChange history1.6.1 (2022-07-08)1.6.0 (2022-07-08)1.5.0 (2016-03-16)1.4.0 (2016-03-15)1.3.1 (2015-08-10)1.3.0 (2014-11-06)1.2.3 (2014-09-15)1.2.2 (2014-09-12)1.2.1 (2014-09-11)1.2.0 (2014-09-10)1.1.1 (2014-06-23)1.1.0 (unreleased)1.0.1 (2014-06-04)1.0.0 (2014-05-05)DownloadIntroductionAbooking product for Ploneto reserve time slots throughout the week.CustomizationsThis product is an extension that customizesrg.prenotazioniBooking folder content typeThis package provides an extender to add the fields:required_booking_fieldssame_day_booking_disallowedThe field “required_booking_fields” allows to specify which of the fields:emailmobilephonesubjectagencyshould be mandatory for a booking request to be accepted.
In any case at least one between email, mobile and phone
should be given at booking time.The field “same_day_booking_disallowed” has 3 possible states:YesNoNo, just for todayIf 1. is selected the default behavior ofrg.prenotazioniis maintained: users cannot reserve a booking today.Options 2. and 3. instead allow the reservation.prenotazioni_context_stateExtends therg.prenotazioni homonymous viewin order to override the
minimum date since when it is possible to reserve a booking.Extends therg.prenotazioni homonymous viewin order to override
the attributeadd_view.
If a parameter calledform.add_viewis passed, it will be used
as the add form for a booking object.We use this in combination with an apache rewrite rule that injects in the
request the parameter with the valueprenotazioni_add_ro:RewriteCond %{QUERY_STRING} !((.*)form_add_view=(.*))
RewriteRule ^/path_to_enable_custom_form/(.*) /notheme/$1?form.add_view=prenotazione_add_ro [QSA]Custom mail actionThe product overrides the mail action defined bycollective.contentrules.mailfromfield, providing additional markers
dedicate to the booking product:${gate}${date}${time}${type}Booking PDF receiptThere is a view calledprenotazione_print_pdfthat uses reportlab to create a high quality PDF file
with the details of the booking.Since version1.5.0, the logo is optional and configurable.The logo can be customized
adding to the instance part
of your buildout this snippet:zope-conf-additional +=
  <product-config pd.prenotazioni>
      logo file://${buildout:directory}/resources/logo-print-pdf.png
  </product-config>the value for the logo property should be a valid URL, e.g.:file://some/path/logo.jpghttp://example.com/logo.jpgCustom event logThe product registers, optionally, some events to an external logfile:booking creationbooking workflow state modificationbooking date/time modificationIn order to track modification the product adds the booking content type
to the reposository tool.The custom event log has to be enabled
setting a custom propertylogfile,
adding to the instance part
of your buildout this snippet:zope-conf-additional +=
  <product-config pd.prenotazioni>
      logfile ${buildout:directory}/var/log/prenotazioni.log
  </product-config>Event log viewsThe logged events can also be viewed online
using thewbooking_statsform.The form displays to the user the data of the agendas he can manage
contained under the context path.Calling this view on the root of the Plone site return data from all
the manageable agendas.The view displays data in a table and provides a link and an action
for downloading the logged events in a csv file.There is also a view, calledbooking_stats_delete,
that will delete all the log entry inserted before
the specified date.Customized Searchable textSearchable text for booking objects is customized in order to add
the modification comments to the index.The product removes from the booking searchable text those fields:gatesubjectlocationPopup with tooltipsterThe product adds to the agenda some pop-ups using the librarytooltipsterCreditsDeveloped with the support ofComune di Padova;
Comune di Padova supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.Change history1.6.1 (2022-07-08)Fix typo.
[cekk]1.6.0 (2022-07-08)Monkeypatch for __sub__ method in BaseSlot.
[cekk]1.5.0 (2016-03-16)New:The logo for the pdf is now configurable through zope.conf
[ale-rt]1.4.0 (2016-03-15)Try to support all versions of collective.fontawesome
[ale-rt, pnicolli]Improved logo quality in pdf printout
[ale-rt, pnicolli]1.3.1 (2015-08-10)Properly set encoding to utf8 when registering pdf view
[ale-rt]1.3.0 (2014-11-06)user_can_search method moved to prenotazioni_context_state.1.2.3 (2014-09-15)Fix csv encoding.Modified content_rules patch
[ale-rt]1.2.2 (2014-09-12)When deciding the required fields in prenotazione_add form don’t touch
some fields
[ale-rt]1.2.1 (2014-09-11)Look for permission in context_state view
[alert]1.2.0 (2014-09-10)Requires rg.prenotazioni >= 3.5.0Adds with an extender the capability to make reservation for the same dayAdds with an extender the capability to specify the fields required
at booking timeHandling statistics
[alert]1.1.1 (2014-06-23)Fix encoding problem.1.1.0 (unreleased)Index also revision historyAdded Tooltipster
[alert]1.0.1 (2014-06-04)Patch per gestione di contentrulesModified search results for prenotazioniSmall modifications on pdfAdded a confirmation page for anonymous users.Readers can search bookingsRequires rg.prenotazioni > 3.3.0.dev0
[alert]1.0.0 (2014-05-05)Upgrade step for repositorytool profile [nicolasenno]Added to logger detail about modification, old value new value [nicolasenno]·Added logger for IPrenotazione objects modification [nicolasenno]Patching Prenotazione schema to allow modification to prenotazione objects
without email [alert]Removed buttons from the folder_contents view of PrenotazioniFolder [alert]Removed actions menu for Prenotazione [alert]Aggiunto validatore campi email, telefono e cellulare in form richiesta
prenotazioni [nicolasenno]Added events logger for IPrenotazione [nicolasenno]Rimosso campo email obbligatorio form richiesta prenotazioni [nicolasenno]Added event handler loggerPackage created using templer
[RedTurtle Technology]Download