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 -->
|
<!-- Comments -->
|
||||||
|
|
||||||
<class class=".comment.Comment">
|
<class class=".comment.Comment">
|
||||||
<implements interface="plone.uuid.interfaces.IAttributeUUID" />
|
|
||||||
<require interface=".interfaces.IComment" permission="zope2.View" />
|
<require interface=".interfaces.IComment" permission="zope2.View" />
|
||||||
<require attributes="Title Creator getId getText" permission="zope2.View" />
|
<require attributes="Title Creator getId getText" permission="zope2.View" />
|
||||||
</class>
|
</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
|
<utility
|
||||||
component=".comment.CommentFactory"
|
component=".comment.CommentFactory"
|
||||||
name="plone.Comment"
|
name="plone.Comment"
|
||||||
|
Loading…
Reference in New Issue
Block a user