Difference between revisions of "Zope"

From YobiWiki
Jump to navigation Jump to search
Line 7: Line 7:
 
l'ajoutez à l'instance:
 
l'ajoutez à l'instance:
 
dzhandle list-products|grep -i sql
 
dzhandle list-products|grep -i sql
product ZMySQLDA ZMySQLDA zope-mysqlda 2.0.9~b3-3 /usr/share/zope/Products/ZMySQLDA None
+
et doit donner : product ZMySQLDA ZMySQLDA zope-mysqlda 2.0.9~b3-3 /usr/share/zope/Products/ZMySQLDA None
 
dzhandle add-product zope ZMySQLDA
 
dzhandle add-product zope ZMySQLDA
 
/etc/init.d/zope2.9 restart
 
/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/zope/Products ou /var/lib/zop../lib/pyhton/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. : TinyTablePlus

Revision as of 14:44, 11 December 2006

Installation

apt-get install zope python-zmysqldb 

Choisir la bonne version de ZMySQLDA

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 

l'ajoutez à l'instance:

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

dzhandle add-product zope 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/zope/Products ou /var/lib/zop../lib/pyhton/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. : TinyTablePlus