[Testbot] Plone 5.0 - Python 2.7 - Build # 3086 - Regression! - 0 failure(s)

jenkins at plone.org jenkins at plone.org
Sat Aug 23 04:11:04 UTC 2014


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

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


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

Repository: plone.app.uuid
Branch: refs/heads/master
Date: 2014-08-23T01:02:13+02:00
Author: Gil Forcada (gforcada) <gforcada at gnome.org>
Commit: https://github.com/plone/plone.app.uuid/commit/d4dcc342ed028e48efd2c67712a886b7d3ced5ea

Whitespaces cleanup

Files changed:
M README.rst
M plone/app/uuid/browser.py
M plone/app/uuid/configure.zcml
M plone/app/uuid/utils.py

diff --git a/README.rst b/README.rst
index 5a374a9..367f532 100644
--- a/README.rst
+++ b/README.rst
@@ -6,42 +6,42 @@ application. In particular, it:
 
 * Registers a ``portal_catalog`` indexer for the ``UID`` index that allows an
   object's UUID to be indexed.
-  
+
   This name is intentionally chosen to be the same as the Archetypes UID()
   attribute, which is already indexed by Plone. The effect is that the UID
   catalog attribute/metadata is now generalised to all content that supports the
   ``plone.uuid`` protocol.
-  
+
   As of version 1.7, ``Products.Archetypes`` depends on ``plone.uuid`` and
   implements an ``IUUID`` adapter suitable for Archetypes content. It also
   uses the ``plone.uuid`` ``IUUIDGenerator`` utility to generate UUIDs for
   (new) content, although note that UUIDs generated by the pre-1.7 UUID
   algorithm, whilst different, cannot collide with the UUIDs generated by
   the default ``IUUIDGenerator`` implementation.
-  
+
   It follows that the `plone.uuid`_ ``IUUID`` adapter and ``@@uuid`` view are
   now the preferred, generalised way to look up a UUID for an object.
 * Registers a utility view, ``@@redirect-to-uuid``. You can use this with
   a URL like::
-  
+
     http://example.org/some/path/@@redirect-to-uuid/b2dc6f7a-9d17-11df-8788-58b035f3cfa0
-  
+
   This will then redirect to the object identified by that URL.
-  
+
     *Hint:* You can use the ``@@uuid`` view from `plone.uuid`_ to render a
     UUID. In TAL, you can do something like::
-    
+
         <a tal:attributes="href string:${portal_url}/@@redirect-to-uuid/${obj/@@uuid}">Click here</a>
 * Provides several utility methods in the ``plone.app.uuid.utils`` module:
-  
+
   ``uuidToPhysicalPath(uuid)``
       Returns the physical path (relative to the ZODB root) as a string of the
       object with the given UUID, or None if it cannot be found.
-  
+
   ``uuidToURL(uuid)``
       Returns the absolute URL of the object with the given UUID, or None if it
       cannot be found.
-  
+
   ``uuidToObject(uuid)``
       Returns the content object associated with the given UUID, or None if it
       cannot be found.
diff --git a/plone/app/uuid/browser.py b/plone/app/uuid/browser.py
index 36980c3..cbce26c 100644
--- a/plone/app/uuid/browser.py
+++ b/plone/app/uuid/browser.py
@@ -10,22 +10,22 @@ class RedirectToUUIDView(BrowserView):
     """A browser view that will cause a redirect to a given UUID,
     given via sub-path traversal.
     """
-    
+
     implements(IPublishTraverse)
-    
+
     uuid = None
-    
+
     def publishTraverse(self, request, name):
         self.uuid = name
         return self
-    
+
     def __call__(self):
         if self.uuid is None:
             raise KeyError("No UUID given in sub-path. Use .../@@redirect-to-uuid/<uuid>")
-        
+
         url = uuidToURL(self.uuid)
         if url is None:
             raise NotFound(self, self.uuid)
-        
+
         self.request.response.redirect(url)
         return u''
diff --git a/plone/app/uuid/configure.zcml b/plone/app/uuid/configure.zcml
index 7bbbb11..eedd55b 100644
--- a/plone/app/uuid/configure.zcml
+++ b/plone/app/uuid/configure.zcml
@@ -2,13 +2,13 @@
     xmlns="http://namespaces.zope.org/zope"
     xmlns:browser="http://namespaces.zope.org/browser"
     i18n_domain="plone.app.uuid">
-    
+
     <include package="plone.uuid" />
     <include package="plone.indexer" />
-    
+
     <!-- Install indexer -->
     <adapter factory=".indexer.uuidIndexer" name="UID" />
-    
+
     <!-- Register utility views -->
     <browser:view
         for="*"
@@ -16,5 +16,5 @@
         class=".browser.RedirectToUUIDView"
         permission="zope.Public"
         />
-    
+
 </configure>
diff --git a/plone/app/uuid/utils.py b/plone/app/uuid/utils.py
index 623a9ee..616e121 100644
--- a/plone/app/uuid/utils.py
+++ b/plone/app/uuid/utils.py
@@ -5,49 +5,49 @@ def uuidToPhysicalPath(uuid):
     """Given a UUID, attempt to return the absolute path of the underlying
     object. Will return None if the UUID can't be found.
     """
-    
+
     brain = uuidToCatalogBrain(uuid)
     if brain is None:
         return None
-    
+
     return brain.getPath()
 
 def uuidToURL(uuid):
     """Given a UUID, attempt to return the absolute URL of the underlying
     object. Will return None if the UUID can't be found.
     """
-    
+
     brain = uuidToCatalogBrain(uuid)
     if brain is None:
         return None
-    
+
     return brain.getURL()
 
 def uuidToObject(uuid):
     """Given a UUID, attempt to return a content object. Will return
     None if the UUID can't be found.
     """
-    
+
     brain = uuidToCatalogBrain(uuid)
     if brain is None:
         return None
-    
+
     return brain.getObject()
 
 def uuidToCatalogBrain(uuid):
     """Given a UUID, attempt to return a catalog brain.
     """
-    
+
     site = getSite()
     if site is None:
         return None
-    
+
     catalog = getToolByName(site, 'portal_catalog', None)
     if catalog is None:
         return None
-    
+
     result = catalog(UID=uuid)
     if len(result) != 1:
         return None
-    
+
     return result[0]




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


More information about the Testbot mailing list