Bonjour, toujour dans le cadre de l'envoi de mail provoqué par la creation d'un document, je souhaite integrer l'url de l'objet créé dans le corps du message. Pour cela j'utilise le code suivant :
#recuperation du rpath dict = state_change.object.getContentInfo() #recuperation de l'url du portail. portalUrl = context.portal_url.getPortalUrl() #url du document mMsg = '%s%s'%(portalUrl, str(dict['rpath'])) Apparemment "context.portal_url.getPortalUrl()" ne retourne rien. Connaissez vous un moyen d'obtenir l'url du portail, j'ai essayé "mMsg = state_change.object.absolute_url()" mais cela ne fonctionne pas. Vous remerciant par avance. Cordialement. Grégory François. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. _______________________________________________ cps-users-fr Adresse de la liste : [email protected] Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/cps-users-fr>
