[CPS-users-fr] Installation Zope/CPS sous Debian

Sébastien FIEVET sebastien.fievet at gmail.com
Ven 17 Nov 14:17:31 CET 2006


contenu de type multipart/alternative sauté-------------- section suivante --------------
Installation Python 2.4.4
=========================
T?l?charger les sources de Python depuis le site officiel http://python.org
.. _Releases http://www.python.org/download/releases/2.4.4/
.. _Sources http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tgz

>>>tar zxvf Python-2.4.4.tgz
>>>cd Python-2.4.4
>>>./configure --prefix=/opt
>>>make
>>>su	<-- frapper le mot de passe rootmake install
>>>[Ctrl+D]


Installation libxml2-python-2.6.9
=================================
N.B. : D?pendance de la librarie lxml
T?l?charger les sources de libxml2-python depuis le site officiel http://xmlsoft.org
Releases : http://xmlsoft.org/news.html
Sources : ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.9.tar.gz

tar zxvf libxml2-python-2.6.9.tgz
cd libxml2-python-2.6.9
su	<-- frapper le mot de passe root
/opt/bin/python setup.py install
[Ctrl+D]

Installation easy_install
=========================
N.B. : D?pendance pour lxml
T?l?charger le fichier ez_setup.py depuis le site officiel http://peak.telecommunity.com/DevCenter/EasyInstall
File : http://peak.telecommunity.com/dist/ez_setup.py

su	<-- frapper le mot de passe root
/opt/bin/python ez_setup.py
[Ctrl+D]

Installation lxml
=================
N.B. : D?pendance du produit CPBlog

su	<-- frapper le mot de passe root
/opt/bin/easy_install lxml
[Ctrl+D


Cr?ation d'un utilisateur zope
==============================
su	<-- frapper le mot de passe root
adduser zope
# saisir les informations de configuration
[Ctrl+D]


Installation Zope 2.9.5
=======================
T?l?charger les sources de Zope depuis le site officiel http://zope.org
Releases : http://www.zope.org/Products/Zope/2.9.5
Sources : http://www.zope.org/Products/Zope/2.9.5/Zope-2.9.5-final.tgz

tar zxvf Zope-2.9.5-final.tgz
cd Zope-2.9.5-final
./configure --prefix=/opt --with-python=/opt/bin/python
make
su	<-- frapper le mot de passe root
make install
[Ctrl+D]
# cr?e une instance "zope" dans le r??pertoire /var/www, avec l'administrateur "admin" et le mot de passe "admin"
mkdir /var/www/zope
chown zope /var/www/zope
[Ctrl+D]
su zope <-- frapper le mot de passe zope
/opt/bin/mkzopeinstance.py -d /var/www/zope -u admin:admin
[Ctrl+D]


Installation CPS 3.4.2
======================
T?l?charger les sources de CPS depuis le site officiel http://www.cps-project.org/
Releases : http://www.cps-project.org/sections/downloads
Sources : http://www.cps-project.org/sections/downloads/.cps_download?url=/static/src/CPS-platform-3.4.2-2.tar.gz

tar zxvf CPS-platform-3.4.2-2.tgz
su zope	<-- frapper le mot de passe zope
cp -R Products/ /var/www/zope/
[Ctrl+D]

Tester l'instance Zope/CPS
============================
su zope	<-- frapper le mot de passe zope
cd /var/www/zope
./bin/zopectl start
[Ctrl+D]

Patcher CPS 3.4.2
=================
Apr?s avoir d?marr? l'instance et s'??tre rendu dans la ZMI (http://localhost:8080/manage), l'erreur suivante appara?t :
"""
Site Error

An error was encountered while publishing this resource.

Error Type: NameError
Error Value: name 'getDefaultSorting' is not defined
"""

Probl?me : http://comments.gmane.org/gmane.comp.web.zope.cps.general.french/8307
Solution : http://svn.nuxeo.org/trac/pub/changeset/49771

vi Products/CPSCompat/manage_main.dtml +62
[Inser]
# modifier la ligne comme indiqu?? dans la patch
[Echap+:wq]
./bin/zopectl restart
-------------- section suivante --------------
2006-11-17 11:32:17 ERROR root Exception while rendering an error message
Traceback (most recent call last):
  File "/opt/lib/python/OFS/SimpleItem.py", line 223, in raise_standardErrorMessage
    v = s(**kwargs)
  File "/opt/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
    return self._bindAndExec(args, kw, None)
  File "/opt/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
    return self._exec(bound_data, args, kw)
  File "/var/www/zope/Products/CMFCore/FSPageTemplate.py", line 195, in _exec
    result = self.pt_render(extra_context=bound_names)
  File "/var/www/zope/Products/CMFCore/FSPageTemplate.py", line 134, in pt_render
    result = FSPageTemplate.inheritedAttribute('pt_render')(
  File "/opt/lib/python/Products/PageTemplates/PageTemplate.py", line 104, in pt_render
    tal=not source, strictinsert=0)()
  File "/opt/lib/python/TAL/TALInterpreter.py", line 238, in __call__
    self.interpret(self.program)
  File "/opt/lib/python/TAL/TALInterpreter.py", line 281, in interpret
    handlers[opcode](self, args)
  File "/opt/lib/python/TAL/TALInterpreter.py", line 457, in do_optTag_tal
    self.do_optTag(stuff)
  File "/opt/lib/python/TAL/TALInterpreter.py", line 442, in do_optTag
    return self.no_tag(start, program)
  File "/opt/lib/python/TAL/TALInterpreter.py", line 437, in no_tag
    self.interpret(program)
  File "/opt/lib/python/TAL/TALInterpreter.py", line 281, in interpret
    handlers[opcode](self, args)
  File "/opt/lib/python/TAL/TALInterpreter.py", line 749, in do_useMacro
    self.interpret(macro)
  File "/opt/lib/python/TAL/TALInterpreter.py", line 281, in interpret
    handlers[opcode](self, args)
  File "/opt/lib/python/TAL/TALInterpreter.py", line 507, in do_setLocal_tal
    self.engine.setLocal(name, self.engine.evaluateValue(expr))
  File "/opt/lib/python/Products/PageTemplates/TALES.py", line 221, in evaluate
    return expression(self)
  File "/opt/lib/python/Products/PageTemplates/ZRPythonExpr.py", line 47, in __call__
    return eval(code, g, {})
  File "Python expression "mtool.assertViewable(here)"", line 1, in <expression>  File "/var/www/zope/Products/CPSCore/CPSMembershipTool.py", line 112, in assertViewable
    raise Unauthorized
Unauthorized: <AccessControl.unauthorized.Unauthorized instance at 0x442f55ec>



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.