operun.unique provides an interface to check the uniqueness of a content type.
Version 1.0.0 is tested with Plone 4.3.x.
Add this line in the eggs section of your buildout.cfg
eggs =
...
operun.unique
Add the interface to your content type class
from operun.unique.interfaces import IUnique
class ContentType(xxx):
"""Content Type
"""
implements(IContentType, IUnique)
TBD.
If you want to add operun.crm as a dependency from another products use the profile default
in your metadata.xml
.
<metadata>
<version>1</version>
<dependencies>
<dependency>profile-operun.unique:default</dependency>
</dependencies>
</metadata>
Please report issues in the bugtracker at https://github.com/operun/operun.unique/issues.
The master-branch supports Plone 4 only.
GNU General Public License, version 2
- Stefan Antonelli <[email protected]>