[web2py] Re: How to easily implement another CSS-Framework

2019-10-12 Thread Jay B
So, do you delete all views or just the layout view? Am Freitag, 11. Oktober 2019 19:01:07 UTC+2 schrieb Ruslan Gareev: > > Hi. Yes, you can delete files. For me it's normal and i use that way in my > projects. > > пятница, 11 октября 2019 г., 10:38:52 UTC+5 пользователь Jay B написал: >> >> He

[web2py] Re: How to easily implement another CSS-Framework

2019-10-12 Thread Massimo Di Pierro
I'd say you don't delete anything. You edit the views that need to be deleted to deal with a different css like you would for any html page On Saturday, 12 October 2019 06:34:23 UTC-7, Jay B wrote: > > So, do you delete all views or just the layout view? > > > Am Freitag, 11. Oktober 2019 19:01:

[web2py] Re: Error trying to go back to python 2 after testing python 3: TypeError: translate() takes exactly one argument (2 given)

2019-10-12 Thread Massimo Di Pierro
In python 2 type str means bytes and type unicode means unicode In python 3 class bytes means bytes and class str means unicode. This is my biggest problem with py3. They changed the meaning of a keyword to mean the opposite of what it did in py2. It makes things really hard to debug. On Frida

[web2py] Re: web2py survey dynamic forms with nested choices

2019-10-12 Thread Val K
# db_0.py # shortcut for `not null` field creation def req_field(*args, **kwargs): kwargs['notnull'] = True kwargs['required'] = True return Field(*args, **kwargs) # shortcut for reference field creation, `notnull` by default def FK(ref_table, **kwargs): if 'notnull' not in kwargs:

[web2py] Re: web2py survey dynamic forms with nested choices

2019-10-12 Thread Val K
If you want to create/edit survey using one page you have to use JavaScript (I don't see another non-horrible way). If you want only web2py/python implementation you have to organize your application to edit one entity per page/request, i.e. you can do something as follows: /surveys - returns g