@@ -485,7 +485,7 @@ def normalize_dotted_fields(document):
485
485
""" Normalizes eventual dotted fields so validation can be performed
486
486
seamlessly. For example this document:
487
487
488
- {"location.city": "a nested cisty "}
488
+ {"location.city": "a nested city "}
489
489
490
490
would be normalized to:
491
491
@@ -763,18 +763,18 @@ def resolve_embedded_documents(document, resource, embedded_fields):
763
763
:param resource: the resource name.
764
764
:param embedded_fields: the list of fields we are allowed to embed.
765
765
766
- .. versionchagend :: 0.5
766
+ .. versionchanged :: 0.5
767
767
Support for embedding documents located in subdocuments.
768
768
Allocated two functions embedded_document and subdocuments.
769
769
770
- .. versionchagend :: 0.4
770
+ .. versionchanged :: 0.4
771
771
Moved parsing of embedded fields to _resolve_embedded_fields.
772
772
Support for document versioning.
773
773
774
- .. versionchagend :: 0.2
774
+ .. versionchanged :: 0.2
775
775
Support for 'embedded_fields'.
776
776
777
- .. versonchanged :: 0.1.1
777
+ .. versionchanged :: 0.1.1
778
778
'collection' key has been renamed to 'resource' (data_relation).
779
779
780
780
.. versionadded:: 0.1.0
@@ -899,9 +899,9 @@ def store_media_files(document, resource, original=None):
899
899
.. versionadded:: 0.3
900
900
"""
901
901
# TODO We're storing media files in advance, before the corresponding
902
- # document is also stored. In the rare occurance that the subsequent
902
+ # document is also stored. In the rare occurrence that the subsequent
903
903
# document update fails we should probably attempt a cleanup on the storage
904
- # sytem . Easier said than done though.
904
+ # system . Easier said than done though.
905
905
for field in resource_media_fields (document , resource ):
906
906
if original and field in original :
907
907
# since file replacement is not supported by the media storage
@@ -957,7 +957,7 @@ def resolve_sub_resource_path(document, resource):
957
957
958
958
959
959
def resolve_user_restricted_access (document , resource ):
960
- """ Adds user restricted access medadata to the document if applicable.
960
+ """ Adds user restricted access metadata to the document if applicable.
961
961
962
962
:param document: the document being posted or replaced
963
963
:param resource: the resource to which the document belongs
@@ -1068,7 +1068,7 @@ def document_link(resource, document_id, version=None):
1068
1068
1069
1069
def resource_link ():
1070
1070
""" Returns the current resource path relative to the API entry point.
1071
- Mostly going to be used by hatoeas functions when building
1071
+ Mostly going to be used by hateoas functions when building
1072
1072
document/resource links. The resource URL stored in the config settings
1073
1073
might contain regexes and custom variable names, all of which are not
1074
1074
needed in the response payload.
0 commit comments