[web2py] Re: update crud form

2016-03-30 Thread 'Laer Cius' via web2py-users
Ok thanks ! As a matter of fact I have indeed an unique option set for the problematic values. But I understood it as to prevent 2 same values for 2 different users : as for an email for example. But here I try to update the profile of the same user so obviously he should keep the same email

[web2py] Re: Why is id field not hiding here at all in the form displaying?

2016-03-30 Thread 'DenesL' via web2py-users
You don't need that script to hide the id, just set the showid param in SQLFORM to False. See the signature of the SQLFORM constructor: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM Denes On Wednesday, March 30, 2016 at 4:00:13 PM UTC-4, Jacob Devin wrote: > > def

[web2py] Re: update crud form

2016-03-30 Thread 'Laer Cius' via web2py-users
Le mercredi 30 mars 2016 21:52:02 UTC+2, Laer Cius a écrit : > > Hi, > > I would like to be sure of something : I want to update the database > through a crud.update() form but when I do so, I have some "value already > exists in database" errors. And I couldnt find a way to say to web2py to

Re: [web2py] update crud form

2016-03-30 Thread Richard Vézina
You should show us some code... The issue you have seems to be cause by a validator that make sure you don't duplicate value entry... Don't have twice the same value for a given field... On Wed, Mar 30, 2016 at 3:52 PM, 'Laer Cius' via web2py-users < web2py@googlegroups.com> wrote: > Hi, > > I

[web2py] Why is id field not hiding here at all in the form displaying?

2016-03-30 Thread Jacob Devin
def screen(): dpform=SQLFORM(db.info,row.id,fields=['dp']).process() return locals() def delformforscreen(): row=db(db.info.info_id==auth.user_id).select().first() form=SQLFORM(db.info,row.id,fields=['first_name','last_name','dob','sex','hometown', 'highschool', 'university',

[web2py] update crud form

2016-03-30 Thread 'Laer Cius' via web2py-users
Hi, I would like to be sure of something : I want to update the database through a crud.update() form but when I do so, I have some "value already exists in database" errors. And I couldnt find a way to say to web2py to update only if changed or absent.. Which I thought the update form was

[web2py] Re: Date picker format

2016-03-30 Thread Ron Chatterjee
Dr. Pierro, Couldn't agree more. On Wednesday, March 30, 2016 at 11:43:22 AM UTC-4, Jeff Riley wrote: > > Mr. Pierro, > > Web2py has been a joy to work with and I am really looking forward to > Web3py. All my best. > > On Tuesday, March 29, 2016 at 4:27:11 PM UTC-5, Massimo Di Pierro wrote:

[web2py] checkboxes framework7.io and validate

2016-03-30 Thread 'DenesL' via web2py-users
Hi while creating some pages with framework7 I noticed that the checkbox inputs were not validating. On a closer look I noticed that they where being submitted as checkbox_name[] instead of just checkbox_name. I tried to fix the issue by replacing the offending vars in request.vars with

[web2py] Create links in smartgrid for the child

2016-03-30 Thread Alessio Varalta
Hi I have a smartgrid with one child and i want a to add links to my child is possibile for example: I have entity dashboard with a child label_dashboard So i create the smartgrid grid = SQLFORM.smartgrid(db.dashboard,linked_tables=['label_dashboard']) Now I want to add links to

[web2py] Re: Date picker format

2016-03-30 Thread Jeff Riley
Mr. Pierro, Web2py has been a joy to work with and I am really looking forward to Web3py. All my best. On Tuesday, March 29, 2016 at 4:27:11 PM UTC-5, Massimo Di Pierro wrote: > > LOL. I think it is not easy enough in fact. In web3py I think all date > conversions should be done client side

[web2py] Re: advice: multiple tables on a single form

2016-03-30 Thread billmackalister
On that note, I always wonder if two tables can be placed in one form using formfactory, but horizontally, not vertically. Is any link anyone can share? On Wednesday, March 30, 2016 at 9:50:20 AM UTC-4, lucas wrote: > > yes, that will work quite well. not perfectly because i do have one table

[web2py] Re: rediect after login when use decorators "@auth.requires_login"

2016-03-30 Thread killzane
Thanks about explain it. this is code in my controller "default.py" @auth.required_login() def foo(): return 'this requires login' I use these code for visitor auto redirect to login page. and web2py will auto add *_next* variable then I can't use *auth.settings.login_next *to redirect

[web2py] Re: advice: multiple tables on a single form

2016-03-30 Thread lucas
yes, that will work quite well. not perfectly because i do have one table that requires two parallel entries, but this certainly does give an excellent jump start. thanx anthony, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: rediect after login when use decorators "@auth.requires_login"

2016-03-30 Thread Anthony
On Wednesday, March 30, 2016 at 4:06:41 AM UTC-4, killzane wrote: > > I use *@auth.requires_login()* in my controller > and when I visit that page, I will auto go to login page and have the > "_next URL parameter" > > I want to use > auth.settings.login_next = URL('default', 'router') > >

[web2py] Re: advice: multiple tables on a single form

2016-03-30 Thread Anthony
Have you tried this method: http://web2py.com/books/default/chapter/29/07/forms-and-validators#One-form-for-multiple-tables Anthony On Wednesday, March 30, 2016 at 8:03:24 AM UTC-4, lucas wrote: > > hello one and all, > > so i would like to ask advice. i know that you can have multiple

[web2py] advice: multiple tables on a single form

2016-03-30 Thread lucas
hello one and all, so i would like to ask advice. i know that you can have multiple SQLFORMS on a single view and with web2py serialization it works fine, for each separate form has a separate submit button. but what if you wanted to merge certain fields from four different tables into a

[web2py] OFF Topic - Cycle.js

2016-03-30 Thread António Ramos
Can i have some opinions on this new thing? http://cycle.js.org/ thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

[web2py] Re: I want to make a query this way but unfortunately this ain't working. How to fix?

2016-03-30 Thread Leonel Câmara
This is probably what you want rows=db((db.info.last_name.like('%' + request.args(0) + ' %', case_sensitive=False)) | (db.info.last_name.like('%' + request.args(0) + '%', case_sensitive=False))).select() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: web2py 2.14.2

2016-03-30 Thread Sukrut Joshi
thanku On Wed, Mar 30, 2016 at 3:58 PM, Gary Cowell wrote: > Hello > > Running 2.14.3 - upgraded from 2.12.(something) > > Seems all the btn-default are now almost invisible? > > E.g. from the log in page: > >

[web2py] Re: web2py 2.14.2

2016-03-30 Thread Gary Cowell
Hello Running 2.14.3 - upgraded from 2.12.(something) Seems all the btn-default are now almost invisible? E.g. from the log in page: Sign Up Gives me now. I upgraded web2py, then copied the static/js and static/css from welcome I notice bootstrap version changed from 3.3.4 to 3.3.5.

[web2py] Re: How did you implement chat system in your app? How's my idea?

2016-03-30 Thread Leonel Câmara
You could use server sent events if you don't have many users. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are

[web2py] rediect after login when use decorators "@auth.requires_login"

2016-03-30 Thread killzane
I use *@auth.requires_login()* in my controller and when I visit that page, I will auto go to login page and have the "_next URL parameter" I want to use auth.settings.login_next = URL('default', 'router') according to this page