Re: [web2py] Re: LOAD in py4web

2022-02-17 Thread cdbaron
an anyone else address the "A" and "URL" questions? > > -Jim > > > On Tuesday, February 15, 2022 at 3:47:24 PM UTC-6 cdbaron wrote: > >> I have several projects with web2py and I have already started to study >> the possibility of migrating to py4we

[web2py] Re: wev2py 2.22.1 is out

2022-02-17 Thread cdbaron
2 à(s) 21:18:48 UTC, Leonel Câmara > escreveu: > >> @cdbaron this was a sneaky one, but I've found it. I actually think this >> one is a very old bug from 2016 and I think it might be affecting my >> applications as well. >> >> >> A segunda-fei

Re: [web2py] Re: LOAD in py4web

2022-02-15 Thread cdbaron
I have several projects with web2py and I have already started to study the possibility of migrating to py4web. They are all rendered on the server side and for now I want to keep it that way. I see some challenges that make me a little scared: *LOAD * A Helper: (many times with the callback

[web2py] Re: wev2py 2.22.1 is out

2022-02-14 Thread cdbaron
alist app to reproduce it would save me some time. > > Massimo > > > > On Wednesday, 9 February 2022 at 07:21:40 UTC-8 cdbaron wrote: > >> Now from github I can successfully download web2py. >> >> But I have a problem with a form with a field of type uplo

[web2py] Re: wev2py 2.22.1 is out

2022-02-09 Thread cdbaron
Now from github I can successfully download web2py. But I have a problem with a form with a field of type upload. With web2py 2.21.1 it works fine, but with version 2.22.1 it doesn't work. I have tested with python 3.7 and 3.8 I already posted a query a few days ago, but I haven't had any

[web2py] Re: wev2py 2.22.1 is out

2022-02-01 Thread cdbaron
Hello, I have downloaded this latest version and the web2py/gluon/packages/dal directory is empty. El martes, 1 de febrero de 2022 a las 4:59:33 UTC+1, Massimo Di Pierro escribió: > Hello Everybody, > > web2py 2.22.1 is out. > > Includes a few bug fixes and some changes including: > -

[web2py] Re: Edit crontab from the admin interface

2022-01-20 Thread cdbaron
Something like this should work... http://127.0.0.1:8000/admin/edit/app/cron/crontab El jueves, 20 de enero de 2022 a las 1:39:23 UTC+1, Lee P escribió: > I need to edit my crontab file located in the /app/cron folder. The > problem is that I only have access to the admin interface of my

[web2py] Fields of type 'upload' a bit broken in Master

2022-01-20 Thread cdbaron
Hello, I recently updated an app: Since web2py Version 2.19.1-stable+timestamp.2020.03.21.13.06.49 and Python 3.6.8 A web2py latest version in Master at the end of 2021 (Version 2.21.2-stable+timestamp.2021.10.15.07.44.23) and python 3.8 Everything seemed to work perfectly. Now I have noticed

[web2py] Re: SQLFORM.grid - Readable True, but hide the column in table

2021-07-17 Thread cdbaron
You should not use db.ftp_simplivity_log_db.log_path.readable = False You have to use db.ftp_simplivity_log_db.log_path.listable = False If you want to cancel the search for any field in the table you can use db.table.any_fielfd.searchable = Flase El viernes, 16 de julio de 2021 a las

[web2py] Re: can i delete sql.log?

2021-02-10 Thread cdbaron
Sql.log is an informative file, if you delete it, it will be created again. It does not affect the operation of the applications. In this file, SQL queries of the DB migrations are stored. El martes, 9 de febrero de 2021 a las 23:34:06 UTC+1, Ramos escribió: > can i delete sql.log? > --

[web2py] user signature is not working well. Not Authorized

2021-02-06 Thread cdbaron
Hi there, When a signed url has a list of int values it is not working well and I get "Not Authorized" Here is an example, link1 does not work, link2 works. @auth.requires_login() def index(): link1 = A( 'link1 Not Authorized :-(', _href=URL(f='hello1', vars=dict(ids=[8,

[web2py] Re: Using min(), max(), count() with groupby in SQLFORM.grid

2020-12-24 Thread cdbaron
It's a bit of an ugly trick, but I've ever done something like this before. created_on_min = db.my_table.created_on.min().with_alias(created_on_min) created_on_max = db.my_table.created_on.max().with_alias(created_on_max) created_on_min.tablename = 'my_table' created_on_max.tablename =

[web2py] SQLFORM.grid in ajax function with signed urls

2019-11-15 Thread cdbaron
Hello I have a component that is loaded by ajax and this component has an SQLFORM.grid. This component has a variable in the url. For security reasons I want the ajax component to have the url signed. The problem is that the grid pagination links generate a wrong signed url. wrong signed url:

[web2py] auth.signature on delete restrict

2019-11-05 Thread cdbaron
Hi, I'm trying to use auth.signature with on delete restrict in the foreign keys `created_by` and` modified_by` but it doesn't seem to work. I tried with auth.settings.ondelete = 'RESTRICT' but it doesn't work. auth.signature is defined when instantiating the Auth class. How can I change the

[web2py] Re: SQLFORM.grid search with fields readable = False

2019-11-04 Thread cdbaron
It works, but the solution is db.table.field.listable = False to hide fields in the gridand search, db.table.field.readable = False to hide fields and not search and db.table.field.searchable = False to show Fields in grid and not search. El viernes, 1 de noviembre de 2019, 16:52:04 (UTC+1),

[web2py] Re: SQLFORM.grid search with fields readable = False

2019-10-30 Thread cdbaron
> > This is my code > def federados(): # Tablas de la BBDD t_licencias = db.t_licencias t_licencias_agrupaciones = db.t_licencias_agrupaciones t_federados = db.t_federados # Campos del grid fields = [ t_federados.id, t_federados.f_foto,

[web2py] SQLFORM.grid search with fields readable = False

2019-10-26 Thread cdbaron
Hello, I have an SQLFROM.grid in which I render each of the lines with a special format using only the id field of the table (id.represent). Attached image with the result. Everything works perfect except when searching records. The issue is that hidden fields (readable = False) are excluded