[web2py] Why would new code be ignored and old code be executed?

2020-03-05 Thread Val K
To track module changes try this from gluon.custom_import import track_changes; track_changes(True) Also, your problem looks like you have more then one web2py server running -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] Re: Image upload error when using smarthumb

2020-03-05 Thread Andrew Rogers
I had trouble with the above code. Perhaps it was because i am using the uploadseparate =true parameter which means images get dropped into different folders. Or perhaps because i don't know what i am doing. Anyhow, the code below works for me. I had to manipulate the thumbnail filename a lot

[web2py] Why would new code be ignored and old code be executed?

2020-03-05 Thread Andrew Rogers
Everything has been good for days. But I have had this happen multiple times in the last few hours. I make changes to a module or controller file, save it, refresh the app but the old code still runs. I was working in both the IDE that comes with web2py and Visual Studio Code. I eventually foun

[web2py] Tip on declaring tables

2020-03-05 Thread António Ramos
Hello just wondering if declaring a variable for each table is of any concern in the context of many tables and many controllers and models. Regards EquipArea = db.define_table(app+'area', Field('nome', 'string', length=35, requires=IS_NOT_EMPTY()), Field('descricao','string',label ='Descri

[web2py] I think the language code for Malay in the default install of web2py is wrong

2020-03-05 Thread Andrew Rogers
Hi According to https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes and http://www.lingoes.net/en/translator/langcode.htm the language code for Malay is "ms". However in my new web2py install the file name for Malay is "my" (see attached). I understand "my" is for Myanmar... which is where

[web2py] Importing a CSV file from the Database form fails

2020-03-05 Thread Andrew Rogers
Hi I exported a CSV file using the Import/Export > 'export as csv file' button found in the Database interface of web2py. That worked fine. I then modified the exported file slightly - just changed the IDs. I then tried to import the modified file back into the table using the 'import' button