Hello,
I am creating a new portal_type for my cps portal. This type will handle
a zip file uploaded by the user. I have seen that the type imagegallery
in CPS 3.4.3 make same this with image files.
For that, i have created a new schema called ziparchiveuploader, with a
field with "Write: expression" property set to "python:
modules['Products.CPSDocument.createFile'].createFile(proxy, value)".
This expression is copied from imagegallery. When i try to upload a zip
file, it returns me this error:
Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
- __traceback_info__:
modules['Products.CPSDocument.createFile'].createFile(proxy, value)
Module Python expression
"modules['Products.CPSDocument.createFile'].createFile(proxy, value)",
line 1, in <expression>
Module Products.CPSDocument.createFile, line 87, in createFile
Module Products.CPSWorkflow.workflowtool, line 310, in
invokeFactoryFor
Module Products.CPSWorkflow.workflowtool, line 403, in _createObject
WorkflowException: Container zipfile1 does not allow subobject behavior
allow-sub-create (not allowed by workflow
workspace_folderish_content_wf, no state)
"zipfile1" is the name of the object i'm trying to create.
I have tried too to create an imagegallery in a cps 3.4.3 portal, and it
returns the same error.
Any idea?
Thanks.
Jose Jiménez López
Becario de Sistemas
FUNDACIÓN IAVANTE
[EMAIL PROTECTED]
Tel. 958 00 22 63
Este correo electrónico y, en su caso, cualquier fichero anexo, contiene
información confidencial exclusivamente dirigida a su(s)
destinatario(s). Toda copia o divulgación deberá ser autorizada por
IAVANTE.
This e-mail and any attachments are confidential and exclusively
directed to its adressee(s). Any copy or distribution will have to be
authorized by IAVANTE.
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel