Installation Zope/CPS sous Debian

"Sébastien FIEVET" <[email protected]>
Newsgroups gmane.comp.web.zope.cps.general.french
Message-ID <[email protected]>
Bonjour à tous,

J'essaye en vain de faire fonctionner une instance Zope 2.9.5 avec CPS
3..4.2-2, sous une Sarge 3.1r3
La procédure d'installation est celle du fichier INSTALL.txt.
Résumé :

   - compilation python 2.4.4
   - compilation libxml2
   - installation easy_install
   - installation lxml (dépendance CSBlog)
   - compilation Zope
   - installation CPS + patch pour Zope 2.9.5

Enfin, après avoir démarré l'instance, je crée un nouveau "CPS Default
Site", et j'essaye de gérer ce site (http://localhost:8080/cps).
Connecté en tant qu'administrateur Zope, je possède en théorie tous les
privilèges. Cependant, dès que j'essaye de gérer du contenu (ajout d'un
nouveau type de document - gestion des droits d'accès), j'ai l'erreur
suivante :

Site Error

An error was encountered while publishing this resource.

Resource not found
Sorry, the requested resource does not exist.

Check the URL and try again.

Resource: http://localhost:8080/cps/sections/1644943007__0001

Troubleshooting Suggestions

    * The URL may be incorrect.
    * The parameters passed to this resource may be incorrect.
    * A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to the error
log.

If the error persists please contact the site maintainer. Thank you for your
patience.
(Also, the following error occurred while attempting to render the standard
error message, please see the event log for full details: <
AccessControl.unauthorized.Unauthorized instance at 0x443a5dcc>)

S'agit il d'un problème de droits au niveau système de fichiers eu niveau
Zope/CPS ?
Merci d'avance.
Bye :)
Seb

_______________________________________________
cps-users-fr 
Adresse de la liste : [email protected]
Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/cps-users-fr>
INSTALL.txt (text/plain, 3.3 KB)
Installation Python 2.4.4
=========================
Tlcharger 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. : Dpendance de la librarie lxml
Tlcharger 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. : Dpendance pour lxml
Tlcharger 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. : Dpendance du produit CPBlog

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


Cration 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
=======================
Tlcharger 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]
# cre une instance "zope" dans le rpertoire /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
======================
Tlcharger 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
=================
Aprs avoir dmarr l'instance et s'tre rendu dans la ZMI (http://localhost:8080/manage), l'erreur suivante apparat :
"""
Site Error

An error was encountered while publishing this resource.

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

Problme : 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
ERROR.txt (text/plain, 2.3 KB)
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.