This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A Reference is a Zope object refering to another Zope object, called its Target. The target it identified by a path relative to the parent of the Reference. It is resolved into the target through restrictedTraverse.

The attribute Target as well as the method getTarget give the target object.

A Reference behaves almost like its target. It appears to have (most of) its attributes and methods. In this sense, it is very similar to Shane’s Symlink product. Unlike a Symlink, however, a Reference has its own id, title and management facilities and therefore can be distinguished from the refered to object. This is very difficult for a SymLink; therefore, I consider Reference safer.

On lookup, a Reference prefers its own attributes over those of the target. This means that it behaves as a reference and partially as its target.


There are security weaknesses: the setDefaultAccess('allow') and the declareObjectProtected('Access contents information') of Reference spill over to the target when accessed through the reference. This is a side effect of Zope’s (strange) security policy.

In order to ensure manageability of the Reference, __before_publishing_traverse__ and __bobo_traverse__ are not relayed to the target.

It is very difficult (I think impossible) to emulate the special treatment of Python Methods by acquisition. The current implementation tries hard to emulate enough that Python Scripts (and similar objects) get correct bindings. However, the acquisition context is otherwise different from how it were when directly called.

Zope toolkit (aka Zope3) adapters (this includes views) may not work on references as you expect because the adapters see the interfaces implemented by the reference itself, not those of the refered to object.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Products.References-1.0.tar.gz (8.6 kB) Copy SHA256 Checksum SHA256 Source Mar 17, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting