<ling-repeat="item in menuItems"class="{[{item.listName}]}"ng-click="onMenuClick($event, item.action, item.listId)">{[{item.verb}]} {[{item.listName}]}</li>
</ul>
</div>
</div>
</div>
<!--[if lt IE 7]>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
raiseAPIException('Parameter "field" should be a in the form "object.key", where "object" takes one of the following values: "%s". "%s" was found instead'%('", "'.join(field_objects),'.'.join(field)),400)
raiseAPIException('Invalid key for "%s" in parameter "field", should be one of the following values: "%s". "%s" was found instead'%(field[0],'", "'.join(field_objects[field[0]]),field[1]),400)
# return value
returnfield,_operators[operator],value
def_count_documents(self,query):
return{
'fields':[]
}
defpost(self,request,node_id):
defpost(self,request,node_id):
""" Query the children of the given node.
""" Query the children of the given node.
...
@@ -348,199 +420,53 @@ class NodesChildrenQueries(APIView):
...
@@ -348,199 +420,53 @@ class NodesChildrenQueries(APIView):
raiseAPIException('In the query\'s "retrieve" parameter, a "list" should be provided as an array',400)
ifretrieve['type']notinretrieve_types:
raiseAPIException('Unrecognized "type": "%s" in the query\'s "retrieve" parameter. Possible values are: "%s".'%(retrieve['type'],'", "'.join(retrieve_types),),400)
raiseAPIException('Invalid key for "%s" in parameter "field", should be one of the following values: "%s". "%s" was found instead'%(field[0],'", "'.join(hyperdata_names),field[1]),400)
# check or create Node_Hyperdata alias; join if necessary
raiseAPIException('Unrecognized "field": "%s" in the query\'s "retrieve" parameter. Possible values are: "%s".'%(field_name,'", "'.join(authorized_field_names),))
raiseAPIException('Invalid key for "%s" in parameter "field", should be one of the following values: "%s". "%s" was found instead'%(field[0],'", "'.join(hyperdata_names),field[1]),400)
'retrieve':{'type':dict,'required':True,'items':{
# check or create Node_Hyperdata alias; join if necessary
raiseAPIException('Unrecognized field "%s" in the query\'s "sort" parameter. Accepted values are: "%s"'%(sort_field_name,'", "'.join(fields_names)),400)
query=query.order_by(*sort_fields_list)
# pagination
pagination=request.DATA.get('pagination',{})
forkey,valueinpagination.items():
ifkeynotin{'limit','offset'}:
raiseAPIException('Unrecognized parameter in "pagination": "%s"'%(key,),400)
ifnotisinstance(value,int):
raiseAPIException('In "pagination", "%s" should be an integer.'%(key,),400)