[web2py] Re: How to implement token based restful api in web2py

2016-07-14 Thread botasservice
Ok. Thank you. четверг, 14 июля 2016 г., 22:28:50 UTC+4 пользователь Dave S написал: > > > > On Thursday, July 14, 2016 at 7:58:55 AM UTC-7, botass...@gmail.com wrote: >> >> I'm using 2.14.6. I solved this by just removing indent=2 > > > I think Massimo was suggesting the developer's version (aka

[web2py] Re: How to implement token based restful api in web2py

2016-07-14 Thread botasservice
I'm using 2.14.6. I solved this by just removing indent=2 -- 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] Re: How to implement token based restful api in web2py

2016-07-14 Thread botasservice
I'm using 2.14.6. I solved this by just removing indent=2 -- 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] Re: Angularjs calls to web2py rest api

2016-07-13 Thread botasservice
I've tried this type of view (default/index.html): [[ myData.id ]] var app = angular.module('myApp', []); app.controller('testCtrl',function($scope,$http){ $http.get("

[web2py] Re: How to implement token based restful api in web2py

2016-07-13 Thread botasservice
Massimo, i've downloaded your example with APIMaker and getting error: json() got an unexpected keyword argument 'indent' File "applications\collection2\modules\apimaker.py", line 294, in process return response.json(res, indent=2)+'\n' вторник, 12 июля 2016 г., 11:39:18 UTC+3

[web2py] Angularjs calls to web2py rest api

2016-07-12 Thread botasservice
Hello everyone. Can someone explain me how to get data from table using web2py rest api and angularjs? I have function api(): 1. @request.restful() 2. def api(): 3. response.view = 'generic.json' 4. def GET(*args,**vars): 5. patterns = 'auto' 6. parser

[web2py] Re: references in sqlite3

2016-06-03 Thread botasservice
I solved this by re-defining tables. пятница, 3 июня 2016 г., 13:27:29 UTC+3 пользователь botass...@gmail.com написал: > > Hello. > > I have 3 tables, one of them default auth_user table, and other two are: > db.define_table('table_A', > Field('account_user', 'reference

[web2py] references in sqlite3

2016-06-03 Thread botasservice
Hello. I have 3 tables, one of them default auth_user table, and other two are: db.define_table('table_A', Field('account_user', 'reference auth_user', readable=False ), Field('username', requires=IS_NOT_EMPTY(error_message=auth.message.is_empty)),

[web2py] Re: SQLFORM with variable as db.'variable'

2016-05-29 Thread botasservice
Hello, any suggestions? -- 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] SQLFORM with variable as db.'variable'

2016-05-25 Thread botasservice
Hello, I have a problem: #@auth.requires_login() def new_acc(): if auth.user_id == None: new_acc="You need to authorize" else: try: TestDB.define_table(auth.user.username, Field('trv_username', readable=True, writable=True), Field('trv_password',