[web2py] Re: Using web2py's view/template engine in a standalone application

2011-06-07 Thread Ryan Seto
t; > the template system. > > > -- > > Thadeus > > > On Mon, Jun 6, 2011 at 1:03 PM, Ryan Seto wrote: > > > I see. > > > > Would you like me to try and come up with a patch for this? > > > > On Mon, Jun 6, 2011 at 1:53 PM, Thadeus Burgess

Re: [web2py] Re: Using web2py's view/template engine in a standalone application

2011-06-06 Thread Ryan Seto
he template system. > > -- > Thadeus > > > > > On Mon, Jun 6, 2011 at 1:03 PM, Ryan Seto wrote: >> >> I see. >> >> Would you like me to try and come up with a patch for this? >> >> On Mon, Jun 6, 2011 at 1:53 PM, Thadeus Burgess >>

Re: [web2py] Re: Using web2py's view/template engine in a standalone application

2011-06-06 Thread Ryan Seto
tion would work as expected. > > -- > Thadeus > > > > > On Mon, Jun 6, 2011 at 12:26 PM, Ryan Seto wrote: >> >> Hm, that doesn't seem to be it either.  I don't get a requirement for >> the globals module, but what I get back is this: >> >>

Re: [web2py] Re: Using web2py's view/template engine in a standalone application

2011-06-06 Thread Ryan Seto
onse_writer >> >          source = self._template() >> >          exec(str(TemplateParser(source, context=context, >> >              writer='response_writer'))) in context >> >          content = output.getvalue() >> > >> > I

[web2py] Re: Using web2py's view/template engine in a standalone application

2011-06-05 Thread Ryan Seto
d that Pandoc comes with it's own template system. So, it may make more sense for me to use Pandoc's templates instead, if I decide to go with it. On Sun, Jun 5, 2011 at 10:45 PM, Massimo Di Pierro wrote: > check trunk. I removed it. I am sure we can do better. > > On Jun 5,

[web2py] Re: Using web2py's view/template engine in a standalone application

2011-06-05 Thread Ryan Seto
uses it for raising exceptions. However, it looks like the Response object is used from the globals module. On Sun, Jun 5, 2011 at 9:12 PM, Massimo Di Pierro wrote: > > > On Jun 4, 7:58 pm, Ryan Seto wrote: > > I really like how elegant and simple it is to create views in web2py.

[web2py] Using web2py's view/template engine in a standalone application

2011-06-05 Thread Ryan Seto
I really like how elegant and simple it is to create views in web2py. Would it be possible to use the view/template engine in a standalone application? I'm writing a desktop application to view formatted text, like markdown, using PyQT's QtWebKit to render the generated html, and I would like to i