Bonjour à tous et bonne année 2006,
Dans "ajouter un contenu" , je n'arrive pas à attacher un document word
(excel, acrobat, txt,.. fonctionne) si je passe par "Fichier"
Par contre en passant par "Document Flexible" et ensuite "Fichier
attaché" ça fonctionne parfaitement.
Quelqu'un aurait-il une piste ?
Merci d'avance
A la suite : message d'erreur et environnement
--------------------------------------------------------------------------------------------------------------------------------
Request URL
http://localhost/cps/workspaces/XXXXX/cpsdocument_create_form
Exception Type AttributeError
Exception Value wdBrowserLevelV4
Traceback (innermost last):
* Module ZPublisher.Publish, line 113, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 188, in _exec
* Module Products.CMFCore.FSPageTemplate, line 127, in pt_render
* Module Products.PageTemplates.PageTemplate, line 104, in pt_render
<FSPageTemplate at /cps/cpsdocument_create_form used for
/cps/workspaces/XXXXX>
* Module TAL.TALInterpreter, line 206, in __call__
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 477, in do_setLocal_tal
* Module Products.PageTemplates.TALES, line 221, in evaluate
URL: file:CPSDocument/skins/cps_document/cpsdocument_create_form.pt
Line 1, Column 0
Expression: <PythonExpr here.createCPSDocument(REQUEST=request)>
Names:
{'container': <CPSDefaultSite at /cps>,
'context': <ProxyFolder at /cps/workspaces/XXXXX>,
'default': <Products.PageTemplates.TALES.Default instance at
0x0100DD28>,
'here': <ProxyFolder at /cps/workspaces/XXXXX>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at
0x03D923F0>,
'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0x00FF8F58>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0x03D923F0>,
'request': <HTTPRequest,
URL=http://localhost/cps/workspaces/XXXXX/cpsdocument_create_form>,
'root': <Application at >,
'template': <FSPageTemplate at /cps/cpsdocument_create_form used
for /cps/workspaces/XXXXX>,
'traverse_subpath': [],
'user': XXXXX}
* Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: here.createCPSDocument(REQUEST=request)
* Module Python expression
"here.createCPSDocument(REQUEST=request)", line 1, in <expression>
* Module Products.CMFCore.FSPythonScript, line 108, in __call__
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPythonScript, line 163, in _exec
* Module None, line 12, in createCPSDocument
<FSPythonScript at /cps/createCPSDocument used for
/cps/workspaces/XXXXX>
Line 12
* Module Products.CPSDocument.FlexibleTypeInformation, line 1077, in
renderCreateObjectDetailed
* Module Products.CMFCore.FSPythonScript, line 108, in __call__
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPythonScript, line 163, in _exec
* Module None, line 24, in createCPSDocument_cb
<FSPythonScript at /cps/createCPSDocument_cb used for
/cps/workspaces/XXXXX>
Line 24
* Module Products.CPSCore.CPSTypes, line 60, in invokeFactory
* Module Products.CPSWorkflow.workflowtool, line 298, in
invokeFactoryFor
* Module Products.CPSWorkflow.workflowtool, line 434, in _createObject
* Module Products.CPSCore.ProxyTool, line 144, in createRevision
* Module Products.CPSCore.ObjectRepositoryTool, line 132, in
createRevision
* Module Products.CPSCore.CPSTypes, line 112, in constructContent
* Module Products.CPSDocument.FlexibleTypeInformation, line 262, in
_constructInstance
* Module Products.CPSSchemas.DataModel, line 320, in _commit
* Module Products.CPSSchemas.DataModel, line 342, in _commitData
* Module Products.CPSSchemas.BasicFields, line 456, in
computeDependantFields
* Module Products.CPSSchemas.FileUtils, line 65, in convertFileToText
* Module Products.CPSSchemas.FileUtils, line 50, in
_convertFileToMimeType
* Module Products.PortalTransforms.TransformEngine, line 115, in
convertTo
* Module Products.PortalTransforms.chain, line 32, in convert
* Module Products.PortalTransforms.zope.Transform, line 169, in convert
* Module Products.PortalTransforms.transforms.word_to_html, line 35,
in convert
* Module Products.PortalTransforms.transforms.office_com, line 30,
in convert
* Module win32com.client, line 168, in __getattr__
AttributeError: wdBrowserLevelV4
---------------------------------------------------------------------------------------------------------------------------------------
Environnement : CPS 3.3.8.1
SERVER_SOFTWARE 'Zope/(Zope 2.8.4-final, python 2.3.5, win32)
ZServer/1.1 CPS/3.3'
SCRIPT_NAME ''
REQUEST_METHOD 'POST'
HTTP_KEEP_ALIVE '300'
SERVER_PROTOCOL 'HTTP/1.1'
channel.creation_time 1136405312
CONNECTION_TYPE 'keep-alive'
HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8)
Gecko/20051111 Firefox/1.5'
HTTP_REFERER
'http://localhost/cps/workspaces/XXXXX/cpsdocument_create_form?widget__Title=test&type_name=File'
REMOTE_ADDR '127.0.0.1'
PATH_TRANSLATED '\\cps\\workspaces\\XXXXX\\cpsdocument_create_form'
SERVER_PORT '80'
CONTENT_LENGTH '40696'
HTTP_HOST 'localhost'
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 'multipart/form-data;
boundary=---------------------------41184676334'
HTTP_ACCEPT_ENCODING 'gzip,deflate'
PATH_INFO '/cps/workspaces/XXXXX/cpsdocument_create_form'
________________________________________________________________________Fin
_______________________________________________
cps-users-fr
Adresse de la liste : [email protected]
Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/cps-users-fr>