Zope: Difference between revisions

From YobiWiki
Jump to navigation Jump to search
Content deleted Content added
 
(6 intermediate revisions by 3 users not shown)
Line 2: Line 2:


apt-get install zope python-zmysqldb
apt-get install zope python-zmysqldb
Choisir la bonne version de ZMySQLDA
On cherche une version de ZMySQLDA qui soit packagée
* http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&subword=1&version=all&release=all&keywords=zope-mysqlda&sourceid=mozilla-search
Le paquet n'existe pour l'instant ni en testing ni en unstable et la version stable dépend de python2.2, nous installons donc manuellement la [http://packages.debian.org/experimental/web/zope-mysqlda version experimental]
wget http://ftp.de.debian.org/debian/pool/main/z/zope-mysqlda/zope-mysqlda_2.0.9~b3-3_all.deb
wget http://ftp.de.debian.org/debian/pool/main/z/zope-mysqlda/zope-mysqlda_2.0.9~b3-3_all.deb
dpkg -i zope-mysqlda_2.0.9~b3-3_all.deb
dpkg -i zope-mysqlda_2.0.9~b3-3_all.deb
Chercher le nouveau produit
l'ajoutez à l'instance:
dzhandle list-products|grep -i sql
dzhandle list-products|grep -i sql
et doit donner : product ZMySQLDA ZMySQLDA zope-mysqlda 2.0.9~b3-3 /usr/share/zope/Products/ZMySQLDA None
=> product ZMySQLDA ZMySQLDA zope-mysqlda 2.0.9~b3-3 /usr/share/zope/Products/ZMySQLDA None
et l'ajoutez à l'instance <myinst>:
dzhandle add-product zope ZMySQLDA
dzhandle add-product <myinst> ZMySQLDA
/etc/init.d/zope2.9 restart
/etc/init.d/zope2.9 restart


Commentaires :
Commentaires :
creer une nouvelle instance
<br>creer une nouvelle instance
makeinstance <nom_de_la_nouvelle_instance_zope> --python=/lien/vers/python/
makeinstance <nom_de_la_nouvelle_instance_zope> --python=/lien/vers/python/
executable sont dans /usr/bin/mysql ou python ou python2.4 ou ..
executable sont dans /usr/bin/mysql ou python ou python2.4 ou ..


Les produits zope sont a installer dans /var/lib/zope2.9/instance/zope/Products ou /var/lib/zop../lib/pyhton/Products/
Les produits zope sont a installer dans /var/lib/zope2.9/instance/<myinst>/Products ou /var/lib/zop../lib/python/Products/


e.g. : FSCounter
e.g. : FSCounter
Line 25: Line 28:
/etc/init.d/zope2.9 restart
/etc/init.d/zope2.9 restart


e.g. : TinyTablePlus
e.g. : Photo
apt-get install zope-photo zope-extfile zope-testcase python-imaging python-imaging-sane python-imaging-doc python-imaging-doc-pdf python-imaging-tk python-imaging imagemagick
cd /var/lib/zope2.9/instance/<instance_name>/Products/
wget http://www.zope.org/Members/rbickers/Photo/Photo/Photo-1.2.4.tgz
tar xvzf Photo-1.2.4.tgz
chown -R zope:zope ./Photo-1.2.4
dzhandle add-product zope Photo

e.g. : PHParser
cd /var/lib/zope2.9/instance/zope/Products
wget http://www.zope.org/Members/hewei/PHParser/1.1.5/PHParser-1.1.5.tar.gz
tar xvzf PHParser-1.1.5.tar.gz
chown -R zope:zope ./PHParser
/etc/init.d/zope2.9 restart

e.g. : ZCGI
wget http://www.zope.org/Members/haqa/ZCGI/1.2.1/ZCGI-1.2.1.tgz
tar xvzf ZCGI-1.2.1.tgz
chown -R zope:zope ./ZCGI
dzhandle add-product zope
/etc/init.d/zope2.9 restart

----------------

To get the country from the visitor on a zope page: cf [[GeoIP]]

Latest revision as of 12:02, 31 December 2006

Installation

apt-get install zope python-zmysqldb 

On cherche une version de ZMySQLDA qui soit packagée

Le paquet n'existe pour l'instant ni en testing ni en unstable et la version stable dépend de python2.2, nous installons donc manuellement la version experimental

wget http://ftp.de.debian.org/debian/pool/main/z/zope-mysqlda/zope-mysqlda_2.0.9~b3-3_all.deb  
dpkg -i zope-mysqlda_2.0.9~b3-3_all.deb 

Chercher le nouveau produit

dzhandle list-products|grep -i sql 
=> product ZMySQLDA ZMySQLDA zope-mysqlda 2.0.9~b3-3 /usr/share/zope/Products/ZMySQLDA None 

et l'ajoutez à l'instance <myinst>:

dzhandle add-product <myinst> ZMySQLDA      
/etc/init.d/zope2.9 restart

Commentaires :
creer une nouvelle instance

makeinstance <nom_de_la_nouvelle_instance_zope> --python=/lien/vers/python/

executable sont dans /usr/bin/mysql ou python ou python2.4 ou ..

Les produits zope sont a installer dans /var/lib/zope2.9/instance/<myinst>/Products ou /var/lib/zop../lib/python/Products/

e.g. : FSCounter

cd /var/lib/zope2.9/instance/zope/Products
wget http://www.zope.org/Members/bowerymarc/FScounter/default/FSCounter12.tgz
tar xvzf FSCounter12.tgz
chown -R zope:zope ./FSCounter
/etc/init.d/zope2.9 restart

e.g. : Photo

apt-get install zope-photo zope-extfile zope-testcase python-imaging python-imaging-sane python-imaging-doc python-imaging-doc-pdf python-imaging-tk python-imaging imagemagick
cd /var/lib/zope2.9/instance/<instance_name>/Products/
wget http://www.zope.org/Members/rbickers/Photo/Photo/Photo-1.2.4.tgz
tar xvzf Photo-1.2.4.tgz
chown -R zope:zope ./Photo-1.2.4
dzhandle add-product zope Photo

e.g. : PHParser

cd /var/lib/zope2.9/instance/zope/Products
wget http://www.zope.org/Members/hewei/PHParser/1.1.5/PHParser-1.1.5.tar.gz
tar xvzf PHParser-1.1.5.tar.gz
chown -R zope:zope ./PHParser
/etc/init.d/zope2.9 restart

e.g. : ZCGI

wget http://www.zope.org/Members/haqa/ZCGI/1.2.1/ZCGI-1.2.1.tgz
tar xvzf ZCGI-1.2.1.tgz
chown -R zope:zope ./ZCGI
dzhandle add-product zope 
/etc/init.d/zope2.9 restart

To get the country from the visitor on a zope page: cf GeoIP