Do not fail on startup with Plone 3 when plone.uuid is not there:

make implementing the plone.uuid.interfaces.IAttributeUUID interface conditional for Plone 4 only.

svn path=/plone.app.discussion/trunk/; revision=46363
This commit is contained in:
Maurits van Rees 2010-12-15 22:45:19 +00:00
parent 0cb75778ba
commit 87d767651b
1 changed files with 9 additions and 1 deletions

View File

@ -55,11 +55,19 @@
<!-- Comments -->
<class class=".comment.Comment">
<implements interface="plone.uuid.interfaces.IAttributeUUID" />
<require interface=".interfaces.IComment" permission="zope2.View" />
<require attributes="Title Creator getId getText" permission="zope2.View" />
</class>
<!-- XXX: Excluding plone.uuid for Plone 3 is only a temporary 'fix'.
See the comment above -->
<configure zcml:condition="have plone-4">
<class class=".comment.Comment">
<implements interface="plone.uuid.interfaces.IAttributeUUID" />
</class>
</configure>
<utility
component=".comment.CommentFactory"
name="plone.Comment"