Re: Re: [Webware-discuss] MVC and Servlets

2002-04-29 Thread Aaron Held
AIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 25, 2002 7:46 PM Subject: Re: Re: [Webware-discuss] MVC and Servlets > On Fri, Apr 26, 2002 at 12:59:17AM +0200, Ernesto Revilla wrote: > > > That's > > > t = Template(templateDef, searchList=[order

Re: [Webware-discuss] MVC and Servlets

2002-04-26 Thread Mike Orr
On Fri, Apr 26, 2002 at 10:06:15AM -0700, Tim Roberts wrote: > On Fri, 26 Apr 2002 02:28:02 -0700, Ernesto Revilla <[EMAIL PROTECTED]> wrote: > > > >I'm thinking of using ReportLab PDF files, because I couldn't find how to > >print Header and Footers in HTML for a multi-page report. > > If you ar

Re: [Webware-discuss] MVC and Servlets

2002-04-26 Thread Tim Roberts
On Fri, 26 Apr 2002 02:28:02 -0700, Ernesto Revilla <[EMAIL PROTECTED]> wrote: > >I'm thinking of using ReportLab PDF files, because I couldn't find how to >print Header and Footers in HTML for a multi-page report. If you are willing to flirt with the dark side and assume Internet Explorer, you

Re: Re: [Webware-discuss] MVC and Servlets

2002-04-25 Thread Mike Orr
On Fri, Apr 26, 2002 at 12:59:17AM +0200, Ernesto Revilla wrote: > > That's > > t = Template(templateDef, searchList=[orderData]) > > to you, buddy. :) > > > > It's prob'ly possible with some work to store the precompiled > > template module in the database and then exec it into a private >

Re: Re: [Webware-discuss] MVC and Servlets

2002-04-25 Thread Ernesto Revilla
> That's > t = Template(templateDef, searchList=[orderData]) > to you, buddy. :) > > It's prob'ly possible with some work to store the precompiled > template module in the database and then exec it into a private > dictionary when you need it, but it's prob'ly easier to just > store the te

Re: [Webware-discuss] MVC and Servlets

2002-04-25 Thread Aaron Held
> At most sites, "printable page" just means omit drawing the table cells > and decorations arount the content, and perhaps substitute a few minimal > decorations instead. This can be handled by a couple #if stanzas in the > base template (if using inheritance), along with a 'print' variable in >

Re: [Webware-discuss] MVC and Servlets

2002-04-25 Thread Mike Orr
On Thu, Apr 25, 2002 at 11:42:39AM -0400, Aaron Held wrote: > I know with cheetah you can pull the text from any source and > compile it into a template via > > tempDef = functionToPullTemplateStringFromDatabase > t = Template(tempDef,[orderData]) That's t = Template(templateDef, search

Re: [Webware-discuss] MVC and Servlets

2002-04-25 Thread Aaron Held
ds) So in my little example I have up to 200 templates classes for two different views of one page. But it is fast, and memory is cheap. -Aaron - Original Message - From: "Ernesto Revilla" <[EMAIL PROTECTED]> To: "Webware" <[EMAIL PROTECTED]> Sent: Thursd

[Webware-discuss] MVC and Servlets

2002-04-25 Thread Ernesto Revilla
Dear all, earlier we saw how a MVC design could be used to clearly separate Content from Presentation. We could use PSP or Cheetah for the presentation. 1. I heard there is a way in PSP to pull out the templates from a database and call the a method to execute it. How is this done? Could I use