Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Oct 26, 2023
1 parent fadc3a9 commit 9cc497e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ Changelog
2.1.4 (unreleased)
------------------

- Convert bookgig types to c.t.
- Convert booking types to c.t.
[folix-01]

- Change bookings default limit to 0.
[folix-01]

- Fix Bookings Manager permission in according to expected behavior
[folix-01]

Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/prenotazioni/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


def is_migration():
"""Returns True if the current reqeust provides the migration marker"""
"""Returns True if the current request provides the migration marker"""
return IMigrationMarker and IMigrationMarker.providedBy(getRequest())


Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/prenotazioni/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ class IPrenotazioneEmailMessage(Interface):
"""Prenotazione email message"""


class ISerializeToRetrocompattibleJson(Interface):
class ISerializeToRetroCompatibleJson(Interface):
"""Interface used to cereate the TEMPORARY retrocomattible serializers"""
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from redturtle.prenotazioni.content.booking_type import IBookingType
from redturtle.prenotazioni.interfaces import (
IRedturtlePrenotazioniLayer,
ISerializeToRetrocompattibleJson,
ISerializeToRetroCompatibleJson,
)


@implementer(ISerializeToRetrocompattibleJson)
@implementer(ISerializeToRetroCompatibleJson)
@adapter(IBookingType, IRedturtlePrenotazioniLayer)
class BookingTypeRetrocompattibleSerializer:
class BookingTypeRetroCompatibleSerializer:
def __init__(self, context, request):
self.context = context
self.request = request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<adapter factory=".prenotazione.PrenotazioneSerializer" />
<adapter factory=".prenotazione.PrenotazioneSearchableItemSerializer" />
<adapter factory=".prenotazioni_folder.PrenotazioniFolderSerializer" />
<adapter factory=".booking_type.BookingTypeRetrocompattibleSerializer" />
<adapter factory=".booking_type.BookingTypeRetroCompatibleSerializer" />

</configure>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from redturtle.prenotazioni import _, datetime_with_tz
from redturtle.prenotazioni.config import STATIC_REQUIRED_FIELDS
from redturtle.prenotazioni.interfaces import ISerializeToRetrocompattibleJson
from redturtle.prenotazioni.interfaces import ISerializeToRetroCompatibleJson


class BookingSchema(Service):
Expand Down Expand Up @@ -141,7 +141,7 @@ def get_booking_types(self):

for item in self.context.get_booking_types():
serialized_item = getMultiAdapter(
(item, self.request), ISerializeToRetrocompattibleJson
(item, self.request), ISerializeToRetroCompatibleJson
)()

if item.title in bookings["bookable"]:
Expand Down

0 comments on commit 9cc497e

Please sign in to comment.