Skip to content

Commit

Permalink
Add upgrade steps for Datatbles on Plone 5.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
frapell committed Jul 11, 2018
1 parent c9c177f commit f60b599
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Breaking changes:

New features:

- *add item here*
- Add upgrade steps for Datatbles on Plone 5.1.4
[frapell]

Bug fixes:

Expand Down
6 changes: 6 additions & 0 deletions plone/app/upgrade/v51/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ Add image scaling options to image handling control panel.
destination="5114"
profile="Products.CMFPlone:plone">

<gs:upgradeDepends
title="Run to514 upgrade profile."
description="Update resources for Datatables"
import_profile="plone.app.upgrade.v51:to514"
/>

<gs:upgradeStep
title="Miscellaneous"
description=""
Expand Down
9 changes: 9 additions & 0 deletions plone/app/upgrade/v51/profiles.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,13 @@
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:registerProfile
name="to514"
title="Upgrade profile for Plone 5.1.3 to Plone 5.1.4"
description=""
directory="profiles/to_514"
for="Products.CMFPlone.interfaces.IMigratingPloneSiteRoot"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

</configure>
122 changes: 122 additions & 0 deletions plone/app/upgrade/v51/profiles/to_514/registry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?xml version="1.0"?>
<registry>

<records prefix="plone.resources/mockup-patterns-datatables"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++resource++mockup/datatables/pattern.js</value>
<value key="css">
<element>++resource++mockup/datatables/pattern.datatables.less</element>
</value>
</records>

<!-- DataTables resources -->
<records prefix="plone.resources/datatables.net"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net/js/jquery.dataTables.js</value>
</records>

<records prefix="plone.resources/datatables.net-bs"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-bs/js/dataTables.bootstrap.js</value>
</records>

<records prefix="plone.resources/datatables.net-autofill"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-autofill/js/dataTables.autoFill.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-autofill-bs"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-autofill-bs/js/autoFill.bootstrap.js</value>
</records>

<records prefix="plone.resources/datatables.net-buttons"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-buttons/js/dataTables.buttons.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-buttons-colvis"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-buttons/js/buttons.colVis.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-buttons-flash"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-buttons/js/buttons.flash.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-buttons-html5"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-buttons/js/buttons.html5.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-buttons-print"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-buttons/js/buttons.print.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-buttons-bs"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-buttons-bs/js/buttons.bootstrap.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-colreorder"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-colreorder/js/dataTables.colReorder.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-fixedcolumns"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-fixedcolumns/js/dataTables.fixedColumns.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-fixedheader"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-keytable"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-keytable/js/dataTables.keyTable.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-responsive"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-responsive/js/dataTables.responsive.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-responsive-bs"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-responsive-bs/js/responsive.bootstrap.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-rowreorder"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-rowreorder/js/dataTables.rowReorder.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-scroller"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-scroller/js/dataTables.scroller.min.js</value>
</records>

<records prefix="plone.resources/datatables.net-select"
interface='Products.CMFPlone.interfaces.IResourceRegistry'>
<value key="js">++plone++static/components/datatables.net-select/js/dataTables.select.min.js</value>
</records>

<!-- Update ``last_compilation`` to deliver new bundles -->
<records
prefix="plone.bundles/plone"
interface="Products.CMFPlone.interfaces.IBundleRegistry"
purge="False">
<value key="last_compilation">2018-07-10 00:00:00</value>
</records>
<records
prefix="plone.bundles/plone-logged-in"
interface="Products.CMFPlone.interfaces.IBundleRegistry"
purge="False">
<value key="last_compilation">2018-07-10 00:00:00</value>
</records>

</registry>

0 comments on commit f60b599

Please sign in to comment.