[web2py] Re: How to cause radio buttons to auto deselect?

2017-01-11 Thread Sankhajit Das
i have used @auth.requires_login() before def index(): which works perfectly,i.e.,first you have to login to give some input.. But i want to save in my database how many people and their information in a database.. How may i do it? Pls help asap -- Resources: - http://web2py.com -

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

2017-01-11 Thread Brendan Barnwell
On Thursday, January 5, 2017 at 7:04:56 AM UTC-8, Anthony wrote: > > But from the other side of things, I guess the question is, if we can do >> that, is there ever any reason to use the "service" mechanism at all? Or >> can request.restful do everything service can do, and more? >> > > I

[web2py] Re: Python Social Auth - example site working with downlevel version of PSA

2017-01-11 Thread Donald McClymont
Just an update that in line with the re-organization and new site for python social auth (https://github.com/python-social-auth) I have made a new repository https://github.com/DonaldMcC/social-app-web2py with updated import statements etc. The plug-in has been tested with google, facebook,

[web2py] Re: How can i create radio buttons in web2py? And how can i link it with database?

2017-01-11 Thread Carlos Zenteno
Please read the book sections that Dave S pointed you towards so you can create your radio buttons. We do not give you fish in this forum, we teach you how to fish and those book pages will teach you how to create radio buttons. -- Resources: - http://web2py.com -

[web2py] Re: Invalid SQLFORM submit generates ticket instead of redirecting back to form with errors

2017-01-11 Thread Anthony
On Wednesday, January 11, 2017 at 1:16:02 PM UTC-5, Rahul Priyadarsi wrote: > > Thanks for the reply @Antony. > When I posted this question on this Forum, i did not see it appear so I > thought something must be wrong with google groups itself. Hence I posted > on stackoverflow. > No problem.

Re: [web2py] Self-hosted web analytics solutions for Web2py

2017-01-11 Thread Richard Vézina
I think you can have it with : response.session_id So you will have to add a column to the model and set default=response.session_id... Richard On Tue, Jan 10, 2017 at 7:23 PM, Joe wrote: > I worked it out. It's great! Working fine! Thanks again. "BTW: what is the >

[web2py] Re: Store value in input field in a table

2017-01-11 Thread Leonel Câmara
Can we see the entire controller and view where you're trying this? -- 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

[web2py] Re: Invalid SQLFORM submit generates ticket instead of redirecting back to form with errors

2017-01-11 Thread Rahul Priyadarsi
Thanks for the reply @Antony. When I posted this question on this Forum, i did not see it appear so I thought something must be wrong with google groups itself. Hence I posted on stackoverflow. On Wednesday, January 11, 2017 at 5:35:18 AM UTC+5:30, Anthony wrote: > > FYI, already answered on

[web2py] Re: ajax and 403 forbidden issue..

2017-01-11 Thread António Ramos
The web2py ajax does not have the ".then" method or errror:function... like the regular $.ajax Do i have to use $.ajax instead? Seems that the error function is missing from web2py ajax. Why is it not implemented ? Regards António 2017-01-11 15:21 GMT+00:00 António Ramos :

[web2py] How to use a list:string as string

2017-01-11 Thread Martin Weissenboeck
What I want to do: I have a Field("aa", "list:string") and I know that the internal representation is e.g. "|x|y|z|u|v|". Now I want to find all rows with aa[0]=='x' and aa[1]=='y' and aa[2]=='z' and aa[3]=='u' (that is a simplified example). I have tried db.mytable.aa.type = 'text' res =

[web2py] ajax and 403 forbidden issue..

2017-01-11 Thread António Ramos
Hello i use the web2py ajax function to call an action that needs auth.requires_signature() INPUT(_onclick="ajax('"+url+"',[],':eval')" the users see a popup that i inject in the response because of the eval However if i have admin open and do a query, when i go back to that user page and click

[web2py] Re: Foreign key constraint failed

2017-01-11 Thread pilzsuppe
Hello Anthony, my eintrag_erstellen is a html view: -- {{extend 'layout.html'}} {{block header}} {{end}} Erstelle einen neuen Beitrag über das Thema {{=category.name.title()}} {{=form}} -- I gain access