r13717 - Products.DataGridField/branches/cp-multiselectcolumn/Products/DataGridField/skins/DataGridWidget

"Gauthier Bastien" <[email protected]> Mon, 11 Jul 2011 13:05:40 +0000
Newsgroups gmane.comp.web.zope.plone.archetypes.cvs
Message-ID <[email protected]>
Author: gbastien
Date: Mon Jul 11 13:05:39 2011
New Revision: 13717

Modified:
   Products.DataGridField/branches/cp-multiselectcolumn/Products/DataGridField/skins/DataGridWidget/datagrid_multi_select_cell.pt
Log:
Can not use 'in' if no default is available

Modified: Products.DataGridField/branches/cp-multiselectcolumn/Products/DataGridField/skins/DataGridWidget/datagrid_multi_select_cell.pt
==============================================================================
--- Products.DataGridField/branches/cp-multiselectcolumn/Products/DataGridField/skins/DataGridWidget/datagrid_multi_select_cell.pt	(original)
+++ Products.DataGridField/branches/cp-multiselectcolumn/Products/DataGridField/skins/DataGridWidget/datagrid_multi_select_cell.pt	Mon Jul 11 13:05:39 2011
@@ -46,7 +46,7 @@
                                
                                <option tal:repeat="item vocab"
                                    tal:attributes="value item;
-                                                   selected python:item in column_definition.getDefault(context) and 'selected' or None;"
+                                                   selected python:item in (column_definition.getDefault(context) or ()) and 'selected' or None;"
                                            tal:content="python:widget.getUserFriendlySelectionItem(here, item, vocab)"/>
 
            </select>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2