Questions tagged as 'web2py'

0
answers

Reload form.custom.inpval after save form

I'm developing a web2py system and I have the following question: I made a custom form that has a field that sends a preview image. The code looks like this: {{=data['form'].custom.begin}} {{dsp = data['form'].custom.dspval}} {{inp...
asked by 06.06.2014 / 05:45
1
answer

How to construct a query with Web2py quantifying the difference between days

I'm using Web2py (Python), doing the query using DAL I wonder if it's possible to get the difference in days, something close to that Example #!/usr/bin/env python # -*- coding: utf-8 -*- resultado = db( (db.base_suporte.dt_...
asked by 21.02.2015 / 03:07
0
answers

Web2py - Auth - Authentication with MongoDB

I'm trying to use MongoDB with Web2py, and for that I started with authentication, but this one appearing errors that I do not understand. In a relational database, Web2py creates the authentication tables, in MongoDB the collections are not...
asked by 19.06.2015 / 15:56
1
answer

How do I get an argument in Web2Py

I have the following problem, I am producing an application in W2P, with a CRUD, in the part of deleting an item I am wanting to get the id through a form and that id remove the item from the DB. I'm trying through this code def off ():...
asked by 13.10.2016 / 23:41
0
answers

I can have multilevel menus (+3) on Web2py [closed]

Friends, I'm trying to create a menu in a web2py application with a structure similar to: Menu 0 Menu 1 Item A Item B Menu 2 Item C Is it possible? I tried to start from the application code welcome, but it did not work...
asked by 05.10.2015 / 22:09
2
answers

using the 'any' function in python

I have 2 lists with multiple landline / cellular numbers. Example: Lista 1: ['0169924233316','01687665544','01978553322']<br> Lista 2:: ['0169924233316', '01788226541']<br> Within a for, I compare the 2 lists to find if there i...
asked by 16.10.2017 / 13:16
1
answer

Menu creation using Web2Py?

I'm having trouble creating menu on my website using the default Web2py template, any tips and examples? I tried following example link Just does not appear on the main page.     
asked by 07.02.2014 / 16:39
1
answer

field validation with javascript?

Good evening guys, I'd like to know how to do the field validations by javascript for the name, email, and phone fields. for the fields name, cpf or cnpj and phone I was able to not allow numbers for the name and letters for the phone number how...
asked by 17.10.2018 / 01:35
0
answers

Validation in form with the database

Good afternoon! I used this code for a form that is in html , however in this case, I'm using a framework called web2py, which generates form through the db file. I need to validate the fields, but the html that web2py generates whe...
asked by 01.10.2018 / 21:00
1
answer

Is it possible to migrate a web2py system to django while maintaining the same database?

Is it possible to migrate a web system in production made in web2py to a redone in django while maintaining the same database? Home I'm having a system done in web2py (in production) and need to redo it in django , keeping the same database...
asked by 10.04.2018 / 19:30