IPTC

by Kai Diefenbach last modified Feb 16, 2011 02:02 AM

IPTC enables Plone to process IPTC informations.

Project Description

IPTC provides components for processing of ITPC informations for arbitrary objects. By default IPTC processing is enabled for Documents and NewsItems.




Dependencies

http://cheeseshop.python.org/pypi/IPTCInfo/1.9.2-rc5 (could be changed in future).

Installation

Put the iptc package in <zope-instance>/lib/python and register it to Plone by adding a slot in <zope-instance>/Products/CMFPlone/configure.zcml

          <include package="iptc" />

Restart your zope instance.

Usage

Just add an image with iptc informations to Plone. If you don't have one, you will find a test image (iptc.jpg) in test/data.

Same is true for news items.

Known Issues

At the moment there is no way to override the informations which come as iptc informations within an image or file. Whenever you save your content object the iptc informations will override that ones which are entered via the edit form. This will be fixed in further releases.

WebDAV isn't working for Plone 2.5.2. This is due to the fact that 2.5.2 uses Archetypes 1.4.2. That in turn doesn't fire up a IObjectModifiedEvent in the PUT() method of WebDAVSupport.py. Hence iptc is never triggered.

To "fix" this you could just add:

    from zope import event
from zope.app.event.objectevent import ObjectModifiedEvent

at the top of WebDAVSupport.py and:

  event.notify(ObjectModifiedEvent(self))

inside the PUT() method right before self.reindexObject() (approximately at line 120). This shouldn't break anything else, but this is on your own risk.

Developers

To use it in your own products mark you content type with IIPTCContent and provide an adapter for it which implements IIPTC. If you just need the standard fields you can use the supplied adapter in adapters.py which can also be used as base class.

Contribution

iptc is in the collective. So don't hesitate to contribute.

Credits

Thanks to Héctor Velarde for initial idea and kindly suggestions.

Current Release

No stable release available yet.

All Releases

Version Released Description Compatibility Status
0.1 First public release. More about this release…
Plone 2.5.1
Plone 2.5.2
Plone 2.5
Plone 3
alpha

Comments (0)