Dtml-in et script python
Pour participer à cette discussion, cliquez ici pour vous inscrire.
| Auteur | Discussion |
|---|---|
|
jackadam |
Dtml-in et script python que doit-on rendre comme valeur dans un script python pour que ces valeurs puissent être accessible par dtml-var bonjour, j'ai un script python qui me renvoie une liste de dictionaries: ex: return(return [{"nom":"jack"},{"nom":"paul"}]) dans mon dtml, je fais dtml-in aaaa dtml-let nom="_['sequence-item']['nom']" dtml-var nom /dtml-let /dtml-in Que dois-je faire dans mon script python pour pouvoir accéder directement à mes variables par; dtml-in aaaa dtml-var nom /dtml-in Posté le 14/03/2007 @ 14:04
|
|
gillou |
Format
Il faut que le script retourne une liste d'objets ayant un attribut ou méthode "nom". Posté le 15/03/2007 @ 18:20
|

Log in
Forgot your password?