开发者

Can't export a workflow from portal_setup

开发者 https://www.devze.com 2023-03-27 14:29 出处:网络
I\'ve created a new workflow in portal_workflow (let\'s name it my_workflow), and I\'m trying to export it using portal_setup without success. I\'ve done this in the past with other workflows, and it

I've created a new workflow in portal_workflow (let's name it my_workflow), and I'm trying to export it using portal_setup without success. I've done this in the past with other workflows, and it worked like a charm. But, somehow, this last workflow I created can't be exported.

When exported, the new created workflow is presented in workflows.xml, but workflows/my_workflow/ and workflows/my_workflow/definition.xml doesn't exist. The other workflows (including some custom ones) are exported.

Is there anything I'm unaware of that is preventing to expor开发者_运维知识库t my new workflow? portal_catalog, something?

EDIT: I get this error when trying to extract the files. Is this something correlated? Just my_workflow isn't presented in my tar.gz.

gzip: stdin: invalid compressed data--length error
tar: Skipping to next header
tar: Child returned status 1
tar: Exiting with failure status due to previous errors


It seems the problem relies in having non-ascii characters on any field (title, description, whatever) in your workflow definition.

I did some debugging in eggs/Products.DCWorkflow-2.1.2-py2.4.egg/Products/DCWorkflow/exportimport.py and eggs/Products.GenericSetup-1.4.5-py2.4.egg/Products/GenericSetup/utils.py, it exports my_workflow correctly, but the exported tar.gz had errors in the end.

When I removed all non-ascii characters from the workflows, the export went without errors, and workflows/my_workflow was present.

Anyone knows why is this? Am I correct in my assumptions?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号