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 zc.intid

How to install zc.intid

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install zc.intid
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0.1 Available View build log
1.0.0 Available View build log
Windows (64-bit)
1.0.1 Available View build log
1.0.0 Available View build log
Mac OS X (10.5+)
1.0.1 Available View build log
1.0.0 Available View build log
Linux (32-bit)
1.0.1 Available View build log
1.0.0 Available View build log
Linux (64-bit)
1.0.1 Available View build log
1.0.0 Available View build log
 
License
ZPL 2.1
Imports
Lastest release
version 1.0.1 on Jun 28th, 2011

This package provides an API to create integer ids for any object. Objects can later be looked up by their id as well. This functionality is commonly used in situations where dealing with objects is undesirable, such as in search indices or any code that needs an easy hash of an object.

This is similar to the zope.intid package, but with two distinct advantages:

  • Induces fewer conflict errors, since object ids are not used as part of the stored data. The id for an object is stored in an attribute of the object itself, with the attribute name being configured by the construction of the id utility.

    This does require that the object "play nice" with this approach. At a minimum, the attributes used to store ids on objects should

    • persist with the rest of the object's state, and
    • not be modified by the object.
  • Fewer dependencies.

Events generated on the assignment and removal of ids are generated by the register and unregister methods rather than by the callers of those methods.

Changes

1.0.1 (2011-06-27)
  • Make the behavior of the utility's getId method consistent with zope.intid in regard to its handling of proxied objects.
1.0.0 (2011-02-21)
  • Initial release.

Subscribe to package updates

Last updated Jun 28th, 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.