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

jenkins at plone.org jenkins at plone.org
Sat Mar 15 21:50:36 UTC 2014


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

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


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

Repository: plone.schemaeditor
Branch: refs/heads/master
Date: 2014-03-15T13:54:09-07:00
Author: Ian Anderson (ianderso) <crothers.anderson at gmail.com>
Commit: https://github.com/plone/plone.schemaeditor/commit/af40dbc87214814c5148f1c0236ebc748c207ac0

Update utils.py

change removeField in EditableSchema to allow for a schema  with no field sets defined. By changing from getTaggedValue to queryTaggedValue, a default value is set for the case that there is no FIELDSET_KEY on the schema

Files changed:
M plone/schemaeditor/utils.py

diff --git a/plone/schemaeditor/utils.py b/plone/schemaeditor/utils.py
index 767da6c..b9085f4 100644
--- a/plone/schemaeditor/utils.py
+++ b/plone/schemaeditor/utils.py
@@ -79,7 +79,7 @@ def removeField(self, field_name):
             del self.schema._InterfaceClass__attrs[field_name]
             if hasattr(self.schema, '_v_attrs'):
                 del self.schema._v_attrs[field_name]
-            for fieldset in self.schema.getTaggedValue(FIELDSETS_KEY):
+            for fieldset in self.schema.queryTaggedValue(FIELDSETS_KEY, []):
                 if field_name in fieldset.fields:
                     fieldset.fields.remove(field_name)
         except KeyError:




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


More information about the Testbot mailing list