From: Stan M. <sf...@gm...> - 2008-10-23 22:34:26
|
Never mind - it's a browser view class. My Zope 3 knowledge is still academic. ;) -stan On Oct 23, 5:07 pm, Stan McFarland <sfmc...@gmail.com> wrote: > Ross, thanks for responding. I'm afraid my ignorance is showing - > exactly what is a "view base class?" Keep in mind that we're still on > Plone 2.5 - is that a Zope 3 construct? > > Thanks again, > > Stan > > On Oct 23, 4:33 pm, Ross Patterson <m...@rpatterson.net> wrote: > > > > > Stan McFarland <sfmc...@gmail.com> writes: > > > Here's my situation. I'm building a site that will involve displaying > > > data returned from many different types of queries - folder contents > > > listings, keyword queries, date range queries, etc. But all results > > > will be displayed to the user in a consistent fashion. Ideally, I > > > only want to write the "display" part one time. How can I separate > > > my business and presentation logic in different templates/scripts so > > > that I can execute a query in one and then pass the returning sequence > > > of brains to a common "display" template? > > > You could create a view base class and a corresponding template. Then > > you could subclass that view class in multiple views, implement the > > query specifics in those views and use the same template with them all. > > > You could also create collections that each have the right criteria for > > each of your queries. Then you could use one of the existing collection > > display layouts or create a new one to use on all collections. > > > HTH, > > Ross > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Plone-Users mailing list > > Plone-Us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/plone-users > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Plone-Users mailing list > Plone-Us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/plone-users |