Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small typos #891

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/chapter-06.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ If the `T` fixture is to be used from inside a template you may want to pass it
def index():
return dict(T=T)

Or perahps inject (same effect as above)
Or perhaps inject (same effect as above)

.. code:: python

Expand Down Expand Up @@ -310,7 +310,7 @@ you have to redefine the select method for the T instance:

T.on_request = lambda *_: T.local.__dict__.update(tag="it", language=T.languages["it"])

This is to be done outside any action and will apply to all actions. Action will still need todeclare
This is to be done outside any action and will apply to all actions. Action will still need to declare
`action.uses(T)` else the behavior is undefined.


Expand Down
4 changes: 2 additions & 2 deletions docs/chapter-07.rst
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ Migrations_ for details). By default it's automatically set within py4web on the
folder of the database itself, but you have to specify it when using DAL outside py4web.

Note that for SQLite databases it's normally necessary,
otherwise you'll implictly choose an in memory database (where folder and
otherwise you'll implicitly choose an in memory database (where folder and
migrations don't have any sense). So these constructors have the same meaning:

.. code:: python
Expand Down Expand Up @@ -2765,7 +2765,7 @@ Caching selects
The select method also takes a ``cache`` argument, which defaults to
None. For caching purposes, it should be set to a tuple where the first
element is the cache function with signature `(key, callback, expiration)`
(ror example ``cache.get`` assuming ``cache``
(for example ``cache.get`` assuming ``cache``
is an instance of the py4web cache object), and
the second element is the expiration time in seconds.

Expand Down
7 changes: 4 additions & 3 deletions docs/chapter-14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,9 @@ behave differently.
Grids with checkboxes
---------------------

While the grid, per se, does not support checkboxes, you can use custom columns to add one or more columns of checboxes.
While the grid, per se, does not support checkboxes, you can use custom columns to add one or more columns of checkboxes.
You can also add the helpers logic (the grid uses helpers to generate HTML) to wrap it in a ``<form>`` and add one
or more submit bottons. You can then add logic to process the selected rows when the button is selected. For example:
or more submit buttons. You can then add logic to process the selected rows when the button is selected. For example:

.. code:: python

Expand Down Expand Up @@ -619,4 +619,5 @@ or more submit bottons. You can then add logic to process the selected rows when
_action=request.url)]
return locals()

Notice in the above example ``request.POST.get("selected_id")`` can be a single ID (if one selected) or a list of IDs (if more than one elsected).
Notice in the above example ``request.POST.get("selected_id")`` can be a single ID (if one selected) or a list of IDs (if more than one
is selected).
2 changes: 2 additions & 0 deletions docs/spelling_wordlist_en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ lib
libs
limitby
localhost
longhash
lookups
mailto
Makefile
Expand Down Expand Up @@ -252,6 +253,7 @@ Teradata
teredo
textarea
tracebacks
Twilio
txt
ual
un
Expand Down
Loading