Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install plone.app.uuid

How to install plone.app.uuid

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install plone.app.uuid
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0 Available View build log
1.0b2 Available View build log
1.0b1 Available View build log
Windows (64-bit)
1.0 Available View build log
1.0b2 Available View build log
1.0b1 Available View build log
Mac OS X (10.5+)
1.0 Available View build log
1.0b2 Available View build log
1.0b1 Available View build log
Linux (32-bit)
1.0 Available View build log
1.0b2 Available View build log
1.0b1 Available View build log
Linux (64-bit)
1.0 Available View build log
1.0b2 Available View build log
1.0b1 Available View build log
 
Author
License
GPL
Imports
Lastest release
version 1.0 on May 14th, 2011

Introduction

This package integrates the low-level plone.uuid into Plone-the- 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.

Please see the plone.uuid package for more details about how UUIDs are generated and can be accessed.

Changelog

1.0 (2011-05-13)
  • Release 1.0 Final. [esteele]
  • Add MANIFEST.in. [WouterVH]
1.0b2 (2011-01-03)
  • Use user id instead of user name to fix tests. [davisagli]
1.0b1 (2010-11-27)
  • Initial release

Subscribe to package updates

Last updated May 14th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.