Skip to main content

Referenceable dexterity type behavior

Project description

Introduction

The “IReferenceable” behavior is used for enabling UUID (plone.app.uuid) support for dexterity contents, like in archetypes content types. This allow for example references between archetypes and dexterity content types.

Note: It can’t work with Plone==4.0 because it is based on plone.uuid integration in CMF. It is compatible with Plone>=4.1

Usage

Just use the behavior “plone.app.referenceablebehavior.referenceable.IReferenceable” in your dexterity content type.

In your profiles/default/types/YOURTYPE.xml add the behavior:

<?xml version="1.0"?>
<object name="example.conference.presenter" meta_type="Dexterity FTI"
   i18n:domain="example.conference" xmlns:i18n="http://xml.zope.org/namespaces/i18n">

 <!-- enabled behaviors -->
 <property name="behaviors">
     <element value="plone.app.referenceablebehavior.referenceable.IReferenceable" />
 </property>

</object>

Changelog

0.4 (2012-08-18)

  • Declare the dependency on Archetypes. [davisagli]

  • Handle IObjectMovedEvent events for referenceable types to avoid “unsuccessfully attempted to uncatalog an object” errors when removing an object previously moved. [frapell]

0.3 (2011-05-18)

  • Try obj first in event handlers, fall back to getSite(). When a site is being deleted getSite() will return None so isn’t useful. [lentinj]

0.2 (2011-04-30)

  • Use getSite() hook in event handlers, since the object may be not acquisition-wrapped in certain circumstances. [jbaumann]

  • Fix broken IReferenceable import. [daftdog]

0.1 (2011-02-11)

  • Add “locales” directory and french translation for the behavior. [sylvainb]

  • Add referenceable behavior to dexterity [toutpt]

  • Initial release [sylvainb]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plone.app.referenceablebehavior-0.4.zip (10.9 kB view details)

Uploaded Source

File details

Details for the file plone.app.referenceablebehavior-0.4.zip.

File metadata

File hashes

Hashes for plone.app.referenceablebehavior-0.4.zip
Algorithm Hash digest
SHA256 d76728d47dc724de3589286ca2c2bee9d7726c4ffd428452fd23ddad716a8a61
MD5 986b13f19e81ab8d9278fba29b1212ac
BLAKE2b-256 80c91f06bd536014a0c9e396ffed1a7e96f687182296dd3b1aa03702a55bfc28

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page