From: bmh <svn...@pl...> - 2005-04-30 19:07:01
|
Author: bmh Date: Sat Apr 30 14:59:22 2005 New Revision: 6769 Modified: ResourceRegistries/trunk/tools/CSSRegistry.py ResourceRegistries/trunk/www/cssconfig.zpt Log: Applied patch from fschulze in http://members.plone.org/collector/3961/ fixing disable/remove capabilities. Modified: ResourceRegistries/trunk/tools/CSSRegistry.py ============================================================================== --- ResourceRegistries/trunk/tools/CSSRegistry.py (original) +++ ResourceRegistries/trunk/tools/CSSRegistry.py Sat Apr 30 14:59:22 2005 @@ -117,7 +117,7 @@ stylesheet['media'] = r.get('media', '') stylesheet['rel'] = r.get('rel', 'stylesheet') stylesheet['rendering'] = r.get('rendering','import') - stylesheet['enabled'] = r.get('enabled', True) + stylesheet['enabled'] = r.get('enabled', False) stylesheets.append(stylesheet) self.stylesheets = tuple(stylesheets) @@ -203,6 +203,8 @@ self.cookedstylesheets = () results = [] for stylesheet in stylesheets: + if not stylesheet['enabled']: + continue #self.concatenatedstylesheets[stylesheet['id']] = [stylesheet['id']] if results: previtem = results[-1] Modified: ResourceRegistries/trunk/www/cssconfig.zpt ============================================================================== --- ResourceRegistries/trunk/www/cssconfig.zpt (original) +++ ResourceRegistries/trunk/www/cssconfig.zpt Sat Apr 30 14:59:22 2005 @@ -86,7 +86,7 @@ </button> </p> <p class="delete-button"> - <a href="#" tal:attributes="href string:manage_removeStylesheet?id=${stylesheet/id}'"> + <a href="#" tal:attributes="href string:manage_removeStylesheet?id=${stylesheet/id}"> ** Remove this stylesheet ** </a> </p> @@ -133,7 +133,7 @@ <div> <label>enabled</label> - <input type="checkbox" name="stylesheets.enabled:records.boolean" tal:attributes="checked stylesheet/enabled"> + <input type="checkbox" name="stylesheets.enabled:records" tal:attributes="checked stylesheet/enabled"> </div> </fieldset> |