[Testbot] Plone 5.0 - Python 2.7 - Build # 1796 - Still failing! - 1 failure(s)

jenkins at plone.org jenkins at plone.org
Fri Feb 28 17:43:54 UTC 2014


-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 1796 - Still Failing!
-------------------------------------------------------------------------------

http://jenkins.plone.org/job/plone-5.0-python-2.7/1796/


-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------

Repository: Products.Archetypes
Branch: refs/heads/master
Date: 2014-02-19T05:33:16-08:00
Author: Peter Uittenbroek (thepjot) <uittenbroek at goldmund-wyldebeast-wunderliebe.com>
Commit: https://github.com/plone/Products.Archetypes/commit/4df3114cf533a25b68ae44f8424771ca58b3ba67

Fix selection for #13716

Files changed:
M Products/Archetypes/skins/archetypes/widgets/selection.pt

diff --git a/Products/Archetypes/skins/archetypes/widgets/selection.pt b/Products/Archetypes/skins/archetypes/widgets/selection.pt
index 71591c8..8ba8770 100644
--- a/Products/Archetypes/skins/archetypes/widgets/selection.pt
+++ b/Products/Archetypes/skins/archetypes/widgets/selection.pt
@@ -108,7 +108,7 @@
 
                         <option tal:repeat="item vocab"
                                 tal:attributes="value item;
-                                                selected python:item in selection and 'selected' or None"
+                                                selected python:item in selection and 'selected' or (not selection and not value and 'selected') or  None"
                                 tal:content="python:vocab.getValue(item)"
                                 i18n:translate=""
                                 />


Repository: Products.Archetypes
Branch: refs/heads/master
Date: 2014-02-24T00:22:23-08:00
Author: Peter Uittenbroek (thepjot) <uittenbroek at goldmund-wyldebeast-wunderliebe.com>
Commit: https://github.com/plone/Products.Archetypes/commit/f7eb39a252353e0c39fbc3f1afc070f44d56ac0f

update changes

Files changed:
M CHANGES.txt

diff --git a/CHANGES.txt b/CHANGES.txt
index 3309ac0..e4b99af 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -54,6 +54,9 @@ Changelog
   IntDisplayLists.
   [maurits]
 
+- Make (non-valued) default value selected in select widget if no selection
+  is given. This happens  especially with ReferenceFields.
+  [thepjot]
 
 1.9.4 (2013-08-29)
 ------------------


Repository: Products.Archetypes
Branch: refs/heads/master
Date: 2014-02-28T08:52:43-08:00
Author: Nathan Van Gheem (vangheem) <vangheem at gmail.com>
Commit: https://github.com/plone/Products.Archetypes/commit/02692037c093d765995699f2f081b58acf85f1ed

Merge pull request #37 from Goldmund-Wyldebeast-Wunderliebe/master

Fix selection for #13716

Files changed:
M CHANGES.txt
M Products/Archetypes/skins/archetypes/widgets/selection.pt

diff --git a/CHANGES.txt b/CHANGES.txt
index 0ae4b0d..d77906a 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -58,6 +58,9 @@ Changelog
   IntDisplayLists.
   [maurits]
 
+- Make (non-valued) default value selected in select widget if no selection
+  is given. This happens  especially with ReferenceFields.
+  [thepjot]
 
 1.9.4 (2013-08-29)
 ------------------
diff --git a/Products/Archetypes/skins/archetypes/widgets/selection.pt b/Products/Archetypes/skins/archetypes/widgets/selection.pt
index 71591c8..8ba8770 100644
--- a/Products/Archetypes/skins/archetypes/widgets/selection.pt
+++ b/Products/Archetypes/skins/archetypes/widgets/selection.pt
@@ -108,7 +108,7 @@
 
                         <option tal:repeat="item vocab"
                                 tal:attributes="value item;
-                                                selected python:item in selection and 'selected' or None"
+                                                selected python:item in selection and 'selected' or (not selection and not value and 'selected') or  None"
                                 tal:content="python:vocab.getValue(item)"
                                 i18n:translate=""
                                 />




-------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CHANGES.log
Type: application/octet-stream
Size: 3571 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140228/bf3d2583/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 121514 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-testbot/attachments/20140228/bf3d2583/attachment-0003.obj>


More information about the Testbot mailing list