[web2py] What's the problem with web2py such that no Unirest stuff works? Check below.

2016-04-02 Thread Jacob Devin
my code: import unirest def index(): response = unirest.post("https://voicerss-text-to-speech.p.mashape.com/?key=c6a700d0f8f343799009e395573f75f2";, headers={ "X-Mashape-Key": "TmlbmJ9Xo9mshlu42U223N0Y17Xzp17df0GjsnDvv9o4uNZLNO", "Content-Type": "application/x-www-form-urlencoded

[web2py] Does someone have a good idea of implementing chat using ajax in web2py? Please share.

2016-04-01 Thread Jacob Devin
There shouldn't be time lag between the chats being receieved by the 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 beca

[web2py] How to reload the whole page after form in the .load page (called in current page) accepts the form?

2016-03-31 Thread Jacob Devin
Here after default/delformforscreen.load accepts the form default/screen.html should load. How do I do that? It ain't working the way I thought. So I marked comment signs infront of that (see below) . def screen(): row=db(db.info.info_id==auth.user_id).select().first() if row: g

[web2py] Re: Why am I not being redirected after the form submission?

2016-03-31 Thread Jacob Devin
What's the difference between these two and when should we use them? dpform=SQLFORM(db.info,row.id,fields=['dp'],showid=False).process() dpform=SQLFORM(db.info,row.id,fields=['dp'],showid=False) On Thursday, March 31, 2016 at 5:36:01 PM UTC+5:30, Anthony wrote: > > You cannot call .process() twic

[web2py] Why am I not being redirected after the form submission?

2016-03-31 Thread Jacob Devin
def changedp(): row=db(db.info.info_id==auth.user_id).select().first() dpform=SQLFORM(db.info,row.id,fields=['dp'],showid=False).process() if dpform.process().accepted: redirect(URL('default','screen')) return locals() {{extend 'layout.html'}} {{=dpform}} -- Resources: -

[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', 'o

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

2016-03-29 Thread Jacob Devin
I want to make a 'search'. For example if I search Jack, it should return all those people's datas from the db which have either first_name or last_name with substring 'jack'. What's wrong here? On Tuesday, March 29, 2016 at 11:36:18 PM UTC+5:30, Anthony wrote: > > Did you read the documentation?

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

2016-03-29 Thread Jacob Devin
rows=db((db.info.last_name.lower().find(request.args(0).lower())) | (db.info.first_name.lower().find(request.args(0).lower(.select() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/

[web2py] Re: Why is this ajax function not working fine?

2016-03-29 Thread Jacob Devin
Thank you Anthony. It worked flawlessly! On Tuesday, March 29, 2016 at 6:50:24 PM UTC+5:30, Anthony wrote: > > On Tuesday, March 29, 2016 at 6:09:57 AM UTC-4, Jacob Devin wrote: >> >> view: >> >> {{extend 'layout.html'}} >> {{for row in rows:}}

Re: [web2py] Re: Why is this ajax function not working fine?

2016-03-29 Thread Jacob Devin
e, and if the generated page contains the callback url that > you expect. > > > Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ > > On Tue, 29-03-2016 3:59 PM, Jacob Devin wrote: > > > {{extend 'layout.html'}} > {{for row in rows:}} > > {{=row.name

[web2py] Re: Why is this ajax function not working fine?

2016-03-29 Thread Jacob Devin
{{extend 'layout.html'}} {{for row in rows:}} {{=row.name}} check 'about' {{pass}} def index(): rows=db(db.groups.id>0).select() return locals() def about_group(): row=db(db.groups.id

[web2py] Why is this ajax function not working fine?

2016-03-29 Thread Jacob Devin
view: {{extend 'layout.html'}} {{for row in rows:}} {{=row.name}} check 'about' {{pass}} in controller: def index(): rows=db(db.groups.id>0).select() return locals() def about_group(): row=db(db.groups.id==request.vars.row.id).select().first() return row.about --

[web2py] Re: In the dropdown here how to remove Profile?

2016-03-28 Thread Jacob Devin
like i want extra elements in the dropdown like i had password and profile before. On Tuesday, March 29, 2016 at 6:27:45 AM UTC+5:30, 黄祥 wrote: > > pardon, not sure what do you mean with 'add extra fields to the dropdown > table' > > best regards, > stifan > -- Resources: - http://web2py.com -

[web2py] What does user_signature = True mean here?

2016-03-28 Thread Jacob Devin
form=SQLFORM(db.info,row.id,user_signature=True).process() -- 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 subsc

[web2py] Re: In the dropdown here how to remove Profile?

2016-03-28 Thread Jacob Devin
Thank you Stifan. How do I add extra fields to the dropdown table? On Monday, March 28, 2016 at 2:26:15 AM UTC+5:30, 黄祥 wrote: > > in models : > auth.settings.actions_disabled = ['profile'] > > custom_auth_table = db[auth.settings.table_user_name] > > custom_auth_table.first_name.readable = False

[web2py] Re: In the dropdown here how to remove Profile?

2016-03-27 Thread Jacob Devin
also I want to remove the fields first_name and last_name. How do I do that? On Sunday, March 27, 2016 at 9:57:27 PM UTC+5:30, Jacob Devin wrote: > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] In the dropdown here how to remove Profile?

2016-03-27 Thread Jacob Devin
-- 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 subscribed to the Google Groups "web2py-users" group. To unsub

[web2py] Why does the mailing not work perfectly? What's wrong in this implementation?

2016-03-27 Thread Jacob Devin
inside view I have: http://www.google.com/jsapi?key= "> if(google.loader.ClientLocation) { visitor_lat = google.loader.ClientLocation.latitude; visitor_lon = google.loader.ClientLocation.longitude; visitor_city = goo