Re: [ZIZope] python scripts, estensioni file, passaggio parametri a zpt
[email protected] Tue, 22 Jan 2008 13:54:39 +0100
| Newsgroups | gmane.comp.web.zope.italian |
|---|---|
| Organization | ICGEB |
| Message-ID | <[email protected]> |
On Tuesday 22 January 2008 13:14:11 Yuri wrote: > Stefano Guglia wrote: > > ormai che mi sono fatto una reputazione.. > > > > ... > > pt = context.miotemplate > > s = pt(param=valore) > > return s > > > > per passare la variabile param dallo script python allo template zope di > > nome miotemplate. e funziona. > > > > ma se si chiamasse miotemplate.zpt oppure miotemplate.zpt.html..quale e' > > la sintassi corretta per non incorrere nell' inevitabile errore?? > > > > context[<una stringa] ok, context['miotemplate.zpt'] e si parte.. In effetti sono un po' confuso con tutte queste notazioni diverse. Grazie, Stefano