so, i did a lot of digging and experimenting. it came down to adding this
line:
response.meta.keywords = ""
so, i'm guessing instantiating keywords as a string forced it to be of type
string. and i confirmed with the final html in the browser and verified it
was outputting the string of
If necessary, update pydal
Explanation: It sounds like an instance of iteritems is not being
converted to python 3 - I think that happens in pydal._compat.py.
If that is not the problem, continue...
Check value of: type(c.keywords)
Check value of: print(list(c.keywords))
If
ok, i've tried what you suggested but on response.meta.keywords:
list(response.meta.keywords).append(', '+c.keywords if c.keywords
else "")
which does not except out, but when i view the final html code in the
browser, web2py still returns:
on the new centos 8.2 server. BUT on the
maybe i didn't explain what happened here. i've been running web2py on a
centos 7.6 server with python 2.7.5. i created a brand new server with
centos 8.2 with python 3.8.0. both servers are running web2py 2.20.4.
when i copy the application code from the centos 7.6 to the new centos 8.2
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
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?:
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
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:
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
9 matches
Mail list logo