Le 27 avr. 2007, à 10:26, Jose Jiménez López a écrit :

 Hello everybody,

I'm trying to change by hand the state of a document of my portal_catalog.

A document of portal_catalog ? What do you mean ?


 I have been searching and i found this:

 workflow.doActionFor(object, 'new_state')

You need the existence of a transition from current state to new state and that the guard doesn't reject you. The correct object to call if the workflow tool, like this:
   workflowtool.doActionFor(object, 'transition')


but it returns an error: *** Unauthorized: You are not allowed to access 'toNone' in this context

 Why? there are any other way to change the state of a document?

 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

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to