From: jok2 <svn...@pl...> - 2005-06-28 15:42:02
|
Author: jok2 Date: Tue Jun 28 11:33:50 2005 New Revision: 7357 Modified: CMFPlone/branches/jok2-search-configlet/skins/plone_prefs/prefs_search_form.cpt CMFPlone/branches/jok2-search-configlet/skins/plone_prefs/prefs_search_set.cpy Log: changed the prefs_search_set.cpy to use getToolByName() Modified: CMFPlone/branches/jok2-search-configlet/skins/plone_prefs/prefs_search_form.cpt ============================================================================== --- CMFPlone/branches/jok2-search-configlet/skins/plone_prefs/prefs_search_form.cpt (original) +++ CMFPlone/branches/jok2-search-configlet/skins/plone_prefs/prefs_search_form.cpt Tue Jun 28 11:33:50 2005 @@ -11,7 +11,7 @@ <div metal:fill-slot="prefs_configlet_main" tal:define="errors options/state/getErrors;"> - <h1 i18n:translate="heading_search_setup">Search Setup</h1> + <h1 i18n:translate="heading_search_setup">Search Settings</h1> <a href="" class="link-parent" @@ -21,7 +21,7 @@ </a> <p i18n:translate="description_search_setup"> - Search setup for Plone. + Search settings for Plone. </p> <form action="" Modified: CMFPlone/branches/jok2-search-configlet/skins/plone_prefs/prefs_search_set.cpy ============================================================================== --- CMFPlone/branches/jok2-search-configlet/skins/plone_prefs/prefs_search_set.cpy (original) +++ CMFPlone/branches/jok2-search-configlet/skins/plone_prefs/prefs_search_set.cpy Tue Jun 28 11:33:50 2005 @@ -8,13 +8,14 @@ ##parameters=livesearch=False, RESPONSE=None ##title=Set Search Prefs ## -#from Products.CMFCore import getToolByName + +from Products.CMFCore.utils import getToolByName REQUEST=context.REQUEST -portal_properties=context.portal_properties +portal_properties=getToolByName(context, 'portal_properties') -jstool=context.portal_javascripts +jstool=getToolByName(context, 'portal_javascripts') jstool.unregisterResource('livesearch.js') if livesearch: @@ -24,6 +25,6 @@ portal_properties.site_properties.manage_changeProperties(enable_livesearch=False) jstool.registerScript('livesearch.js',enabled=False) -msg = 'Search setup updated.' +msg = 'Search settings updated.' return state.set(portal_status_message=msg) |