forked from 0x2620/pandora
Fix references to findDocument[s] in docstrings
This commit is contained in:
parent
4deb4daad3
commit
b7a83554ab
1 changed files with 5 additions and 5 deletions
|
@ -39,7 +39,7 @@ def addDocument(request, data):
|
||||||
}
|
}
|
||||||
notes: either `item` or `entity` must be provided
|
notes: either `item` or `entity` must be provided
|
||||||
returns {}
|
returns {}
|
||||||
see: editDocument, findDocument, getDocument, removeDocument, sortDocuments
|
see: editDocument, findDocuments, getDocument, removeDocument, sortDocuments
|
||||||
'''
|
'''
|
||||||
response = json_response()
|
response = json_response()
|
||||||
if 'ids' in data:
|
if 'ids' in data:
|
||||||
|
@ -102,7 +102,7 @@ def editDocument(request, data):
|
||||||
notes: If `item` is present, this will not edit the global description of
|
notes: If `item` is present, this will not edit the global description of
|
||||||
the document, but its specific description in the context of the given
|
the document, but its specific description in the context of the given
|
||||||
item.
|
item.
|
||||||
see: addDocument, findDocument, getDocument, removeDocument, sortDocuments
|
see: addDocument, findDocuments, getDocument, removeDocument, sortDocuments
|
||||||
'''
|
'''
|
||||||
response = json_response()
|
response = json_response()
|
||||||
item = 'item' in data and Item.objects.get(public_id=data['item']) or None
|
item = 'item' in data and Item.objects.get(public_id=data['item']) or None
|
||||||
|
@ -218,7 +218,7 @@ def getDocument(request, data):
|
||||||
key: value, // document key and value
|
key: value, // document key and value
|
||||||
... // more key/value pairs
|
... // more key/value pairs
|
||||||
}
|
}
|
||||||
see: addDocument, editDocument, findDocument, removeDocument, sortDocuments
|
see: addDocument, editDocument, findDocuments, removeDocument, sortDocuments
|
||||||
'''
|
'''
|
||||||
response = json_response({})
|
response = json_response({})
|
||||||
data['keys'] = data.get('keys', [])
|
data['keys'] = data.get('keys', [])
|
||||||
|
@ -240,7 +240,7 @@ def removeDocument(request, data):
|
||||||
notes: If `item` is present, this removes the documents from that item.
|
notes: If `item` is present, this removes the documents from that item.
|
||||||
If `entity` is present, this removes the documents from that entity.
|
If `entity` is present, this removes the documents from that entity.
|
||||||
Otherwise, it removes the documents from the database.
|
Otherwise, it removes the documents from the database.
|
||||||
see: addDocument, editDocument, findDocument, getDocument, sortDocuments
|
see: addDocument, editDocument, findDocuments, getDocument, sortDocuments
|
||||||
'''
|
'''
|
||||||
response = json_response()
|
response = json_response()
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ def sortDocuments(request, data):
|
||||||
ids: [string] // ordered list of document ids
|
ids: [string] // ordered list of document ids
|
||||||
}
|
}
|
||||||
returns {}
|
returns {}
|
||||||
see: addDocument, editDocument, findDocument, removeDocument, sortDocuments
|
see: addDocument, editDocument, findDocuments, removeDocument, sortDocuments
|
||||||
'''
|
'''
|
||||||
index = 0
|
index = 0
|
||||||
item = Item.objects.get(public_id=data['item'])
|
item = Item.objects.get(public_id=data['item'])
|
||||||
|
|
Loading…
Reference in a new issue