[CPS-users-fr] pb update

Nicolas CHOUALI nicolas.chouali at laposte.net
Mar 19 Déc 16:00:31 CET 2006


bonjour,

Je tente de migrer une version 3.2 de CPS en 3.4 sans beaucoup de succés !

Archi : Centos 4.4

Version de base : python 2.3 + Zope 2.7 +  CPS 3.2.4 + Authentification LDAP via LDAPUserGroupFolder

Version cible : python 2.4 + Zope 2.10 + CPS 3.4.2-2 + CPS-legacy-3.4.2-1 + authentification LDAP
via CPSLDAPSetup (enfin si j'arrive a migré ! )

Le problème se pose lorsque j'upgrade via le portal_setup ( après avoir passer un petit coups de
migrate/update sur les skins), j'ai l'erreur suivante :


Error Type:  	NameError
Error Value: 	

global name 'get_transaction' is not defined

Traceback: 	

Traceback (innermost last):

    * Module ZPublisher.Publish, line 115, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 41, in call_object
    * Module Products.CPSCore.setuptool, line 397, in manage_doUpgrades
    * Module Products.CPSCore.setuptool, line 153, in doUpgrades
    * Module Products.CPSCore.upgrade, line 88, in doStep
    * Module Products.CPSCore.upgrade, line 206, in upgrade_334_335_repository_security

NameError: global name 'get_transaction' is not defined

form
category	'cpsplatform'
show_old	0
upgrades	['60400898', '1570692852', '104283341', '1309991591', '1983684209', '1060693058',
'1702269524', '1409451419', '1872762424', '1903622934', '368123432', '468785134']
cookies
tree-s	'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEXWFyRrxpUIkjZHyLh5BWeDZCyAMomJegD0-Rah'
__cp
'x%DA%D3%60b%60%60%C8%04b%86hF%20%A1%C1%0C%24J%40%DCb%10%2B%B9%A0%B8%84%13H%27%26%E7%C4%97%16%A7%16%15%03%00o%89%07%89'
cpsskins_view_mode
'eyJ0aGVtZXNfcGFuZWwiOiAidGhlbWVzX21hbmFnZXIiLCAidGhlbWUiOiAicGxvbmUiLCAiY3VycmVudF91cmwiOiAiaHR0cDovLzE3Mi4yNC4wLjI6ODA4NS9jcHMvc2VjdGlvbnMvZGFmcGljLWZjYSJ9'
lazy items
SESSION	<bound method SessionDataManager.getSessionData of <SessionDataManager at
/session_data_manager>>
other
URL2	'http://172.24.0.2:8085/cps'
SERVER_URL	'http://172.24.0.2:8085'
_ec_cache	{-1303740148: <Products.PageTemplates.Expressions.ZopeContext object at 0xb2ccf88c>}
URL0	'http://172.24.0.2:8085/cps/portal_setup/manage_doUpgrades'
URL3	'http://172.24.0.2:8085'
upgrades	['60400898', '1570692852', '104283341', '1309991591', '1983684209', '1060693058',
'1702269524', '1409451419', '1872762424', '1903622934', '368123432', '468785134']
AcceptCharset	<Products.Localizer.Accept.AcceptCharset instance at 0xb267158c>
AUTHENTICATION_PATH	''
category	'cpsplatform'
_oai_cache	{-1303740148: <Products.CMFCore.ActionInformation.oai instance at 0xb0b5fb4c>}
AUTHENTICATED_USER	<User 'manager'>
USER_PREF_LANGUAGES	<Products.Localizer.Accept.AcceptLanguage instance at 0xb249ceec>
show_old	0
cpsskins_base_url	'/cps/'
cpsskins_url	'http://172.24.0.2:8085/cps/portal_setup/manage_doUpgrades'
cpsskins_effective_theme_page	('plone', '1142706136')
ACTUAL_URL	'http://172.24.0.2:8085/cps/portal_setup/manage_doUpgrades'
URL	'http://172.24.0.2:8085/cps/portal_setup/manage_doUpgrades'
cpsskins_cmfactions	{'object': [], 'workflow': [], 'global': [{'category': 'global', 'available':
True, 'title': 'action_manage_vocabularies', 'url':
'http://172.24.0.2:8085/cps/vocabularies_manage_form', 'name': 'action_manage_vocabularies',
'visible': True, 'allowed': True, 'id': 'manage_vocabularies', 'permissions': ('Modify portal
content',)}, {'category': 'global', 'available': True, 'title': 'action_boxes_root', 'url':
'http://172.24.0.2:8085/cps/box_manage_form', 'name': 'action_boxes_root', 'visible': True,
'allowed': True, 'id': 'boxes', 'permissions': ('Manage Boxes',)}, {'category': 'global',
'available': True, 'title': 'Directories', 'url': 'http://172.24.0.2:8085/cps/cpsdirectory_view',
'name': 'Directories', 'visible': True, 'allowed': True, 'id': 'directories', 'permissions':
('View',)}, {'category': 'global', 'available': True, 'title': 'Undo', 'url':
'http://172.24.0.2:8085/cps/undo_form', 'name': 'Undo', 'visible': True, 'allowed': True, 'id':
'undo', 'permissions': ('List undoable changes',)}, {'category': 'global', 'available': True,
'title': 'Reconfigure Portal', 'url': 'http://172.24.0.2:8085/cps/reconfig_form', 'name':
'Reconfigure Portal', 'visible': True, 'allowed': True, 'id': 'configPortal', 'permissions':
('Manage portal',)}, {'category': 'global', 'available': <bound method ActionInfo._checkCondition of
{...}>, 'title': '_action_themes_reconfig_', 'url':
'http://172.24.0.2:8085/cps/cpsskins_themes_reconfig_form', 'name': '_action_themes_reconfig_',
'visible': True, 'allowed': <bound method ActionInfo._checkPermissions of {...}>, 'id':
'configThemes', 'permissions': ('View',)}], 'global_header': [{'category': 'global_header',
'available': True, 'title': 'action_accessibility', 'url':
'http://172.24.0.2:8085/cps/accessibility', 'name': 'action_accessibility', 'visible': True,
'allowed': True, 'id': 'accessibility', 'permissions': ('View',)}, {'category': 'global_header',
'available': True, 'title': 'action_print', 'url': 'javascript:if (window.print) window.print();',
'name': 'action_print', 'visible': True, 'allowed': True, 'id': 'print', 'permissions': ('View',)},
{'category': 'global_header', 'available': True, 'title': 'action_advanced_search', 'url':
'./advanced_search_form', 'name': 'action_advanced_search', 'visible': True, 'allowed': True, 'id':
'advanced_search', 'permissions': ('View',)}, {'category': 'global_header', 'available': True,
'title': 'action_contact', 'url': 'mailto:info.dafco at ac-rouen.fr?subject=Info', 'name':
'action_contact', 'visible': True, 'allowed': True, 'id': 'contact', 'permissions': ('View',)}],
'user': [{'category': 'user', 'available': True, 'title': 'action_my_preferences', 'url':
'http://172.24.0.2:8085/cps/cpsdirectory_entry_view?dirname=members&id=manager', 'name':
'action_my_preferences', 'visible': True, 'allowed': True, 'id': 'action_my_preferences',
'permissions': ('View',)}, {'category': 'user', 'available': True, 'title':
'action_my_subscriptions', 'url': ' http://172.24.0.2:8085/cps/manage_my_subscriptions_form',
'name': 'action_my_subscriptions', 'visible': True, 'allowed': True, 'id': 'my_subscriptions',
'permissions': ('View My Subscriptions',)}], 'folder': []}
cpsskins_language	'fr'
cpsskins_mcat	None
PUBLISHED	<bound method CPSSetupTool.manage_doUpgrades of <CPSSetupTool at /cps/portal_setup>>
_localizer_placeful_mc_cache	{'Localizer/default': <MessageCatalog at /cps/Localizer/default>}
TraversalRequestNameStack	[]
_ts_domain_cache	{'default': <LocalizerDomain at /cps/translation_service/>}
BASE0	'http://172.24.0.2:8085'
BASE1	'http://172.24.0.2:8085'
BASE2	'http://172.24.0.2:8085/cps'
BASE3	'http://172.24.0.2:8085/cps/portal_setup'
BASE4	'http://172.24.0.2:8085/cps/portal_setup/manage_doUpgrades'
AcceptLanguage	<Products.Localizer.Accept.AcceptLanguage instance at 0xb249ceec>
URL1	'http://172.24.0.2:8085/cps/portal_setup'
_translation_service_cache	<PlacefulTranslationService at /cps/translation_service used for
/cps/portal_themes/plone/1142706136/1060543125/1066159495>
URL0	http://172.24.0.2:8085/cps/portal_setup/manage_doUpgrades
URL1	http://172.24.0.2:8085/cps/portal_setup
URL2	http://172.24.0.2:8085/cps
URL3	http://172.24.0.2:8085
BASE0	http://172.24.0.2:8085
BASE1	http://172.24.0.2:8085
BASE2	http://172.24.0.2:8085/cps
BASE3	http://172.24.0.2:8085/cps/portal_setup
BASE4	http://172.24.0.2:8085/cps/portal_setup/manage_doUpgrades
environ
HTTP_COOKIE
'cpsskins_view_mode="eyJ0aGVtZXNfcGFuZWwiOiAidGhlbWVzX21hbmFnZXIiLCAidGhlbWUiOiAicGxvbmUiLCAiY3VycmVudF91cmwiOiAiaHR0cDovLzE3Mi4yNC4wLjI6ODA4NS9jcHMvc2VjdGlvbnMvZGFmcGljLWZjYSJ9";
tree-s="eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEXWFyRrxpUIkjZHyLh5BWeDZCyAMomJegD0-Rah";
__cp="x%DA%D3%60b%60%60%C8%04b%86hF%20%A1%C1%0C%24J%40%DCb%10%2B%B9%A0%B8%84%13H%27%26%E7%C4%97%16%A7%16%15%03%00o%89%07%89"'
SERVER_SOFTWARE	'Zope/(unreleased version, python 2.4.2, linux2) ZServer/1.1 CPS/3.4'
SCRIPT_NAME	''
REQUEST_METHOD	'POST'
HTTP_KEEP_ALIVE	'300'
SERVER_PROTOCOL	'HTTP/1.1'
channel.creation_time	1166538853
CONNECTION_TYPE	'keep-alive'
HTTP_ACCEPT_CHARSET	'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_USER_AGENT	'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061026 BonEcho/2.0'
HTTP_REFERER	'http://172.24.0.2:8085/cps/portal_setup/manage_upgrades'
SERVER_NAME	'0.0.0.0'
REMOTE_ADDR	'172.24.0.108'
PATH_TRANSLATED	'/cps/portal_setup/manage_doUpgrades'
SERVER_PORT	'8085'
CONTENT_LENGTH	'356'
HTTP_HOST	'172.24.0.2:8085'
HTTP_ACCEPT
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
GATEWAY_INTERFACE	'CGI/1.1'
HTTP_ACCEPT_LANGUAGE	'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3'
CONTENT_TYPE	'application/x-www-form-urlencoded'
HTTP_ACCEPT_ENCODING	'gzip,deflate'
PATH_INFO	'/cps/portal_setup/manage_doUpgrades'


fichier de log :
------
2006-12-19T15:40:49 ERROR Zope.SiteErrorLog http://172.24.0.2:8085/cps/portal_setup/manage_doUpgrades
Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.CPSCore.setuptool, line 397, in manage_doUpgrades
  Module Products.CPSCore.setuptool, line 153, in doUpgrades
  Module Products.CPSCore.upgrade, line 88, in doStep
  Module Products.CPSCore.upgrade, line 206, in upgrade_334_335_repository_security
NameError: global name 'get_transaction' is not defined
------
2006-12-19T15:40:49 INFO CPSCore.TreesTool Upgrading tree workspaces


Merci d'avance,

Nicolas CHOUALI


Plus d'informations sur la liste de diffusion cps-users-fr

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