[web2py] Re: py4web sample errors

2020-01-01 Thread JSalvat
" class=""> class="">B type="text" id="none_b" name="b" class=""/> class=""> value="Submit"/> value="none"/> > > BULMA STYLE > > >>> from py4web.utils.form import FormStyleB

[web2py] Re: py4web sample errors

2019-12-30 Thread JSalvat
Some testing done, I don't know the side efects, but with this changes to py4web/utils/*form.py* things work munch better (as per date/time/password widgets): elif field.type == "text": *# *control = TEXTAREA(value or "", _id=input_id, _name=field.name)<--- MODIFI

[web2py] Re: py4web sample errors

2019-12-28 Thread JSalvat
in an automatic manner. > working on it. > > On Tuesday, 24 December 2019 14:21:28 UTC+1, JSalvat wrote: >> >> Very simple Form and Grid sample to show some errors: >> >> In Grid: decimal field does not show / allow input. >> >> In Form: date and time

[web2py] Re: warning: new pydal

2019-12-27 Thread JSalvat
Hi Massimo, still getting errors: c:\wwwroot\py4web>python -m pip install -r requirements.txt --user Successfully installed pydal-20191227.1 c:\wwwroot\py4web>python ./py4web-start.py apps . Is still experimental... Dashboard is at: http://127.0.0.1:8000/_dashboard [ ] loading e

[web2py] Re: py4web and celery

2019-12-26 Thread JSalvat
May need to add *celery *to requirements ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the

[web2py] Re: py4web and celery

2019-12-26 Thread JSalvat
db, Field File "apps\_scaffold\common.py", line 102, in from celery import Celery ModuleNotFoundError: No module named 'celery' Bottle v0.12.18 server starting up (using WSGIRefServer())... Listening on http://127.0.0.1:8000/ Hit Ctrl-C to quit. El jueves, 26 de diciemb

[web2py] Re: py4web and celery

2019-12-26 Thread JSalvat
Just installed from source but does not start: unzipped source to c:\wwwroot\py4web c:\wwwroot\py4web>python -m pip install -r requirements.txt --user c:\wwwroot\py4web>python ./py4web-start.py apps . Is still experimental... Traceback (most recent call last): File "./py4web-start.py", lin

[web2py] py4web sample errors

2019-12-24 Thread JSalvat
Very simple Form and Grid sample to show some errors: In Grid: decimal field does not show / allow input. In Form: date and time widgets not working Mainly copied from examples, Showing what was modified: models.py import os from py4web import DAL, Field from pydal.validators import * # defi

[web2py] Merry py4web

2019-12-23 Thread JSalvat
Wish Merry Christmas and great New Year to Massimo and the rest of the contributors that deploy py4web! Looks like py4web is close to be a stable framework on which many of us will count for our future new projects. At this stage, I suggest to open a separate new py4web-users group to start 20

[web2py] Re: Anthony was right... web3py has a big naming conflict

2019-07-21 Thread JSalvat
What about "webtopy" -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-us

[web2py] Re: please help testing web3py

2019-07-08 Thread JSalvat
Not working for me on windows10 c:\wwwroot\web3py>python web3py-start apps ___ __ __ | / / / / __ |/___ \/ __ \ \/ / | | / / /_ / /_/ /___/ / /_/ /\ / | | /| / / __/ / __ //__ / / / / | |/ |/ / /___/ /_/ /___/ / / / / |___/|_/_/_/__

[web2py] 2.18.5 admin app search error

2019-04-29 Thread JSalvat
Hi all, I'm getting An error occurred, please reload the page when using the search feature in edit application. It used to work on previus releases! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.g

[web2py] groupby count/sum on grid

2018-08-14 Thread JSalvat
Hi, How can this be done using SQLFORM.grid ? def groupgrid(): cant = db.emitida.id.count() suma = db.emitida.total.sum() rows = db(db.emitida.numero.startswith('18')).select(db.emitida.empresa, cant, suma, orderby=db.emitida.empresa, groupby=db.emitida.empresa) head = {'emit

[web2py] Re: custom maxlengths on create/edit grid

2018-07-04 Thread JSalvat
ined or later: > > Field('cantidad', widget=lambda f, v: SQLFORM.widgets.string.widget(f, v, > _class='col-sm-3', _maxlength=8)) > > Anthony > > On Wednesday, July 4, 2018 at 6:31:50 AM UTC-4, JSalvat wrote: >> >> Hi, >> >> How to c

[web2py] Re: cannot make ondelete='SET NULL' to work

2018-07-04 Thread JSalvat
0:12:58 AM UTC-4, JSalvat wrote: >> >> Hi Pierre, how did you solve this ? >> >> ondelete='SET NULL' on sqlite is not working, it deletes all records >> on the child table associated with the deleted record on the father table >> instead of seting

[web2py] Re: custom maxlengths on create/edit grid

2018-07-04 Thread JSalvat
_class='col-sm-3', _maxlength=8)) > > Anthony > > On Wednesday, July 4, 2018 at 6:31:50 AM UTC-4, JSalvat wrote: >> >> Hi, >> >> How to custom an input field width class='col-sm-x' in create/edit >> forms that come from SQLFORM.grid

[web2py] Re: cannot make ondelete='SET NULL' to work

2018-07-04 Thread JSalvat
Hi Pierre, how did you solve this ? ondelete='SET NULL' on sqlite is not working, it deletes all records on the child table associated with the deleted record on the father table instead of seting empty on the refered field. Thanks for your help. El jueves, 28 de enero de 2016, 13:13:50 (

[web2py] Re: custom maxlengths on create/edit grid

2018-07-04 Thread JSalvat
Yes, but the maxtextlength attribute works only on the grid, and I think is not accesible from the generic create/edit form created by the grid. How the maxtextlength attribute be used in the form? El miércoles, 4 de julio de 2018, 12:58:12 (UTC+2), 黄祥 escribió: > > think there is maxtextlength

[web2py] custom maxlengths on create/edit grid

2018-07-04 Thread JSalvat
Hi, How to custom an input field width class='col-sm-x' in create/edit forms that come from SQLFORM.grid On SQLFORM can be done this way: form = SQLFORM(db.movimiento) if form.element('#movimiento_cantidad'): wclass = form.element('#movimiento_cantidad')['_class'] form.element('#mo

[web2py] Re: self-reference partner autoupdate

2018-04-21 Thread JSalvat
son cannot select himself as his partnet - A person can only select a partner that is single db((db.person.partner == None) & (db.person.id != *current.id*)).select() Is this posible? El viernes, 20 de abril de 2018, 21:16:59 (UTC+2), Anthony escribió: > > On Friday, April 20, 2018 at 2:32:45 PM UTC

[web2py] self-reference parter autoupdate

2018-04-20 Thread JSalvat
Hello, Why on update/insert a record with a non-empty partner, the partner does not get updated as well with the backwards reference? db.define_table('person', Field('name', requires=IS_NOT_EMPTY()), Field('partner', 'reference person', requires=IS_EMPTY_OR(IS_IN