[982] | 1 | =========================== |
---|
| 2 | Installation/Uninstallation |
---|
| 3 | =========================== |
---|
[820] | 4 | |
---|
[982] | 5 | Installation |
---|
[1233] | 6 | ------------ |
---|
[982] | 7 | |
---|
[820] | 8 | To install quintagroup.plonecomments into the global Python environment (or a workingenv), |
---|
| 9 | using a traditional Zope 2 instance, you can do this: |
---|
| 10 | |
---|
[1233] | 11 | * Copy ``quintagroup`` folder to the ``/path/to/instance/lib/python`` directory. |
---|
[820] | 12 | |
---|
[1233] | 13 | * Creare a file called ``quintagroup.plonecomments-configure.zcml`` in the |
---|
| 14 | */path/to/instance/etc/package-includes* directory. The file should |
---|
| 15 | only contain this:: |
---|
[820] | 16 | |
---|
[1233] | 17 | <include package="quintagroup.plonecomments" file="configure.zcml" /> |
---|
[820] | 18 | |
---|
[1233] | 19 | * Create a file called ``quintagroup.plonecomments-overrides.zcml`` into the */path/to/instance/etc/package-includes* directory. The file should |
---|
| 20 | only contain this:: |
---|
[820] | 21 | |
---|
[1233] | 22 | <include package="quintagroup.plonecomments" file="overrides.zcml" /> |
---|
[820] | 23 | |
---|
[1233] | 24 | * Restart the Zope server, for example, with the following command in the terminal:: |
---|
[820] | 25 | |
---|
[1233] | 26 | $ ./bin/zopectl restart |
---|
[966] | 27 | |
---|
[820] | 28 | Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance |
---|
| 29 | recipe to manage your project, you can do this: |
---|
| 30 | |
---|
[1233] | 31 | * Add ``quintagroup.plonecomments`` to the list of eggs to install, e.g.:: |
---|
[820] | 32 | |
---|
| 33 | [buildout] |
---|
| 34 | ... |
---|
| 35 | eggs = |
---|
| 36 | ... |
---|
| 37 | quintagroup.plonecomments |
---|
| 38 | |
---|
[1233] | 39 | * Tell the plone.recipe.zope2instance recipe to install a ZCML slug:: |
---|
[820] | 40 | |
---|
| 41 | [instance] |
---|
| 42 | recipe = plone.recipe.zope2instance |
---|
| 43 | ... |
---|
| 44 | zcml = |
---|
| 45 | quintagroup.plonecomments |
---|
[966] | 46 | quintagroup.plonecomments-overrides |
---|
[820] | 47 | |
---|
[1233] | 48 | * Re-run buildout, e.g. with:: |
---|
[820] | 49 | |
---|
| 50 | $ ./bin/buildout |
---|
[966] | 51 | |
---|
[1233] | 52 | * Restart the Zope server, for example, with the following command in the terminal:: |
---|
| 53 | |
---|
| 54 | $ ./bin/instance restart |
---|
| 55 | |
---|
| 56 | * Install quintagroup.plonecomments via ZMI portal_setup. Select ``quintagroup.plonecomments`` |
---|
[966] | 57 | from the list of available profiles and press *Import all steps*. |
---|
| 58 | |
---|
[1233] | 59 | |
---|
[966] | 60 | **Atention**: If you are using a Plone version **before** 3.1 you need to install |
---|
| 61 | "plone.browserlayer":http://pypi.python.org/pypi/plone.browserlayer (which also |
---|
| 62 | requires a "GenericSetup":http://pypi.python.org/pypi/Products.GenericSetup version |
---|
| 63 | greater than 1.4) in your Plone site. It shows up as **Local browser layer support** |
---|
| 64 | in the Plone Add-on Products Control Panel. |
---|
| 65 | |
---|
[982] | 66 | |
---|
[966] | 67 | Uninstallation |
---|
[1233] | 68 | -------------- |
---|
[966] | 69 | |
---|
[1233] | 70 | * To uninstall quintagroup.plonecomments - select ``quintagroup.plonecomments uninstall`` |
---|
[966] | 71 | profile from the list of available profiles and press *Import all steps*. |
---|