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

jenkins at plone.org jenkins at plone.org
Tue Feb 18 04:55:16 UTC 2014


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

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


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

Repository: plone.app.vocabularies
Branch: refs/heads/master
Date: 2014-02-12T02:01:17-08:00
Author: Giacomo Spettoli (giacomos) <giacomo.spettoli at gmail.com>
Commit: https://github.com/plone/plone.app.vocabularies/commit/58c0dcefb886a43ef30596b9c9d7ae451ea92b1f

add new vocabulary needed for the new actions portlet

Files changed:
A plone/app/vocabularies/actions.py
M plone/app/vocabularies/configure.zcml

diff --git a/plone/app/vocabularies/actions.py b/plone/app/vocabularies/actions.py
new file mode 100644
index 0000000..a19b377
--- /dev/null
+++ b/plone/app/vocabularies/actions.py
@@ -0,0 +1,24 @@
+# -*- coding:utf-8 -*-
+from zope.interface import implements
+from zope.schema.interfaces import IVocabularyFactory
+from zope.schema.vocabulary import SimpleTerm
+from zope.schema.vocabulary import SimpleVocabulary
+
+from Products.CMFCore.utils import getToolByName
+
+
+class ActionCategoriesVocabulary(object):
+    """Provides an actions categories vocabulary"""
+
+    implements(IVocabularyFactory)
+
+    def __call__(self, context):
+        portal_actions = getToolByName(context, 'portal_actions')
+
+        # Building the list of action categories
+        categories = portal_actions.listFilteredActionsFor(context).keys()
+        categories.sort()
+        return SimpleVocabulary([SimpleTerm(cat, title=cat) for cat in categories])
+
+
+ActionCategoriesVocabularyFactory = ActionCategoriesVocabulary()
diff --git a/plone/app/vocabularies/configure.zcml b/plone/app/vocabularies/configure.zcml
index 14721e8..f019bd1 100644
--- a/plone/app/vocabularies/configure.zcml
+++ b/plone/app/vocabularies/configure.zcml
@@ -95,6 +95,11 @@
     name="plone.app.vocabularies.Catalog"
     />
 
+  <utility                                                                          
+    component=".actions.ActionCategoriesVocabularyFactory"                         
+    name="plone.app.vocabularies.Actions"                                     
+    />
+
   <!-- All source implementations will be deprecated -->
   <adapter
       for=".catalog.SearchableTextSource


Repository: plone.app.vocabularies
Branch: refs/heads/master
Date: 2014-02-12T06:02:02-08:00
Author: Giacomo Spettoli (giacomos) <giacomo.spettoli at gmail.com>
Commit: https://github.com/plone/plone.app.vocabularies/commit/5b0f047776a8ebf8f5226a1fd16d04c2d9474b7f

fix the jenkins build

Files changed:
M plone/app/vocabularies/actions.py

diff --git a/plone/app/vocabularies/actions.py b/plone/app/vocabularies/actions.py
index a19b377..2e1f6d8 100644
--- a/plone/app/vocabularies/actions.py
+++ b/plone/app/vocabularies/actions.py
@@ -16,7 +16,11 @@ def __call__(self, context):
         portal_actions = getToolByName(context, 'portal_actions')
 
         # Building the list of action categories
-        categories = portal_actions.listFilteredActionsFor(context).keys()
+        try:
+            categories = portal_actions.listFilteredActionsFor(context).keys()
+        except:
+            portal = context.portal_url.getPortalObject()
+            categories = portal.portal_actions.objectIds()
         categories.sort()
         return SimpleVocabulary([SimpleTerm(cat, title=cat) for cat in categories])
 


Repository: plone.app.vocabularies
Branch: refs/heads/master
Date: 2014-02-17T20:23:41-08:00
Author: David Glick (davisagli) <david at glicksoftware.com>
Commit: https://github.com/plone/plone.app.vocabularies/commit/bbc20727944dac98260bf5249d6756ddb8ce90c2

add changelog for @giacomos

Files changed:
M CHANGES.rst

diff --git a/CHANGES.rst b/CHANGES.rst
index 163f5e6..66bfddf 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,7 +4,8 @@ Changelog
 2.1.14 (unreleased)
 -------------------
 
-- Nothing changed yet.
+- Add actions vocabulary.
+  [giacomos]
 
 
 2.1.13 (2014-01-27)




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


More information about the Testbot mailing list