Skip to content

Commit

Permalink
Remove no longer used content_grid_width and ``sidebar_left_grid_…
Browse files Browse the repository at this point in the history
…width`` properties from ``ILayoutConfig``.
  • Loading branch information
rnixx committed Nov 20, 2024
1 parent 5b4d8e2 commit a6fae75
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changes
1.1rc2 (unreleased)
-------------------

- Nothing changed yet.
- Remove no longer used ``content_grid_width`` and ``sidebar_left_grid_width``
properties from ``ILayoutConfig``.


1.1rc1 (2024-05-23)
Expand Down
2 changes: 0 additions & 2 deletions src/cone/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ def __init__(self, model=None, request=None):
self.columns_fluid = True
self.pathbar = True
self.sidebar_left = ['navtree']
self.sidebar_left_grid_width = 3
self.content_grid_width = 9


def import_from_string(path):
Expand Down
2 changes: 0 additions & 2 deletions src/cone/app/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ class ILayoutConfig(IProperties):
columns_fluid = Attribute(u'Flag whether columns are fluid')
pathbar = Attribute(u'Flag whether to display pathbar')
sidebar_left = Attribute(u'Tiles which should be rendered in sidebar')
sidebar_left_grid_width = Attribute(u'Sidebar grid width')
content_grid_width = Attribute(u'Content grid width')


# B/C, removed as of cone.app 1.1
Expand Down
2 changes: 0 additions & 2 deletions src/cone/app/testing/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ def default_layout(context):
config.columns_fluid = False
config.pathbar = True
config.sidebar_left = ['navtree']
config.sidebar_left_grid_width = 3
config.content_grid_width = 9
return config


Expand Down
2 changes: 0 additions & 2 deletions src/cone/app/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ def test_layout_config(self):
self.assertTrue(config.columns_fluid)
self.assertTrue(config.pathbar)
self.assertEqual(config.sidebar_left, ['navtree'])
self.assertEqual(config.sidebar_left_grid_width, 3)
self.assertEqual(config.content_grid_width, 9)

@layout_config(BaseNode)
class BaseNodeLayout(LayoutConfig):
Expand Down

0 comments on commit a6fae75

Please sign in to comment.