[CPS-devel] Error creating content inside of a folderish document

Miguel Sánchez Beato miguel.sanchez at iavante.es
Fri Jun 15 14:22:44 CEST 2007


Hello. I've created a new content type, "A", that have the content type 
"B" as allowed content type. "A" has 'workspace_folderish _conent_wf' 
and "B" has 'workspace_content_wf'   (.cps_workflow_configuration)

When I try to create an instance of "B" inside of "A", I get an error 
like this:

/2007-06-15 14:19:50 ERROR Zope.SiteErrorLog 
http://localhost:8003/lasalle/workspaces/recursos/container/ainstance/cpsdocument_create
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.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 164, in _exec
  Module None, line 26, in cpsdocument_create
   - <FSPythonScript at /lasalle/cpsdocument_create used for 
/lasalle/workspaces/recursos/container/ainstance>
   - Line 26
  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 164, in _exec
  Module None, line 28, in cpsdocument_create_do
   - <FSPythonScript at /lasalle/cpsdocument_create_do used for 
/lasalle/workspaces/recursos/contanier/ainstance>
   - Line 28
  Module Products.CPSCore.CPSTypes, line 60, in invokeFactory
  Module Products.CPSWorkflow.workflowtool, line 314, in invokeFactoryFor
  Module Products.CPSWorkflow.workflowtool, line 407, in _createObject

/*/WorkflowException: Container 'container' does not allow subobject 
behavior allow-sub-create (not allowed by workflow 
workspace_folderish_content_wf, no state)/
*

Any ideas about somethig I have not done right? Do I have to do anything 
else to allow content creation inside folderish documents?

Thank you!

-- 

*Miguel Sánchez Beato * 
*Técnico de Software Libre * 
FUNDACIÓN IAVANTE

miguel.sanchez at iavante.es
Tel. 951 015 358 *(915358)*

 

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.

 




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