Skip to content

Commit

Permalink
Move search control panel to browser dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Feb 21, 2014
1 parent 58b794b commit f4745e8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Products/CMFPlone/controlpanel/README.rst
Expand Up @@ -11,7 +11,7 @@ can be looked up like this::
>>> from Products.CMFPlone.interfaces import ISearchSchema
>>> search_settings = registry.forInterface(ISearchSchema)

>>> site_settings.enable_livesearch
>>> search_settings.enable_livesearch
True

If you want to change the settings, just change the attribute::
Expand Down
14 changes: 14 additions & 0 deletions Products/CMFPlone/controlpanel/browser/configure.zcml
@@ -0,0 +1,14 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:browser="http://namespaces.zope.org/browser">

<!-- Search Control Panel -->
<browser:page
name="search-controlpanel"
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
class=".search.SearchControlPanel"
permission="plone.app.controlpanel.Search"
/>

</configure>
File renamed without changes.
13 changes: 2 additions & 11 deletions Products/CMFPlone/controlpanel/configure.zcml
@@ -1,19 +1,10 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:browser="http://namespaces.zope.org/browser">
xmlns:five="http://namespaces.zope.org/five">

<include package="plone.app.registry" />

<include package=".bbb" />
<!--<include package=".browser" />-->

<!-- Search Control Panel -->
<browser:page
name="search-controlpanel"
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
class=".search.SearchControlPanel"
permission="plone.app.controlpanel.Search"
/>
<include package=".browser" />

</configure>

1 comment on commit f4745e8

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TESTS PASSED
Mr.Roboto url : http://jenkins.plone.org/roboto/get_info?push=4f00a718ecd54085b423bc0c6c32b10d
plone-5.0-python-2.7 [SUCCESS]

Please sign in to comment.