Skip to content

Commit 0d974f9

Browse files
timgates42marksweb
andauthored
docs: Fix a few typos (#1309)
* docs: Fix a few typos There are small typos in: - docs/README.rst - docs/secure_downloads.rst - filer/admin/folderadmin.py - filer/models/foldermodels.py - filer/templatetags/filer_admin_tags.py - filer/thumbnail_processors.py - tests/helpers.py - tests/test_admin.py Fixes: - Should read `suitable` rather than `suitiable`. - Should read `rendered` rather than `redered`. - Should read `outer` rather than `owter`. - Should read `permission` rather than `permisison`. - Should read `library` rather than `libary`. - Should read `initial` rather than `inital`. - Should read `ellipse` rather than `elipse`. - Should read `deletable` rather than `deleteable`. Signed-off-by: Tim Gates <[email protected]> * Update docs/README.rst Co-authored-by: Mark Walker <[email protected]> * Update filer/models/foldermodels.py Co-authored-by: Mark Walker <[email protected]> Signed-off-by: Tim Gates <[email protected]> Co-authored-by: Mark Walker <[email protected]>
1 parent 85c4438 commit 0d974f9

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

docs/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Django Filer Documentation
55
Run the documentation locally
66
-----------------------------
77

8-
Install the Enchant libary
9-
~~~~~~~~~~~~~~~~~~~~~~~~~~
8+
Install the Enchant library
9+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
1010

1111
You will need to install the
1212
`enchant <https://www.abisource.com/projects/enchant/>`__ library that

docs/secure_downloads.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ live in ``filer.server.backends`` and it is easy to create new ones.
4848
The default is ``filer.server.backends.default.DefaultServer``. It is suitable
4949
for development and serves the file directly from django.
5050

51-
More suitiable for production are server backends that delegate the actual file
51+
More suitable for production are server backends that delegate the actual file
5252
serving to an upstream webserver.
5353

5454
``NginxXAccelRedirectServer``

filer/admin/folderadmin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def delete_files_or_folders(self, request, files_queryset, folders_queryset):
689689
Action which deletes the selected files and/or folders.
690690
691691
This action first displays a confirmation page whichs shows all the
692-
deleteable files and/or folders, or, if the user has no permission on
692+
deletable files and/or folders, or, if the user has no permission on
693693
one of the related childs (foreignkeys), a "permission denied" message.
694694
695695
Next, it deletes all selected files and/or folders and redirects back to

filer/models/foldermodels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class FolderPermissionManager(models.Manager):
2121
"""
22-
Theses methods are called by introspection from "has_generic_permisison" on
22+
These methods are called by introspection from "has_generic_permission" on
2323
the folder model.
2424
"""
2525
def get_read_id_list(self, user):

filer/templatetags/filer_admin_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def file_icon_context(file, detail, width, height):
109109
@register.inclusion_tag('admin/filer/templatetags/file_icon.html')
110110
def file_icon(file, detail=False, size=None):
111111
"""
112-
This templatetag returns a redered `<img src="..." srcset="..." width="..." height="..." class="..." />
112+
This templatetag returns a rendered `<img src="..." srcset="..." width="..." height="..." class="..." />
113113
to be used for rendering thumbnails of files in the directory listing or in the corresponding detail
114114
views for that image.
115115
"""

filer/thumbnail_processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def scale_and_crop_with_subject_location(im, size, subject_location=False,
119119
if ex or ey:
120120
crop_box = ((int(tex), int(tey), int(tfx), int(tfy)))
121121
if FILER_SUBJECT_LOCATION_IMAGE_DEBUG:
122-
# draw elipse on focal point for Debugging
122+
# draw ellipse on focal point for Debugging
123123
draw = ImageDraw.Draw(im)
124124
esize = 10
125125
draw.ellipse(((subj_x - esize, subj_y - esize),

tests/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def create_image(mode='RGB', size=(800, 600)):
4848

4949
class SettingsOverride:
5050
"""
51-
Overrides Django settings within a context and resets them to their inital
51+
Overrides Django settings within a context and resets them to their initial
5252
values on exit.
5353
5454
Example:

tests/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def test_validate_no_duplicate_folders_on_move(self):
569569
|
570570
|--bar
571571
572-
and try to move the owter bar in foo. This has to fail since it would result
572+
and try to move the outer bar in foo. This has to fail since it would result
573573
in two folders with the same name and parent.
574574
"""
575575
root = Folder.objects.create(name='root', owner=self.superuser)

0 commit comments

Comments
 (0)