[web2py] Re: customizing menu items when MENU helper is used

2019-07-30 Thread Dave S
On Tuesday, July 30, 2019 at 3:09:24 PM UTC-7, Vlad wrote: > > what would be the best way to specify a background color (different for > each menu item, depending on some database-driven data) when I build the > menu with menu.append(...) in menu.py? > > I would love to have something like thi

[web2py] Re: web3py -> py4web

2019-07-30 Thread Massimo Di Pierro
you have to run python3 setup.py install On Tuesday, 30 July 2019 10:59:36 UTC-7, En Ware wrote: > > when using py4web source , py4web-start is missing. from pip py4web-start > exists. > > > On Wednesday, July 24, 2019 at 12:40:27 AM UTC-5, Massimo Di Pierro wrote: >> >> OK. I know. I am not

[web2py] Re: managing web2py logs under uwsgi

2019-07-30 Thread Dave S
On Monday, July 29, 2019 at 3:06:54 PM UTC-7, Dave S wrote: > > > > On Tuesday, April 23, 2019 at 8:00:44 PM UTC-7, Dave S wrote: >> >> I run web2py under nginx and uwsgi. The latter runs in master mode >> (rather than emperor mode), and I think it is what drives my question: >> >> *How do I co

[web2py] How to connect to mongoDB: I'm getting errors when connecting

2019-07-30 Thread Maurice Waka
I was trying out this example, not sure whether its outdated, but got this errors: le "/usr/local/lib/python3.6/dist-packages/pymongo/helpers.py", line 155, in _check_comman

[web2py] customizing menu items when MENU helper is used

2019-07-30 Thread Vlad
what would be the best way to specify a background color (different for each menu item, depending on some database-driven data) when I build the menu with menu.append(...) in menu.py? I would love to have something like this: menu.append([description, False, URL('catalog','regimen',args=[id]

[web2py] Re: long() argument must be a string or a number, not 'list'

2019-07-30 Thread Dave S
On Tuesday, July 30, 2019 at 11:12:26 AM UTC-7, Kimus wrote: > > bem tenho o seguinte problema dessa vez, estou tentando criar a primeira > tabela com relacionamento, só que não to conseguindo inserir nd dos dados > na tabela pq ele fica dando esse erro "long() argument must be a string or > a

[web2py] Re: Como editar um decoratordo web2py

2019-07-30 Thread Dave S
On Monday, July 29, 2019 at 11:29:09 PM UTC-7, Kimus wrote: > > Ola estou com um problema , estou trabalhando com um template usando > bootstrap (peguei na net ) diferente do web2py logo tenho que fazer td na > mão e até msm inventar as coisas pra fazer acontecer, e agora estou com um > proble

Re: [web2py] Re: How to link images (under static/images) from static folder static html

2019-07-30 Thread Jon Subscripted
Thanks Dave, I'll test using the logo (which actually works) as you suggested. Regards, Jon. Libre de virus. www.avast.com

[web2py] Re: Adding custom attributes to fields and tables

2019-07-30 Thread 'jim kaubisch' via web2py-users
Similar question, but maybe simpler? I have a table name which, for various reasons, isn't very human reader friendly (crowner). I'd like to add a table attribute (e.g. print_name = 'Copyright Owners') to be used for table display instead of the table name itself Does that mean db.table._extra

[web2py] Re: web3py -> py4web

2019-07-30 Thread En Ware
in the documentation for http://py4web.com/_documentation/static/index.html#chapter-02. datetime.datime.now() (should that be datetime.datetime.now() ? On Tuesday, July 30, 2019 at 12:59:36 PM UTC-5, En Ware wrote: > > when using py4web source , py4web-start is missing. from pip py4web-start >

[web2py] long() argument must be a string or a number, not 'list'

2019-07-30 Thread Kimus
bem tenho o seguinte problema dessa vez, estou tentando criar a primeira tabela com relacionamento, só que não to conseguindo inserir nd dos dados na tabela pq ele fica dando esse erro "long() argument must be a string or a number, not 'list' meu controller @auth.requires_login() def CadastroP

[web2py] Re: web3py -> py4web

2019-07-30 Thread En Ware
when using py4web source , py4web-start is missing. from pip py4web-start exists. On Wednesday, July 24, 2019 at 12:40:27 AM UTC-5, Massimo Di Pierro wrote: > > OK. I know. I am not good with names. > But there are lots of requirements to be fulfilled. > py4web.com was available and the pypi p

Re: [web2py] Re: web3py -> py4web

2019-07-30 Thread villas
On Tuesday, 30 July 2019 07:35:08 UTC+1, Massimo Di Pierro wrote: > > I did not know about this. It has a cost. I'd rather not pay for it. > 1. Just so you know, from GitBook Pricing page: > GitBook is free for open-source & non-profit teams > 2. Markdown ins

[web2py] Questions about translations and pluralization

2019-07-30 Thread Константин Комков
1. If I want use plural for book without numbers what I need to do? I want to write word - books. 2. If I write T("You have %s %%{book}", symbols=10) I get: You have 10 books If I want to change language, like T.force('ru') I get: 'You have 10 book'. I want to get: 'У меня есть 10 книг' What I ne

[web2py] Re: Como editar um decoratordo web2py

2019-07-30 Thread Константин Комков
As variant, you can write decorator by yourself, like: def yourDecorator(fun): def decorated(): if (auth.user_id is not None): redirect(URL('yourController','yourFunction')) else: return fun() return decorated @yourDecorator def yourFunction(): --