[prev in list] [next in list] [prev in thread] [next in thread]
List: kupu-checkins
Subject: [kupu-checkins] r35558 - kupu/trunk/kupu/plone
From: duncan () codespeak ! net
Date: 2006-12-11 9:23:03
Message-ID: 20061211092303.DE5F610061 () code0 ! codespeak ! net
[Download RAW message or body]
Author: duncan
Date: Mon Dec 11 10:23:01 2006
New Revision: 35558
Added:
kupu/trunk/kupu/plone/colorchooser.kupu (contents, props changed)
Modified:
kupu/trunk/kupu/plone/plonelibrarytool.py
Log:
Added missing .kupu file. Fixed type on plonelibrarytool.py which broke non-field use of kupu.
Added: kupu/trunk/kupu/plone/colorchooser.kupu
==============================================================================
--- (empty file)
+++ kupu/trunk/kupu/plone/colorchooser.kupu Mon Dec 11 10:23:01 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0" ?>
+<kupu:feature
+ name="colorchooser"
+ implementation="plone"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:kupu="http://kupu.oscom.org/namespaces/dist"
+ xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+ xmlns:tal="http://xml.zope.org/namespaces/tal"
+ >
+ <kupu:part name="buttons">
+ <span class="kupu-tb-buttongroup" tal:condition="filter/bg-colorchooser">
+ <button type="button" class="kupu-forecolor" id="kupu-forecolor-button"
+ tal:condition="filter/forecolor-button"
+ title="text color: alt-f" i18n:attributes="title"
+ accesskey="f"> </button>
+ <button type="button" class="kupu-hilitecolor" id="kupu-hilitecolor-button"
+ tal:condition="filter/hilitecolor-button"
+ title="background color: alt-h" i18n:attributes="title"
+ accesskey="h"> </button>
+ </span>
+ </kupu:part>
+
+ <!-- We will have the button tool configuration here, too, once we
+ do tool definitions in XML config. -->
+
+</kupu:feature>
Modified: kupu/trunk/kupu/plone/plonelibrarytool.py
==============================================================================
--- kupu/trunk/kupu/plone/plonelibrarytool.py (original)
+++ kupu/trunk/kupu/plone/plonelibrarytool.py Mon Dec 11 10:23:01 2006
@@ -167,7 +167,7 @@
lstyles = getattr(widget, 'parastyles', ())
else:
redefine = False
- lstyles = False
+ lstyles = []
result = []
if redefine:
@@ -213,7 +213,6 @@
return expr != '' or visible != DEFAULTS.get(id, False)
cleaned = [ f for f in filters if nonstandard(f) ]
- print cleaned
self._setToolbarFilters(cleaned)
if REQUEST:
REQUEST.RESPONSE.redirect(self.absolute_url() + '/zmi_toolbar')
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic