[web2py] Re: Setting a header

2017-11-02 Thread Dave S
On Thursday, November 2, 2017 at 5:03:34 PM UTC-7, Dave S wrote: [...] > I was able to add this to layout.html (after line 33 in my 2.14.6 copy) > and get expected results: > > {{ if "lsrefresh" in globals():}} > > {{else:}} > {{pass}} > > I tried using CAT to wrap the strings, but tha

[web2py] Re: Setting a header

2017-11-02 Thread Dave S
On Thursday, November 2, 2017 at 12:52:40 PM UTC-7, Anthony wrote: > > > If I put that print statement in my view, the result is None. >> > >>> Note that putting a print statement in a view will have no effect. >>> >> >> It makes the console a little more cluttered. >> > > Right, it will

[web2py] Re: Setting a header

2017-11-02 Thread Anthony
> If I put that print statement in my view, the result is None. > >> Note that putting a print statement in a view will have no effect. >> > > It makes the console a little more cluttered. > Right, it will print to the console -- I just meant it won't add anything to the HTML response.

[web2py] Re: Setting a header

2017-11-02 Thread Dave S
On Thursday, November 2, 2017 at 8:15:31 AM UTC-7, Anthony wrote: > > On Thursday, November 2, 2017 at 12:19:14 AM UTC-4, Dave S wrote: >> >> >> >> On Wednesday, November 1, 2017 at 7:15:11 PM UTC-7, Anthony wrote: >>> >>> It's response.headers. >>> >> >> Indeed, but that isn't a sufficient corre

[web2py] Re: Setting a header

2017-11-02 Thread Anthony
On Thursday, November 2, 2017 at 12:19:14 AM UTC-4, Dave S wrote: > > > > On Wednesday, November 1, 2017 at 7:15:11 PM UTC-7, Anthony wrote: >> >> It's response.headers. >> > > Indeed, but that isn't a sufficient correction. > > /dps > > >> >> Anthony >> >> On Wednesday, November 1, 2017 at 1:18:

[web2py] Re: Setting a header

2017-11-01 Thread Dave S
On Wednesday, November 1, 2017 at 7:15:11 PM UTC-7, Anthony wrote: > > It's response.headers. > Indeed, but that isn't a sufficient correction. /dps > > Anthony > > On Wednesday, November 1, 2017 at 1:18:07 AM UTC-4, Dave S wrote: >> >> I wanted to set the refresh on a page according to how

[web2py] Re: Setting a header

2017-11-01 Thread Anthony
It's response.headers. Anthony On Wednesday, November 1, 2017 at 1:18:07 AM UTC-4, Dave S wrote: > > I wanted to set the refresh on a page according to how often an event is > occurring, and so I tried adding this to my controller function: > > response.header["meta"]='http-equiv="refresh" c