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:
parent
0cb75778ba
commit
87d767651b
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user