-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit f748cd7 Author: Roman <[email protected]> Date: Fri Oct 27 17:49:34 2023 +0200 Refactor the @@prenotazioni_context_state.get_booking_type_duration method commit d1209e7 Author: Roman <[email protected]> Date: Thu Oct 26 15:10:41 2023 +0200 Refactor commit 8da8dea Author: Roman <[email protected]> Date: Thu Oct 26 15:05:56 2023 +0200 Refactor commit 5aac9ce Author: Roman <[email protected]> Date: Thu Oct 26 14:37:37 2023 +0200 Fix typos commit 190b0ca Author: Roman <[email protected]> Date: Thu Oct 19 16:54:46 2023 +0200 Initial implementation
- Loading branch information
Showing
54 changed files
with
1,456 additions
and
1,066 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# -*- coding: utf-8 -*- | ||
from plone.app.textfield import RichText | ||
from plone.dexterity.content import Item | ||
from plone.supermodel import model | ||
from zope import schema | ||
from zope.interface import implementer | ||
|
||
from redturtle.prenotazioni import _ | ||
|
||
|
||
class IBookingType(model.Schema): | ||
"""Marker interface and Dexterity Python Schema for Prenotazione""" | ||
|
||
duration = schema.Choice( | ||
title=_("booking_type_duration_label", default="Duration value"), | ||
required=True, | ||
vocabulary="redturtle.prenotazioni.VocDurataIncontro", | ||
) | ||
|
||
requirements = RichText( | ||
required=False, | ||
title=_("booking_type_requirements_labled", default="Requirements"), | ||
description=_( | ||
"booking_type_requirements_help", | ||
default="List of requirements to recieve the service", | ||
), | ||
) | ||
|
||
gates = schema.List( | ||
title=_("gates_label", default="Gates"), | ||
description=_("gates_help", default="Put gates here (one per line)."), | ||
required=True, | ||
value_type=schema.Choice( | ||
vocabulary="redturtle.prenotazioni.VocBookingTypeGates" | ||
), | ||
default=[], | ||
) | ||
|
||
|
||
@implementer(IBookingType) | ||
class BookingType(Item): | ||
""" """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.