Skip to content

Commit 258b7ee

Browse files
author
Tibor Szakmany
committed
2.2.0 > 4.0.0 braking upgrade notes
1 parent b04d0b3 commit 258b7ee

File tree

1 file changed

+20
-115
lines changed

1 file changed

+20
-115
lines changed

README.rst

Lines changed: 20 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -3,141 +3,46 @@ Introduction
33

44
Integration of jQueryUI in Plone
55

6+
IMPORTANT - 2.2.0 > 4.0.0 Upgrade
7+
=================================
68

7-
WARNINGS
8-
========
9+
Can not be upgraded from 2.2.0 directly! It is a major braking release!
910

10-
Plone < 4
11-
---------
11+
There is no upgrade step provided for this "version jump", instead follow these steps:
1212

13-
For Plone 3 you need version 1.7.x of this package
1413

15-
JQueryUI > 1.8.6 is supposed to be compatible with jQuery 1.3.2.
16-
At the moment you should prefer to use the 1.7.X version of jQueryUI
17-
(same package exists for 1.7 branch)
14+
1. First uninstall 2.1.8 version of JQuery UI using "Site Setup / Add-ons" page. This will cleanly remove all: Plugin selection related registry records; Old style `jsregistry` items; Actions and controlpanel pages.
15+
2. Run the buildout to get the 4.0.0 version.
16+
3. Restart instance.
17+
4. Install JQuery UI again using "Site Setup / Add-ons" page.
1818

19-
Plone < 4.3
20-
-----------
19+
WARNINGS
20+
========
2121

22-
Use version < 1.9
22+
Plone < 5
23+
---------
2324

24-
Integration for Zope and Plone
25-
==============================
25+
Support is dropped for older versions of Plone and Python 2.7.
2626

27-
This package can be used as a Plone add-on - for this it adds GenericSetup
28-
profiles and Plone ControlPanel configlets - or it can be used as a simple Zope
29-
jQuery UI resources registrar. See bellow how your zc.buildout config file
30-
should look like if you use collective.js.jqueryui with or without Plone.
27+
Integration for Zope
28+
--------------------
3129

32-
Plone
33-
-----
30+
This package can be used as a Plone add-on only.
3431

35-
for Plone > 4.0:
32+
Usage
33+
=====
3634

3735
buildout.cfg::
3836

3937
[instance]
4038
eggs +=
4139
collective.js.jqueryui
4240

43-
for Plone == 4.0 you must add plone.app.registry yourself:
44-
45-
buildout.cfg::
46-
47-
extends=http://good-py.appspot.com/release/plone.app.registry/1.0b2
48-
[instance]
49-
eggs +=
50-
collective.js.jqueryui
51-
plone.app.registry
52-
53-
Zope
54-
----
55-
56-
buildout.cfg::
57-
58-
[instance]
59-
eggs =
60-
collective.js.jqueryui
61-
zcml =
62-
collective.js.jqueryui
6341

6442
Include plugins and optimizations
6543
=================================
6644

67-
By default this addon register all plugins and activate all of them except tabs.
68-
So ui.tabs is registred but not activated.
69-
70-
Because jQueryUI is big on both javascripts and css you may want to optimize
71-
the configuration of your site or your addon which depends on this one.
72-
73-
So you can activate/unactivate plugins using registry profile or the jQueryUI
74-
controlpanel.
75-
76-
Using registry.xml, you can activate only what you want::
77-
78-
<registry>
79-
<records interface="collective.js.jqueryui.controlpanel.IJQueryUIPlugins">
80-
<value key="ui_draggable">True</value>
81-
<value key="ui_droppable">True</value>
82-
</records>
83-
</registry>
84-
85-
In the case of a policy you can do a full configuration::
86-
87-
<registry>
88-
<records interface="collective.js.jqueryui.controlpanel.IJQueryUIPlugins">
89-
<value key="ui_core">True</value>
90-
<value key="ui_widget">True</value>
91-
<value key="ui_mouse">True</value>
92-
<value key="ui_position">True</value>
93-
<value key="ui_draggable">True</value>
94-
<value key="ui_droppable">True</value>
95-
<value key="ui_resizable">True</value>
96-
<value key="ui_selectable">True</value>
97-
<value key="ui_sortable">True</value>
98-
<value key="ui_accordion">False</value>
99-
<value key="ui_autocomplete">False</value>
100-
<value key="ui_button">False</value>
101-
<value key="ui_dialog">False</value>
102-
<value key="ui_slider">False</value>
103-
<value key="ui_tabs">False</value>
104-
<value key="ui_datepicker">False</value>
105-
<value key="ui_progressbar">False</value>
106-
<value key="effects_core">False</value>
107-
<value key="effects_blind">False</value>
108-
<value key="effects_bounce">False</value>
109-
<value key="effects_clip">False</value>
110-
<value key="effects_drop">False</value>
111-
<value key="effects_explode">False</value>
112-
<value key="effects_fade">False</value>
113-
<value key="effects_fold">False</value>
114-
<value key="effects_highlight">False</value>
115-
<value key="effects_pulsate">False</value>
116-
<value key="effects_scale">False</value>
117-
<value key="effects_shake">False</value>
118-
<value key="effects_slide">False</value>
119-
<value key="effects_transfer">False</value>
120-
</records>
121-
<records interface="collective.js.jqueryui.controlpanel.IJQueryUICSS">
122-
<value key="css">False</value>
123-
<value key="patch">False</value>
124-
</records>
125-
</registry>
126-
127-
Using the control panel, you can select plugins you want. If you unselect a
128-
plugin it will be unactivated (but not its dependencies)
129-
130-
Using python, you just have to use plone.registry api::
131-
132-
from zope.component import getUtility
133-
from plone.registry.interfaces import IRegistry
134-
from collective.js.jqueryui.config import DEPS
135-
from collective.js.jqueryui.interfaces import IJQueryUICSS, IJQueryUIPlugins
136-
#is plone.app.registry
137-
registry = getUtility(IRegistry)
138-
proxy = registry.forInterface(IJQueryUIPlugins)
139-
setattr(proxy, 'ui_draggable', True)
140-
setattr(proxy, 'ui_droppable', True)
45+
By default this addon register all plugins and activate all of them. The registry based plugin activation is dropped. See https://github.com/collective/collective.js.jqueryui/issues/46.
14146

14247
Credits and contributions
14348
=========================
@@ -148,4 +53,4 @@ Credits and contributions
14853
* `Ecreall <https://www.ecreall.com>`_
14954

15055
.. |makinacom| image:: http://depot.makina-corpus.org/public/logo.gif
151-
.. _makinacom: https://www.makina-corpus.com
56+
.. _makinacom: https://www.makina-corpus.com

0 commit comments

Comments
 (0)