On 9 Jun 2005, at 16:56, Joris DEDIEU wrote:
Je suis en ce moment dans une problematique un peu semblable (remplir des champs automatiquement)
Ceci dit, j'ai de gros problemes de permission avec getEditableContent
En fait, j'ai un script de workflow du type :

#Set the object's title and send a mail for confirmation
obj = state_change.object
sn = obj.getContent().sn
gn = obj.getContent().givenName
kw = {'Title': gn + ' ' + sn}
obj.getEdiatbleContent().edit(**kw)
...

Mais je ne peux l'executer en tant que Manager :

Unauthorized
Error Value:
You are not allowed to access 'getEditableContent' in this context

Comme d'habitude, merci d'installer le produit VerboseSecurity pour avoir plus d'infos.

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


_______________________________________________
cps-users-fr 
Adresse de la liste : [email protected]
Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/cps-users-fr>

Répondre à