Skip to content

Commit 508eda4

Browse files
Remove site_properties from comments.
1 parent 0b35cd1 commit 508eda4

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Products/CMFPlone/PloneTool.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,8 @@ def browserDefault(self, obj):
623623
# 3. If the object has a property default_page set and this gives a list
624624
# of, or single, object id, and that object is is found in the
625625
# folder or is the name of a skin template, return that id
626-
# 4. If the property default_page is set in site_properties and that
627-
# property contains a list of ids of which one id is found in the
628-
# folder, return that id
626+
# 4. Look up the property plone.default_page in the registry for
627+
# magic ids and test these.
629628
# 5. If the object implements IBrowserDefault, try to get the selected
630629
# layout.
631630
# 6. If the type has a 'folderlisting' action and no default page is
@@ -928,7 +927,7 @@ def getUserFriendlyTypes(self, typesList=None):
928927
# and selection purposes.
929928
#
930929
# This is the list of types available in the portal, minus those
931-
# defined in the types_not_searched property in site_properties, if it
930+
# defined in the types_not_searched property in the registry, if it
932931
# exists.
933932
#
934933
# If typesList is given, this is used as the base list; else all types

Products/CMFPlone/tests/testNavigationView.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def testTabInfo(self):
247247
self.assertTrue("review_state" in tab and tab["review_state"])
248248

249249
def testDisableFolderTabs(self):
250-
# Setting the site_property disable_folder_sections should remove
250+
# Setting the registry setting generate_tabs to False should remove
251251
# all folder based tabs
252252
self.navigation_settings.generate_tabs = False
253253
view = self.view_class(self.portal, self.request)

Products/CMFPlone/tests/test_defaultpage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def test_get_default_page_step_3_2(self):
106106
self.assertEqual("d1", get_default_page(self.folder))
107107

108108
def test_get_default_page_step_4(self):
109-
# 4. Else, look up the property default_page in site_properties for
110-
# magic ids and test these
109+
# 4. Else, look up the property plone.default_page in the registry for
110+
# magic ids and test these
111111
registry = getUtility(IRegistry)
112112
registry["plone.default_page"] = ["d1"]
113113
self.folder.invokeFactory("Document", "d1", title="Doc 1")

0 commit comments

Comments
 (0)