Installing Zoook on Ubuntu III
Installing Zoook on Ubuntu III
Este artículo está disponible en castellano.
This is part three in our articles dedicated to the installation of Zoook on Ubuntu 11.10. The next steps will be to fetch the source code from the repositories of Zik Zak Media and establish its connection it with OpenERP.
Table of Contents
1 Download Zoook from the repositories
The repository of the Django application of Zoook isn’t available any more on Launchpad. But you can fetch a zipped copy here.
For the rest of this article I assume that you unpacked the content of the archive to
/home/roberto/django-projects/zoook-app
.
2 Install dependencies
Zoook depends on the following packages:
- OOOP (the Zikzak fork),
- Pyro3 (optional but recommended),
- Paramiko,
- Recaptcha Client,
- inplaceeditform (the Zikzak fork),
- django-localurl,
- django-maintenancemode (the Zikzak fork) and
- django-transmeta.
Install the python-setuptools package first in order to make the installation of these dependencies easier:
$ sudo apt-get install python-setuptools
The next step is to create a folder, where you want to install all further third party dependencies of Zoook. This will later on make updates of the packages via git, mercurial, etc. much easier. In this tutorial we are going to use ~/django-projects/zoook-external
for this purpose:
$ cd ~/django-projects $ mkdir zoook-external
2.1 OOOP (Open Object On Python)
Clone and install the fork of Zikzak Media:
$ cd ~/django-projects/zoook-external $ git clone https://github.com/zikzakmedia/ooop.git $ cd ooop $ sudo python setup.py install
2.2 Pyro3 (Python Remote Objects)
Check their PyPI project page for the latest version – that is 3.15 as of this writing –, download, unpack and install it:
$ cd ~/django-projects/zoook-external $ wget pypi.python.org/packages/source/P/Pyro/Pyro-3.15.tar.gz $ tar xvzf Pyro-3.15.tar.gz $ cd Pyro-3.15 $ sudo python setup.py install
2.3 Paramiko
Check their website for the latest version – that is 1.7.7.1 as of this writing –, download, unpack and install it:
$ cd ~/django-projects/zoook-external $ wget http://www.lag.net/paramiko/download/paramiko-1.7.7.1.tar.gz $ tar xvzf paramiko-1.7.7.1.tar.gz $ cd paramiko-1.7.7.1 $ sudo python setup.py install
2.4 Recaptcha Client
Check their PyPI project page for the latest version – that is 1.0.6 as of this writing –, download, unpack and install it:
$ cd ~/django-projects/zoook-external $ wget http://pypi.python.org/packages/source/r/recaptcha-client/recaptcha-client-1.0.6.tar.gz $ tar xvzf recaptcha-client-1.0.6.tar.gz $ cd recaptcha-client-1.0.6 $ sudo python setup.py install
2.5 inplaceeditform
Clone and install the fork of Zikzak Media:
$ cd ~/django-projects/zoook-external $ git clone https://github.com/zikzakmedia/django-inplaceeditform.git $ cd django-inplaceeditform $ sudo python setup.py install
2.6 django-localurl
In the case that there is no Mercurial installed:
$ sudo apt-get install mercurial
This done, clone the oficial repository of django-localurl and install it:
$ cd ~/django-projects/zoook-external $ hg clone https://bitbucket.org/carljm/django-localeurl $ cd django-localeurl/ $ sudo python setup.py install
2.7 django-transmeta
In case that you don’t have SVN installed:
$ sudo apt-get install svn
That finished go ahead to the installation of django-transmeta:
$ cd ~/django-projects/zoook-external $ svn checkout http://django-transmeta.googlecode.com/svn/trunk/ django-transmeta $ cd django-transmeta $ sudo python setup.py install
2.8 django-maintenancemode
Clone and install Zikzak Media’s fork of django-maintanencemode:
$ cd ~/django-projects/zoook-external $ git clone https://github.com/zikzakmedia/django-maintenancemode.git $ cd django-maintenancemode $ sudo python setup.py install
2.9 Correct imports
As a default Zoook’s module do absolute imports with a zoook.
prefix. You’ll have to convert these absolute imports to relative ones. That is, to eliminate this ‘zoook’ prefix. Modify the following files as indicated.
2.9.1 /zoook-app/settings.py
Change this line
ROOT_URLCONF = 'zoook.urls'
to
ROOT_URLCONF = 'urls'
2.9.2 /zoook-app/tools/cms/templatetags/imageslider.py
Change this line
from zoook.tools.cms.models import ImageSlider, ImageSliderItem
to
from tools.cms.models import ImageSlider, ImageSliderItem
2.9.3 /zoook-app/tools/cms/templatetags/menubuilder.py
Change this line
from zoook.tools.cms.models import Menu, MenuItem
to
from tools.cms.models import Menu, MenuItem
2.9.4 /zoook-app/tools/cms/templatetags/modules.py
Change this line
from zoook.tools.cms.models import Modules
to
from tools.cms.models import Modules
The next and final article in this series will be dedicated to the interconnection of Zoook and OpenERP.
Read more http://www.domatix.com/installing-zoook-on-ubuntu-%E2%80%93-part-iii-zoook-installation
you could find more infromation about Installing Zoook on Ubuntu – III in our web page https://openerpspain.com/odoo/