plone.app.versioningbehavior 1.1.4

The ``IVersionable`` behavior is used for enabling the CMFEditions functionalityfor dexterity contents. It adds a changeNote-field to the edit- and add-forms andcreates a new version when the content is edited, if enabled for the content type.

It's based on *Products.CMFEditions*. For listing the versions of an object useCMFEdtions' view ``versions_history_form`` or the history viewlet (see default @@view).

Usage-----

Just use the behavior ``plone.app.versioningbehavior.behaviors.IVersionable`` inyour dexterity content type.

The IVersionable behavior just adds versioning support to your content type,but it does not enable it.

You have to set the "versioning" option in the Plone types control panel(/@@types-controlpanel) to either "Manual" or "Automatic" for activatingversioning.

If you want to automatically enable versioning for your custom content typesthrough generic setup you have to create a file "repositorytool.xml" in yourgs profile (e.g. "profiles/default") with the following content::

* Renamed the behavior marker interface IVersionOnSave to IVersioningSupport because it depends on the "version" settings in the types control panel if a content is automatically versioning on saving or not. The marker interface should only indicate if the type could be versioned or not. [jbaumann]

* Added locales directory with own domain for local translations. [jbaumann]

* Updated tests: events and version creation are now tested properly. [jbaumann]

* Added helper method for getting the changenote from the request annotation. [jbaumann]

* Storing changenote in an annotation on the request between the field-adapter and the event handler which creates the version. That makes it possible to use different form and widget manager prefixes. [jbaumann]

* Added localization for the comment field. [jbaumann]

* Disabled the Added-Event because it's not working due to a pickling problem. [jbaumann]

* Added a form-field changeNote. It's content is used as comment for the created version. [jbaumann]

* Added a Event-Handler for creating a new version on save. [jbaumann]