Skip to content

Commit

Permalink
merged grid-refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Aug 4, 2024
2 parents f144829 + 210cb47 commit fb0df93
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 473 deletions.
4 changes: 2 additions & 2 deletions apps/showcase/examples/example_html_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def example_html_grid(path=None):
**grid_param
)

grid.formatters["thing.color"] = lambda color: I(
_class="fa fa-circle", _style="color:" + color
grid.columns[3].represent = lambda row: I(
_class="fa fa-circle", _style="color:" + row.color
)

return dict(grid=grid)
2 changes: 1 addition & 1 deletion docs/chapter-16.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Sending messages using a background task
As en example of application of the above, consider the case of wanting to send emails asynchronously from a background task.
In this example we send them using SendGrid from Twilio (https://www.twilio.com/docs/sendgrid/for-developers/sending-email/quickstart-python).
Here is an example of scheduler task to send the email:
Here is a possible scheduler task to send the email:
.. code:: python
Expand Down
Loading

0 comments on commit fb0df93

Please sign in to comment.