[web2py] Re: py4web: how to import Template and change delimiters

2019-08-06 Thread Alex Beskopilny
it's port lte-2.4.15 to py4web https://github.com/ali96343/lteadmin-py4web четверг, 1 августа 2019 г., 10:48:02 UTC+3 пользователь Alex Beskopilny написал: > > Hi! > I put lte-2.4.15 to py4web and lte works with controllers.py : > > from py4web import action, request, abort, redirect, URL >

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

2019-08-06 Thread Dave S
On Monday, August 5, 2019 at 11:28:43 PM UTC-7, Константин Комков wrote: > > *Val K*, it is my table.py file: > db.define_table( > 'recipes', > Field('NAME',length=512), > Field('IMAGE','upload'), > migrate=False > ) > It's code in my default.py file: > row =

[web2py] Re: Como mostrar a imagem no HTML com web2py

2019-08-06 Thread Dave S
On Tuesday, August 6, 2019 at 8:21:57 AM UTC-7, Kimus wrote: > > olha eu aqui dnv :) > > Estou com um problema eu insiro uma imagem no banco mas na hr de mostrar > no HTML não consigo de jeito nem um, eu nãoi to usando o template do > web2py então td pra mim é mais dificil alguem teria

[web2py] why Web2py doesn't compile all

2019-08-06 Thread Maurice Waka
I'm using web2py in python3.6. When running the app on the local machine, everything is fine. But when I compile and run it again, I get errors that a module does not exist. The module is not found in the compiled folder. How do I solve this?? Regards -- Resources: - http://web2py.com -

[web2py] Como mostrar a imagem no HTML com web2py

2019-08-06 Thread Kimus
olha eu aqui dnv :) Estou com um problema eu insiro uma imagem no banco mas na hr de mostrar no HTML não consigo de jeito nem um, eu nãoi to usando o template do web2py então td pra mim é mais dificil alguem teria algum jeito de fazer OBS : eu coloquei um campo extra_field no auth_user

[web2py] IS_IN_SET or write in

2019-08-06 Thread Yebach
Hello Is it possible to create a validator for form field that is a combination of IS_IN_SET and a user write in? The field is of type string. db.nalogi.n_company.requires = IS_IN_SET(['Canon', 'HP', 'Xerox', 'Lexmark', 'Brother', 'Konica/Minolta', 'Kyocera', 'Other'], zero=('Select')) Thank

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

2019-08-06 Thread Константин Комков
*Val K*, it is my table.py file: db.define_table( 'recipes', Field('NAME',length=512), Field('IMAGE','upload'), migrate=False ) It's code in my default.py file: row = db().select(db.recipes.IMAGE).first() image = str(dir(row)) >>> ['IMAGE', '__bool__', '__call__', '__class__',