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
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
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
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
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',
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
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:
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
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
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
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
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
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)
-
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')
>
>
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
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
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
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)
-
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:
>
>
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.
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
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
22 matches
Mail list logo