[Zope-CMF] Moving to browser views

Charlie Clark charlie at begeistert.org
Wed Jul 18 15:55:13 EDT 2007


Am 18.07.2007 um 21:51 schrieb Charlie Clark:

> 2) how do I pass in values derived specifically for these views?  
> ie. going from
> options = {}
> options['name'] = charlie
> ...
> return context.mytemplate(**options)

Looks like I've solved that:

return ViewPageTemplateFile('templates/test.pt')(self, **options)

However, seeing as all the examples such as document.py and event.py  
are different this probably isn't the correct way to proceed...

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226





More information about the Zope-CMF mailing list