LOAD in web2py 2.14 and 2.19.1

41 views
Skip to first unread message

Annet

unread,
May 18, 2020, 10:43:43 AM5/18/20
to web2py-users
After upgrading to web2py 2.19.1 and switching to python 3.7 the
following no longer works.

I have a controller main with an index function that builds a
scaffold with header, content and footer.

The index function returns a variable:

content = LOAD('home', 'index', args=[vertexid, typeid, viewtypeid, groupid, plural],
                         ajax=True, target='main-content', content='')


The view main/index.html extends layout.html and contains:

{{=content}}

The view home/index.load extends content/main.html which contains
{{include}} and a few includes like this one {{include 'content/hero'}}


This used to work well, in web2py 2.19 .1 it results in a 404 NOT FOUND error

<div id="main-component" data-w2p_remote="/init/home/index/427/1/5/28/False">404 NOT FOUND</div>


Any ideas why this no longer works?


Kind regards,

Annet

Jim S

unread,
May 18, 2020, 11:36:08 AM5/18/20
to web2py-users
Can you narrow it down?

Did it happen because you went to 2.19.1 or because you went to python 3.7?

-Jim

Annet

unread,
May 20, 2020, 6:08:01 AM5/20/20
to web2py-users
Hi Jim,

Thanks for your reply. I did what you advised me to do.
It's not a python 3.7 issue. I think it has something to do
with modules not being reloaded after they have been edited.

404 NOT FOUND

wasn't pointing in that direction.


Kind regards,

Annet

Jim S

unread,
May 20, 2020, 10:08:39 AM5/20/20
to web2py-users
Sounds like you found the issue.  Is that correct?  Was it due to modules not reloading?

-Jim
Reply all
Reply to author
Forward
0 new messages