removed api collections json, fixed spilling list:string widget
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
## - index is the default action of any application
|
## - index is the default action of any application
|
||||||
## - user is required for authentication and authorization
|
## - user is required for authentication and authorization
|
||||||
## - download is for downloading files uploaded in the db (does streaming)
|
## - download is for downloading files uploaded in the db (does streaming)
|
||||||
## - api is an example of Hypermedia API support and access control
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
def index():
|
def index():
|
||||||
@@ -58,14 +57,3 @@ def call():
|
|||||||
return service()
|
return service()
|
||||||
|
|
||||||
|
|
||||||
@auth.requires_login()
|
|
||||||
def api():
|
|
||||||
"""
|
|
||||||
this is example of API with access control
|
|
||||||
WEB2PY provides Hypermedia API (Collection+JSON) Experimental
|
|
||||||
"""
|
|
||||||
from gluon.contrib.hypermedia import Collection
|
|
||||||
rules = {
|
|
||||||
'<tablename>': {'GET':{},'POST':{},'PUT':{},'DELETE':{}},
|
|
||||||
}
|
|
||||||
return Collection(db).process(request,response,rules)
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ ul.w2p_list {
|
|||||||
}
|
}
|
||||||
.w2p_list li input {
|
.w2p_list li input {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 90%;
|
width: 85%;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
.w2p_list li a {
|
.w2p_list li a {
|
||||||
|
|||||||
+1
-1
Submodule gluon/packages/dal updated: c6397d3719...da1b8e2a21
Reference in New Issue
Block a user