[Zope] Re: View classes based on Page Templates in Zope2

2006-11-13 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Bengtsson wrote: > > Jens Vagelpohl wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> >> On 12 Nov 2006, at 13:12, Peter Bengtsson wrote: >>> What options do we have for this in Zope2? >>> If Five is the answer, what options do we

Re: [Zope] Re: View classes based on Page Templates in Zope2

2006-11-13 Thread Peter Bengtsson
Has anybody written a convenient class like this? Perhaps based in PageTemplateFile or something? from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile Cool. Thanks. I'll have a play. -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerpro

[Zope] Re: View classes based on Page Templates in Zope2

2006-11-12 Thread Philipp von Weitershausen
Peter Bengtsson wrote: Something I like about Zope3 is the View classes. What I like about it especially is that it's a brilliant place for putting in little extra silly python methods that are specific to your template rather than the object class. Eg. class ViewProduct(BrowserPage): __c