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

jenkins at plone.org jenkins at plone.org
Fri Jan 31 20:10:58 UTC 2014


This commit violated the Plone Continous Integration rule "Don’t Check In on a Broken Build": https://buildoutcoredev.readthedocs.org/en/latest/continous-integration.html#dont-check-in-on-a-broken-build

-------------------------------------------------------------------------------

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

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


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

Repository: plone.app.widgets
Branch: refs/heads/master
Date: 2014-01-31T11:12:18-08:00
Author: Nathan Van Gheem (vangheem) <vangheem at gmail.com>
Commit: https://github.com/plone/plone.app.widgets/commit/afa698dc7feec5ee24f5cd72660b0a8fd06a8c29

add related items back

Files changed:
M plone/app/widgets/at_bbb.py
M plone/app/widgets/tests/test_browser.py

diff --git a/plone/app/widgets/at_bbb.py b/plone/app/widgets/at_bbb.py
index 1d35f1c..d2f5b62 100644
--- a/plone/app/widgets/at_bbb.py
+++ b/plone/app/widgets/at_bbb.py
@@ -88,6 +88,12 @@ def fiddle(self, schema):
                     description=old.description
                 )
 
+            if field.__name__ == 'relatedItems':
+                field.widget = at.RelatedItemsWidget(
+                    label=old.label,
+                    description=old.description
+                )
+
         #if 'customViewFields' in schema:
         #    field = schema['customViewFields']
         #    widget = field.widget
diff --git a/plone/app/widgets/tests/test_browser.py b/plone/app/widgets/tests/test_browser.py
index 235566c..66ab761 100644
--- a/plone/app/widgets/tests/test_browser.py
+++ b/plone/app/widgets/tests/test_browser.py
@@ -1,6 +1,5 @@
 # -*- coding: utf-8 -*-
-
-from StringIO import StringIO
+import os
 from plone.app.testing import TEST_USER_ID
 from plone.app.testing import TEST_USER_NAME
 from plone.app.testing import login
@@ -25,6 +24,8 @@
 import json
 import transaction
 
+_dir = os.path.dirname(__file__)
+
 try:
     import unittest2 as unittest
 except ImportError:  # pragma: nocover
@@ -284,13 +285,14 @@ def testQueryStringConfiguration(self):
 
     def testFileUpload(self):
         view = FileUploadView(self.portal, self.request)
-        fdata = StringIO('foobar')
-        fdata.filename = 'foobar.xml'
-        self.request.form['file'] = fdata
+        from plone.namedfile.file import FileChunk
+        chunk = FileChunk('foobar')
+        chunk.filename = 'test.xml'
+        self.request.form['file'] = chunk
         self.request.REQUEST_METHOD = 'POST'
         data = json.loads(view())
-        self.assertEqual(data['url'], 'http://nohost/plone/foobar.xml')
+        self.assertEqual(data['url'], 'http://nohost/plone/test.xml')
         self.assertTrue(data['UID'] is not None)
         # clean it up...
-        self.portal.manage_delObjects(['foobar.xml'])
+        self.portal.manage_delObjects(['test.xml'])
         transaction.commit()


Repository: plone.app.widgets
Branch: refs/heads/master
Date: 2014-01-31T11:19:17-08:00
Author: Franco Pellegrini (frapell) <frapell at gmail.com>
Commit: https://github.com/plone/plone.app.widgets/commit/a408fac78657f327f2de7bc83ddc35a2f30fecbd

Merge pull request #47 from plone/vangheem-relateditems

add related items back

Files changed:
M plone/app/widgets/at_bbb.py
M plone/app/widgets/tests/test_browser.py

diff --git a/plone/app/widgets/at_bbb.py b/plone/app/widgets/at_bbb.py
index 1d35f1c..d2f5b62 100644
--- a/plone/app/widgets/at_bbb.py
+++ b/plone/app/widgets/at_bbb.py
@@ -88,6 +88,12 @@ def fiddle(self, schema):
                     description=old.description
                 )
 
+            if field.__name__ == 'relatedItems':
+                field.widget = at.RelatedItemsWidget(
+                    label=old.label,
+                    description=old.description
+                )
+
         #if 'customViewFields' in schema:
         #    field = schema['customViewFields']
         #    widget = field.widget
diff --git a/plone/app/widgets/tests/test_browser.py b/plone/app/widgets/tests/test_browser.py
index 235566c..66ab761 100644
--- a/plone/app/widgets/tests/test_browser.py
+++ b/plone/app/widgets/tests/test_browser.py
@@ -1,6 +1,5 @@
 # -*- coding: utf-8 -*-
-
-from StringIO import StringIO
+import os
 from plone.app.testing import TEST_USER_ID
 from plone.app.testing import TEST_USER_NAME
 from plone.app.testing import login
@@ -25,6 +24,8 @@
 import json
 import transaction
 
+_dir = os.path.dirname(__file__)
+
 try:
     import unittest2 as unittest
 except ImportError:  # pragma: nocover
@@ -284,13 +285,14 @@ def testQueryStringConfiguration(self):
 
     def testFileUpload(self):
         view = FileUploadView(self.portal, self.request)
-        fdata = StringIO('foobar')
-        fdata.filename = 'foobar.xml'
-        self.request.form['file'] = fdata
+        from plone.namedfile.file import FileChunk
+        chunk = FileChunk('foobar')
+        chunk.filename = 'test.xml'
+        self.request.form['file'] = chunk
         self.request.REQUEST_METHOD = 'POST'
         data = json.loads(view())
-        self.assertEqual(data['url'], 'http://nohost/plone/foobar.xml')
+        self.assertEqual(data['url'], 'http://nohost/plone/test.xml')
         self.assertTrue(data['UID'] is not None)
         # clean it up...
-        self.portal.manage_delObjects(['foobar.xml'])
+        self.portal.manage_delObjects(['test.xml'])
         transaction.commit()




-------------------------------------------------------------------------------

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


More information about the Testbot mailing list