Re: [web2py] pass values in "state" parameter oauth

2014-02-19 Thread ssuresh
#x27;][0] > > > then you can do what you need with auth_provider > > > 2014-02-16 12:13 GMT+01:00 ssuresh >: > >> I am using google oauth login as explained here >> https://groups.google.com/forum/#!msg/web2py/fjpbFxRAGJM/pxvoBJKk2UkJ.. >> I am trying to

[web2py] pass values in "state" parameter oauth

2014-02-16 Thread ssuresh
I am using google oauth login as explained here https://groups.google.com/forum/#!msg/web2py/fjpbFxRAGJM/pxvoBJKk2UkJ.. I am trying to use the "state" parameter to pass some additional values to google. As I understand we should get the values back in the response from google. My authentication

[web2py] executesql as_dict=True replacing ids during join

2014-01-02 Thread ssuresh
I found a peculiar problem when executing a join query on two tables. I have two tables table1 and table2. Both have ids as their pks. table1 has a FK on table2 using table2_id field. Now when i do an executesql of the following query, rows=executesql('select * from table1,table2 where table1

[web2py] oauth2 login with google

2013-10-07 Thread ssuresh
I am trying to integrate google login into web2py(without using janrain). I could see examples of oauth login using facebook and linkedin but not google. Can someone please point to on how to get started.. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gi

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-23 Thread ssuresh
Yes..Now it works.. I was returning row object back from myformat function. Web2py was internally creating tables when it encounters a row object. But when i changed the myformat function to return data formatted as divs, it is working as expected.. Thanx for the help On Sunday, September 22,

[web2py] Re: sqlform.grid with div instead of html tables

2013-09-21 Thread ssuresh
The problem is that my data does not display too well in a table grid. Some of my columns are descriptions that do not fit well inside a grid. So I want to display it in a more readable alternate formats. - Something like *Title * description .. *date*

[web2py] sqlform.grid with div instead of html tables

2013-09-20 Thread ssuresh
Hi, I want to use sqlform.grid and all its features, but do not want the display in a tabular format. Is there a way in which I can change the display of sqlform.grid to my custom instead of . I tried doing some formatting on grid.rows mydisplay = myformat(grid.rows) grid.element('.web2py_ta

[web2py] Re: executesql insert multiple rows

2013-08-12 Thread ssuresh
Thanx Brian.. I too thought of something similar- concatenating to create the sql ..Since executing multiple statements is quite common, I thought something inbuilt will be there in web2py.. I dug through the code and found a executemany() function in gluon/contrib/ pg8000/dbapi.py ..Will it

[web2py] executesql insert multiple rows

2013-08-11 Thread ssuresh
I am trying to insert multiple rows into a postgresql table ..The SQL will look like this insert into mytable(col1,col2) values(val1,val2),(val3,val4),(val5,val6) Since the web2py batching just iterates and executes each sql statement, I am trying to avoid multiple db calls by using executesql

[web2py] bulk updates/insert

2013-07-21 Thread ssuresh
Hi, I have a table userskills with the following structure {user_id,user_skills,skill_rating}.. It can have values like {1,java,5} {1,python,6} {1,javascript,9} {2,java,3} etc For a particular user, I will show him an editable grid (jquery based) containing all his skills and ratings. He ca

[web2py] Re: Asynchronous logging

2013-06-17 Thread ssuresh
, Niphlod wrote: > > continous operations kinda don't play well with logs files issues are > more prominent in a multiprocess environment. > > Redis can do it without hiccup, if you have it in your environment... > > > > Il giorno lunedì 17 giugno 2013 15

[web2py] Asynchronous logging

2013-06-17 Thread ssuresh
hi, I am planning to build some sort of user action analytics into my system. For this, I need to log all user actions into the table . Since an additional db write for every function call can be a performance issue, my idea is to introduce an async batch write(say after every hundred lines of

[web2py] Re: formatting dates as plain english text

2013-06-11 Thread ssuresh
oops..I somehow missed that.. pretty-dates is what i need..Thanx a lot -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com.

[web2py] formatting dates as plain english text

2013-06-11 Thread ssuresh
Hi, What is the preferred approach in converting datetimes to plain english text as " 2 hours ago", "last monday" ,"1 month ago" etc? Are there any web2py functions available or is it better to manipulate it using javascript libraries like http://momentjs.com/? regds, suresh -- --- You rece

[web2py] How to remove table name reference from generated form ids/labels

2013-05-25 Thread ssuresh
hi, Is there is anyway i can change the form field ids and labels generated by SQLFORM? Currently the field ids are in the format tablename.columnname . How to change it to just columnname so that i can avoid exposing my tablenames in html? thanx, Suresh -- --- You received this message bec