[web2py] pyweb login

2020-03-04 Thread Maurice Waka
Hello I recently logged out of py4web app. Upon login again, I can't get in. Tried to login to all apps installed in vain. I downloaded another py4web and reinstalled it but still after registration I cant login. No error messages shown at all. It behaves as if its going to refresh but returns

[web2py] Re: About menu and current page

2020-03-04 Thread Alex Beskopilny
items_sub_menu= [] menu_item = [ (chr( 0x0001f534 ), False, URL('default', 'index'), items_sub_menu) ] save_orig_menu= response.menu response.menu = menu_item response.menu += save_orig_menu items_sub_menu.append( (T('home'), False, URL(_app, 'default', 'index') ),) items_sub_menu.append(

Re: [web2py] Re: LOAD in py4web

2020-03-04 Thread Carlos Costa
Sorry for the typo. I want to make a welcome template based on unpoly soon. Em sex., 28 de fev. de 2020 às 04:21, AGRogers escreveu: > https://unpoly.com/ > > On Fri, 28 Feb 2020 at 16:22, Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> never heard of unpolly.js and cannot find

Re: [web2py] Re: py4web posting to db

2020-03-04 Thread Lovedie JC
I just found out that the error was because I was having a null variable instead of an image in one of the lines. I still can't figure out how I can't have the Field(author, reference auth_user work. On Wed, Mar 4, 2020, 13:30 Maurice Waka wrote: > I've done some look up into the code, did some

Re: [web2py] Migration from sqlite to mysql - different field-order

2020-03-04 Thread Massimiliano
Try to recreate the table in sqlite too, because doesn't reflect you schema in define_table there is a "status" field not present in the definition and is "modified_on" ismissing. On Mon, Mar 2, 2020 at 8:19 PM Jörg Schneider wrote: > I tried to migrate from sqlite database to mysql/mariadb

[web2py] About menu and current page

2020-03-04 Thread Константин Комков
Hello, are somebody know how create link in menu empty if current page like link in menu, but not empty if page is not like in link. I do like that: response.menu.insert(0, (T('Editor'), False, '#', [ (T('Edit timetable'), False, '#' if (request.controller == 'default' and request.function

Re: [web2py] Re: py4web posting to db

2020-03-04 Thread Maurice Waka
I've done some look up into the code, did some changes and checked how it behaves. I noted, that using the same codesomething is not right with the author field. See the screen shot, the author is not posting but the rest of info is posting. I used the sqlite browser to check the messages.

[web2py] Re: Migration from sqlite to mysql - different field-order

2020-03-04 Thread Dave S
On Monday, March 2, 2020 at 11:19:10 AM UTC-8, Jörg Schneider wrote: > > I tried to migrate from sqlite database to mysql/mariadb but following the > instructions on > https://realpython.com/web2py-migrating-from-sqlite-to-mysql/ didn't work > for me, because of different database scheme