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

jenkins at plone.org jenkins at plone.org
Wed Oct 8 12:37:51 UTC 2014


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

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


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

Repository: plone.formwidget.datetime
Branch: refs/heads/master
Date: 2014-10-08T14:06:55+02:00
Author: Vincent Fretin (vincentfretin) <vincent.fretin at gmail.com>
Commit: https://github.com/plone/plone.formwidget.datetime/commit/97d9e9005fe12f09837772d38b7660fed75e87d4

Calendar is updated when date is changed from select. (Archetypes widget this time)

Files changed:
M plone/formwidget/datetime/at/browser/datetime_input.pt

diff --git a/plone/formwidget/datetime/at/browser/datetime_input.pt b/plone/formwidget/datetime/at/browser/datetime_input.pt
index 266fb97..1506c90 100644
--- a/plone/formwidget/datetime/at/browser/datetime_input.pt
+++ b/plone/formwidget/datetime/at/browser/datetime_input.pt
@@ -32,7 +32,8 @@
                 tal:define="field_id string:${fieldName}-day;
                             current_val python:request.get(field_id, bool(value) and value.day() or '');"
                 tal:attributes="id field_id;
-                                name field_id;">
+                                name field_id;
+                                onchange python:widget.onchange(fieldName);">
             <tal:day repeat="day widget/days">
                 <option tal:define="day_val day/value"
                         tal:attributes="selected python:str(day_val)==str(current_val) and 'selected' or '';
@@ -55,7 +56,8 @@
                 current_val python:request.get(field_id,bool(value) and value.month() or '');"
             tal:condition="python:widget.show_month"
             tal:attributes="id field_id;
-                name field_id;">
+                name field_id;
+                onchange python:widget.onchange(fieldName);">
         <tal:month repeat="month widget/months">
             <option tal:define="month_val month/value"
                 tal:attributes="selected python:str(month_val)==str(current_val) and 'selected' or '';
@@ -71,7 +73,8 @@
                 tal:define="field_id string:${fieldName}-year;
                             current_val python:request.get(field_id,bool(value) and value.year() or '');"
                 tal:attributes="id field_id;
-                                name field_id;">
+                                name field_id;
+                                onchange python:widget.onchange(fieldName);">
             <option value=""></option>
             <tal:year repeat="year python:widget.years">
                 <option tal:define="year_val year/value"


Repository: plone.formwidget.datetime
Branch: refs/heads/master
Date: 2014-10-08T14:09:40+02:00
Author: Vincent Fretin (vincentfretin) <vincent.fretin at gmail.com>
Commit: https://github.com/plone/plone.formwidget.datetime/commit/6b637d1ad13b6bbe36b4b23d825343b7e290fa51

Set date in calendar when the page load (Archetypes widget)

Files changed:
M CHANGES.rst
M plone/formwidget/datetime/base.py

diff --git a/CHANGES.rst b/CHANGES.rst
index 8d9a11e..0e5a5ff 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,9 @@ Changelog
 1.1 (unreleased)
 ----------------
 
+- Set date in calendar when the page load (Archetypes widget).
+  [vincentfretin]
+
 - Calendar is updated when date is changed from select.
   [thomasdesvenain]
 
diff --git a/plone/formwidget/datetime/base.py b/plone/formwidget/datetime/base.py
index 4808073..1d586de 100644
--- a/plone/formwidget/datetime/base.py
+++ b/plone/formwidget/datetime/base.py
@@ -388,6 +388,7 @@ def get_js(self, fieldname=None):
                                     {top: trigger_offset.top+20, left: trigger_offset.left}
                                 );
                             });
+                        updateCalendar('#%(id)s');
                     }
                 });
                 function updateCalendar(widgetId) {




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


More information about the Testbot mailing list