Remove hard dependency on plone.stringinterp

This commit is contained in:
Alin Voinea 2014-04-18 16:42:06 +03:00
parent 13830715a7
commit 28d7556c92

View File

@ -58,39 +58,41 @@
</configure> </configure>
<!-- Content rules strings --> <!-- Content rules strings -->
<adapter <configure zcml:condition="installed plone.stringinterp">
for="zope.interface.Interface" <adapter
provides="plone.stringinterp.interfaces.IStringSubstitution" for="zope.interface.Interface"
factory=".contentrules.Id" provides="plone.stringinterp.interfaces.IStringSubstitution"
name="comment_id" factory=".contentrules.Id"
/> name="comment_id"
/>
<adapter <adapter
for="zope.interface.Interface" for="zope.interface.Interface"
provides="plone.stringinterp.interfaces.IStringSubstitution" provides="plone.stringinterp.interfaces.IStringSubstitution"
factory=".contentrules.Text" factory=".contentrules.Text"
name="comment_text" name="comment_text"
/> />
<adapter <adapter
for="zope.interface.Interface" for="zope.interface.Interface"
provides="plone.stringinterp.interfaces.IStringSubstitution" provides="plone.stringinterp.interfaces.IStringSubstitution"
factory=".contentrules.AuthorUserName" factory=".contentrules.AuthorUserName"
name="comment_user_id" name="comment_user_id"
/> />
<adapter <adapter
for="zope.interface.Interface" for="zope.interface.Interface"
provides="plone.stringinterp.interfaces.IStringSubstitution" provides="plone.stringinterp.interfaces.IStringSubstitution"
factory=".contentrules.AuthorFullName" factory=".contentrules.AuthorFullName"
name="comment_user_fullname" name="comment_user_fullname"
/> />
<adapter <adapter
for="zope.interface.Interface" for="zope.interface.Interface"
provides="plone.stringinterp.interfaces.IStringSubstitution" provides="plone.stringinterp.interfaces.IStringSubstitution"
factory=".contentrules.AuthorEmail" factory=".contentrules.AuthorEmail"
name="comment_user_email" name="comment_user_email"
/> />
</configure>
</configure> </configure>