Installation
------------

quintagroup.sunrain.policy can be installed in any of the following ways. 

Installation via buildout
=========================

In the buildout.cfg file of your instance:

* Add ``quintagroup.sunrain.policy`` to the list of eggs to install, e.g.::

    [buildout]
    ...
    eggs =
        ...
        quintagroup.sunrain.policy

* Re-run buildout::

    $ ./bin/buildout

* Restart the Zope server::

    $ ./bin/instance restart

Then activate 'SunRain Policy' in Plone (Site Setup -> Add-ons).

Installation: development mode
==============================

If you want to customize SunRain Policy please use the following installation instructions: 

* download ``quintagroup.sunrain.policy-version.zip`` archive from http://pypi.python.org/pypi/quintagroup.sunrain.policy
* extract product archive to get ``quintagroup.sunrain.policy-version`` folder. Remove version from 
  folder name to have ``quintagroup.sunrain.policy`` folder
* put ``quintagroup.sunrain.policy`` folder into ``src`` directory of your buildout
* in buildout.cfg file of your buildout add ``quintagroup.sunrain.policy`` to the list of eggs you are developing and  to the list of eggs to install::

       [buildout]
       ...
       develop = src/quintagroup.sunrain.policy
       ...
       eggs =
           ...
           quintagroup.sunrain.policy
   
* Re-run buildout::

    $ ./bin/buildout

* Start instance in development mode::

    $ ./bin/instance fg

* Install ``SunRain Policy`` in Plone (Site Setup -> Add-ons).

Now you can customize SunRain Policy by modifying ``quintagroup.sunrain.policy`` package in ``src`` directory 
of your buildout.