[web2py] Re: Having a function always running in the background

2020-09-02 Thread mostwanted
You are on point Jim, you get what i'm trying to achieve, let me see if i can put it together. Regards; On Tuesday, September 1, 2020 at 8:48:34 PM UTC+2 Jim S wrote: > Ah, so this sounds a little different than what I thought you were after. > > Looks like you want to run a task at a

[web2py] Re: response.meta.keywords of type "map"

2020-09-02 Thread villas
I'm not sure what you are doing exactly but you seem to have created a map iterator. Maybe you could convert that to a list? You might be able to work with it more easily. Something like this: list( response.meta.keywords ) On Wednesday, 2 September 2020 at 12:52:27 UTC+1 lucas wrote:

[web2py] Re: response.meta.keywords of type "map"

2020-09-02 Thread lucas
in fact, when i inspect the head of the final html in the browser, w2p doesn't return a string at all, in fact it returns a reference to an object: On Tuesday, September 1, 2020 at 10:03:28 PM UTC-4 lucas wrote: > hello one and all, > > its been a while since i've been on here. that is a

[web2py] Re: response.meta.keywords of type "map"

2020-09-02 Thread lucas
very simply, i'm trying to add keywords of type string to the response.meta.keywords, which used to be of type string and now its of type map, which exceptions out as above. i've also tried appending to the list like "response.meta.keywords.append("some string here")" and I've tried treating

[web2py] Re: response.meta.keywords of type "map"

2020-09-02 Thread villas
I may have an older version, but I imagine that response.meta.keywords is still just a string. It may be c.keywords is type map? I think type map would be an iterator which you can convert to a list. Once you've used it, it's gone. So, did you try something like on e of these?:

[web2py] Re: Having a function always running in the background

2020-09-02 Thread Andy W
If you are using PythonAnywhere, they have Scheduled Tasks and (for paid accounts) an Aways-on Task. These are very simple to use. I use them for managing the queue of outgoing emails. Andy On Wednesday, September 2, 2020 at 5:09:15 PM UTC+10 mostwanted wrote: > You are on point Jim, you get

[web2py] Re: response.meta.keywords of type "map"

2020-09-02 Thread lucas
no, i tried all those tests. when i simply do return BODY(type(response.meta.keywords)) it returns 'map'. On Wednesday, September 2, 2020 at 7:07:13 PM UTC-4 villas wrote: > I may have an older version, but I imagine that response.meta.keywords > is still just a string. > It may be