Skip to content

Commit

Permalink
add upgradestep and profile for max filesize in registry
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibautBorn committed Aug 7, 2023
1 parent f4443e7 commit 20a5ab9
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/collective/easyform/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<metadata>
<version>1016</version>
<version>1017</version>
</metadata>
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 max filesize in registry"
import_profile="collective.easyform.upgrades:1017"
/>

</gs:upgradeSteps>

</configure>
2 changes: 1 addition & 1 deletion src/collective/easyform/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
<include file="1014.zcml" />
<include file="1015.zcml" />
<include file="1016.zcml" />

<include file="1017.zcml" />
</configure>
9 changes: 9 additions & 0 deletions src/collective/easyform/upgrades/profiles/1017/registry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<registry>

<record name="easyform.max_filesize"
interface="collective.easyform.browser.controlpanel.IEasyFormControlPanel"
field="max_filesize">
</record>

</registry>

0 comments on commit 20a5ab9

Please sign in to comment.