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