Skip to content

Commit

Permalink
Upgrade step: add plone.shortname behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Mar 19, 2024
1 parent 821f334 commit 914c944
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/collective/easyform/upgrades/1017.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:gs="http://namespaces.zope.org/genericsetup"
>

<gs:registerProfile
directory="profiles/1017"
for="Products.CMFPlone.interfaces.IMigratingPloneSiteRoot"
name="1017"
provides="Products.GenericSetup.interfaces.EXTENSION"
title="EasyForm upgrade"
/>

<gs:upgradeSteps
destination="1017"
profile="collective.easyform:default"
source="1016"
>

<gs:upgradeDepends
title="Add plone.shortname behavior to form."
import_profile="collective.easyform.upgrades:1017"
/>

</gs:upgradeSteps>

</configure>
10 changes: 10 additions & 0 deletions src/collective/easyform/upgrades/profiles/1017/types/EasyForm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
meta_type="Dexterity FTI"
name="EasyForm"
i18n:domain="collective.easyform"
>
<property name="behaviors" purge="False">
<element value="plone.shortname" />
</property>
</object>

0 comments on commit 914c944

Please sign in to comment.