Skip to content

Commit

Permalink
Remove site_properties from comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Jun 19, 2024
1 parent 0b35cd1 commit 508eda4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions Products/CMFPlone/PloneTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,8 @@ def browserDefault(self, obj):
# 3. If the object has a property default_page set and this gives a list
# of, or single, object id, and that object is is found in the
# folder or is the name of a skin template, return that id
# 4. If the property default_page is set in site_properties and that
# property contains a list of ids of which one id is found in the
# folder, return that id
# 4. Look up the property plone.default_page in the registry for
# magic ids and test these.
# 5. If the object implements IBrowserDefault, try to get the selected
# layout.
# 6. If the type has a 'folderlisting' action and no default page is
Expand Down Expand Up @@ -928,7 +927,7 @@ def getUserFriendlyTypes(self, typesList=None):
# and selection purposes.
#
# This is the list of types available in the portal, minus those
# defined in the types_not_searched property in site_properties, if it
# defined in the types_not_searched property in the registry, if it
# exists.
#
# If typesList is given, this is used as the base list; else all types
Expand Down
2 changes: 1 addition & 1 deletion Products/CMFPlone/tests/testNavigationView.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def testTabInfo(self):
self.assertTrue("review_state" in tab and tab["review_state"])

def testDisableFolderTabs(self):
# Setting the site_property disable_folder_sections should remove
# Setting the registry setting generate_tabs to False should remove
# all folder based tabs
self.navigation_settings.generate_tabs = False
view = self.view_class(self.portal, self.request)
Expand Down
4 changes: 2 additions & 2 deletions Products/CMFPlone/tests/test_defaultpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def test_get_default_page_step_3_2(self):
self.assertEqual("d1", get_default_page(self.folder))

def test_get_default_page_step_4(self):
# 4. Else, look up the property default_page in site_properties for
# magic ids and test these
# 4. Else, look up the property plone.default_page in the registry for
# magic ids and test these
registry = getUtility(IRegistry)
registry["plone.default_page"] = ["d1"]
self.folder.invokeFactory("Document", "d1", title="Doc 1")
Expand Down

0 comments on commit 508eda4

Please sign in to comment.