[web2py] Re: Arbitrary args/kwargs with service?

2017-01-20 Thread Brendan Barnwell
On Thursday, January 12, 2017 at 1:17:30 AM UTC-8, Anthony wrote: > > Feel free to open a Github issue, or better yet, send a pull request. > I created an issue here: https://github.com/web2py/web2py/issues/1561 I can probably do a pull request, but wanted to see if anyone knows of a reason

[web2py] Simple search query form, but display data on another page. I know this can't be this hard!

2017-01-20 Thread Reed Crowe
New to web2py. What I am doing should be very simple, but can not get it to work. I have a simple search form: def search_form(): results=None headers=['Jira Id', 'Customer Name', 'Device Type', 'Serial Number', 'Driver Version', 'Firmware Version', 'Sector Size', 'Free LEBs', 'Bytes

[web2py] How do I add labels and text field dynamically in web2py and saved them into database.

2017-01-20 Thread Corden Naraga
Scenario: I have a Terms option ranging from 1-6. If I select 3, 3 labels and 3 text fields will be generated to the form and can be saved to the database. eg: - Terms: 3 - Result: Label1 TextFieldDate1 TextFieldValue1 Label2 TextFieldDate2 TextFieldValue2 Label3 TextFieldDate3 TextFieldValue3

[web2py] static file

2017-01-20 Thread Diego Tostes
Hi, I have a html file that i i need to use with web2py, but this file access a unique css and js file. I try to add the files at the static withous success. I try to hardcoder the script and the css at the html file without success too. How can i do ? Rgds Tostes -- Resources: -

[web2py] DAL Query string for MariaDB

2017-01-20 Thread SR
What will be DAL Query string in db.py for MariaDB database in my Centos 7 machine? Is this right? db = DAL('mysql://root:password@localhost/db_name’ ) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Form field defaults the second time through

2017-01-20 Thread Val K
form.vars appear only after form.process() call (process() - filter/convert/format/validate request.vars to form.vars) you have variants : 1. *before *form creation - modify field.default 2. *before* form.process() - modify request.vars - request.vars.PostDate=... 3. pass your own set of

[web2py] Re: About session variable

2017-01-20 Thread Anthony
See http://stackoverflow.com/a/41769011/440323. On Friday, January 20, 2017 at 6:09:31 AM UTC-5, Bishal Saha wrote: > > I have stored a dictionary in the session variable and now I want to store > the values of the dictionary in my MySQL database in another server. Will I > be able to do it ?

[web2py] Re: Best way to validate individual conditional Smartgrid Forms

2017-01-20 Thread Val K
Yes! just keep in mind, that *before *call SQLFORM.grid/smartgrid/factory or just SQLFORM or even FORM ( learn two latter details) you can: 1. modify request.vars as you want: request.vars.fieldC='smthng not none' 2. modify fields properties: if request.vars.fieldA:

[web2py] Conditional validation

2017-01-20 Thread Andrea Fae'
Hello guys, I need to have a dependent field in a table. If the field "is_active" = True then I cannot insert in the field "date" nothing. If the field "is_atvie" = False then I can or not insert something in the field "date". How to do in the definition of table? Or it's better to use

Re: [web2py] Re: static file

2017-01-20 Thread António Ramos
open the browser console. You should see some kind of warning saying css and js not found.. in your html you are calling the js like this ?! you should place your js inside static/js then load it like this in the html {{response.files.append(URL('static','/js/tagit.js'))}} 2017-01-20 12:42

Re: [web2py] Re: static file

2017-01-20 Thread Diego Tostes
Hi guys,,... i did all the tips without succes... here is my files: html file - http://pastebin.com/XDVkv4T6 js file - http://pastebin.com/70HMVFNb css file - http://pastebin.com/yanwj6ve my html file is at /views/config/disease.html Rgds Tostes 2017-01-19 20:26 GMT-02:00 António

[web2py] About session variable

2017-01-20 Thread Bishal Saha
I have stored a dictionary in the session variable and now I want to store the values of the dictionary in my MySQL database in another server. Will I be able to do it ? And if yes dn how ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Form field defaults the second time through

2017-01-20 Thread Áureo Dias Neto
Change if form.process().accepted: form.vars.PostDate = request.vars.PostDate response.flash = T("Thank you!") to if form.process(keepvalues = True).accepted: response.flash = T("Thank you!") 2017-01-20 4:02 GMT-02:00 Armando Hernandez <