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
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 subscr
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 subscr
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("http://127.0.0.1:8000/api/test/10";).then(function(res
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 пользователь
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
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 auth_user'
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)),
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
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', readable=True
10 matches
Mail list logo