Skip to content

Commit

Permalink
chore: zpretty
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 7, 2023
1 parent cd2d910 commit b481d85
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 32 deletions.
19 changes: 13 additions & 6 deletions plone/app/intid/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,34 @@
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="plone.app.intid">
i18n_domain="plone.app.intid"
>

<include package="five.intid" file="base.zcml" />
<include package="five.intid" file="cmfdirectoryview.zcml" />
<include
package="five.intid"
file="base.zcml"
/>
<include
package="five.intid"
file="cmfdirectoryview.zcml"
/>
<include file="profiles.zcml" />

<!-- Register intid handlers for all CMF/Plone content -->
<subscriber
handler="five.intid.intid.addIntIdSubscriber"
for="Products.CMFCore.interfaces.IDynamicType
zope.lifecycleevent.interfaces.IObjectAddedEvent"
handler="five.intid.intid.addIntIdSubscriber"
/>
<subscriber
handler="five.intid.intid.removeIntIdSubscriber"
for="Products.CMFCore.interfaces.IDynamicType
zope.lifecycleevent.interfaces.IObjectRemovedEvent"
handler="five.intid.intid.removeIntIdSubscriber"
/>
<subscriber
handler="five.intid.intid.moveIntIdSubscriber"
for="Products.CMFCore.interfaces.IDynamicType
zope.lifecycleevent.interfaces.IObjectMovedEvent"
handler="five.intid.intid.moveIntIdSubscriber"
/>

</configure>
53 changes: 28 additions & 25 deletions plone/app/intid/profiles.zcml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="plone.app.intid">
i18n_domain="plone.app.intid"
>

<genericsetup:registerProfile
name="default"
title="plone.app.intid: install utility"
directory="profiles/default"
description="Extension profile to install an intid utility in a Plone site"
for="Products.CMFCore.interfaces.ISiteRoot"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>
<genericsetup:registerProfile
name="default"
title="plone.app.intid: install utility"
description="Extension profile to install an intid utility in a Plone site"
provides="Products.GenericSetup.interfaces.EXTENSION"
for="Products.CMFCore.interfaces.ISiteRoot"
directory="profiles/default"
/>

<genericsetup:importStep
name="import-intid-util"
title="Import IntId Utility"
description="Import intid utility."
handler=".setuphandlers.installIntIds">
<depends name="toolset"/>
</genericsetup:importStep>
<genericsetup:importStep
name="import-intid-util"
title="Import IntId Utility"
description="Import intid utility."
handler=".setuphandlers.installIntIds"
>
<depends name="toolset" />
</genericsetup:importStep>

<genericsetup:importStep
name="intid-register-content"
title="Register content with IntId utility"
description="Register all plone content with intid utility."
handler=".setuphandlers.registerContent">
<depends name="catalog"/>
<depends name="import-intid-util"/>
</genericsetup:importStep>
<genericsetup:importStep
name="intid-register-content"
title="Register content with IntId utility"
description="Register all plone content with intid utility."
handler=".setuphandlers.registerContent"
>
<depends name="catalog" />
<depends name="import-intid-util" />
</genericsetup:importStep>

</configure>
</configure>
2 changes: 1 addition & 1 deletion plone/app/intid/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<version>1</version>
</metadata>

0 comments on commit b481d85

Please sign in to comment.