Nuxeo mailing list archives
[CPS-users-fr] Utiliser la transition 'cut_copy_past' dans un
script Python
Cyrille Leroux
cyrille.leroux at gmail.com
Lun 3 Juil 14:24:59 CEST 2006
Bonjour,
Avec CPS3.4.0-1, j'essaie de déplacer des documents d'une section
à l'autre via un script python. Pour ça je fais appel aux transitions
du workflow de base. Mais je n'arrive pas à utiliser la transition
'cut_copy_paste'.
Pour le moment, j'arrive à publier des documents, par exemple avec la commande :
context.portal_workflow.doActionFor(documentConcerné,
'copy_submit',dest_container='cps/sections/uneSection',
initial_transition='publish')
Mais remplacer 'copy_submit' par 'cut_copy_paste' n'est pas suffisant,
et cette commande ne semble pas avoir d'effets
Une idée?
Cyrille.
------------------------------------------------------------------------------
Pour info, les variable du workflow section_content_wf :
action The last transition
actor The ID of the user who performed
comments Comments about the last transition
dest_container Destination container for the last paste/publish
language_revs The language revisions of the proxy
review_history Provides access to workflow history
time Time of the last transition
More information about the cps-users-fr
mailing list
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.