Re: [web2py] Re: web3py -> py4web

2019-08-12 Thread En Ware
Is there an IRC channel for py4web yet ? or an official group ? On Tuesday, July 30, 2019 at 1:38:05 AM UTC-5, Massimo Di Pierro wrote: > > to be clear... most of the docs is backported by web2py + explanation of > sessions and @action decorator. > Most of the new features are still

[web2py] Re: newbie question Can't use versioning in web2py

2019-08-12 Thread Dave S
On Sunday, August 11, 2019 at 10:34:32 AM UTC-7, Jirawat Kusolpredee wrote: > > Access admin page -> edit -> versioning -> throw exception ??? versioning > just doesn't work I never messing up the core ? What happened here ? > Source control? Use an external source control, like Tortoise HG

[web2py] Re: How can I insert image in HTML from database?

2019-08-12 Thread Val K
100 images per page? What do your images look like? Are these icons? What size? To prevent db scratching there is Cache-Control -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: How can I insert image in HTML from database?

2019-08-12 Thread Константин Комков
Yes, I want get from database many images (maybe not all, but 100 or 50 pictures). In your case for creating 1 page I need to do 101 or 51 query to database. I want have one query and transfer row.recipes.IMAGE as variable in img function. Somthing like that (but it's not work): def index():

[web2py] Re: What happened to DAL(None)?

2019-08-12 Thread Leonel Câmara
DAL(None) still works, you do need to do a bit of setting up if you want to use it for forms, namely set the DAL default validators. See how SQLFORM.factory does it: https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L2053 -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: How can I insert image in HTML from database?

2019-08-12 Thread Val K
I don’t quite understand what do you mean 'in cycle', do you want to include all images in one html page? to make img() more useful you can do this (for example) def img(): id =request.args(0) if id: row = db(db.recipes.id == id).select(db.recipes.IMAGE).first()

[web2py] No being able to access all the details from a for loop in the view

2019-08-12 Thread mostwanted
I am working on a house rental application, i want users to easily notify one another of places they know via whatsapp, i have written the functionality and this is how it should work: Next to the rental amount is a whatsapp sharing link that when the user clicks it carries forward all the

[web2py] Re: managing web2py logs under uwsgi

2019-08-12 Thread Dave S
On Tuesday, July 30, 2019 at 7:08:43 PM UTC-7, Dave S wrote: > > > > 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

[web2py] big data "out of memory" error

2019-08-12 Thread Alex Glaros
Not sure if I'm qualified to give tips here, but I had a one-time job that timed out with out-of-memory error. To fix that, I cloned a copy of my site (admin-console, manage, pack all), keeping the same database, then in db.py replaced every instance of 'reference my_big_tables' with 'integer'

[web2py] gloun.tool.Expose cleans my session

2019-08-12 Thread Martin Mosbeck
Hi everyone, I use gloun.tools.Expose to expose a folder, the base directory is built with variables, that are saved in the session. But, gloun.tools.Expose cleans the session at its init function. Usecase: User clicks a link with GET variables, this is a call to a function in a controller. The

Re: [web2py] Re: web3py -> py4web

2019-08-12 Thread Massimo Di Pierro
Not yet. Will create one eventually but want to finish a couple of features with support with this community On Monday, 12 August 2019 07:38:46 UTC-7, En Ware wrote: > > Is there an IRC channel for py4web yet ? or an official group ? > > On Tuesday, July 30, 2019 at 1:38:05 AM UTC-5, Massimo Di