Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Oct 26, 2023
1 parent 3685ca1 commit 8499d71
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/redturtle/prenotazioni/content/prenotazioni_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from collective.z3cform.datagridfield.datagridfield import DataGridFieldFactory
from collective.z3cform.datagridfield.row import DictRow
from plone import api
from plone.app.textfield import RichText
from plone.autoform import directives
from plone.autoform import directives as form
Expand Down Expand Up @@ -736,11 +735,4 @@ def getCosaServe(self):
return self.cosa_serve

def get_booking_types(self) -> Generator[BookingType, None, None]:
for booking_type in api.content.find(
portal_type="BookingType",
path={
"query": "/".join(self.getPhysicalPath()),
"depth": 1,
},
):
yield booking_type.getObject()
return self.listFolderContents(contentFilter={"portal_type": "BookingType"})

0 comments on commit 8499d71

Please sign in to comment.