bpo-30095: Make CSS classes used by calendar.HTMLCalendar customizabl… · dat/cpython@8b7a4cc · GitHub
Skip to content

Commit 8b7a4cc

Browse files
oz123doerwalter
authored andcommitted
bpo-30095: Make CSS classes used by calendar.HTMLCalendar customizable (pythonGH-1439)
Several class attributes have been added to calendar.HTMLCalendar that allow customization of the CSS classes used in the resulting HTML. This can be done by subclasses HTMLCalendar and overwriting those class attributes (Patch by Oz Tiram).
1 parent 167e0fc commit 8b7a4cc

5 files changed

Lines changed: 205 additions & 44 deletions

File tree

Doc/library/calendar.rst

Lines changed: 80 additions & 1 deletion

Doc/whatsnew/3.7.rst

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,6 @@ New Modules
103103
Improved Modules
104104
================
105105

106-
cgi
107-
---
108-
109-
:func:`~cgi.parse_multipart` returns the same results as
110-
:class:`~FieldStorage` : for non-file fields, the value associated to a key
111-
is a list of strings, not bytes.
112-
(Contributed by Pierre Quentel in :issue:`29979`.)
113106

114107
binascii
115108
--------
@@ -118,6 +111,22 @@ The :func:`~binascii.b2a_uu` function now accepts an optional *backtick*
118111
keyword argument. When it's true, zeros are represented by ``'`'``
119112
instead of spaces. (Contributed by Xiang Zhang in :issue:`30103`.)
120113

114+
115+
calendar
116+
--------
117+
118+
The :class:`~calendar.HTMLCalendar` has added new class attribute which ease the
119+
customisation the CSS classes in the produced HTML calendar.
120+
(Contributed by Oz Tiram in :issue:`30095`.)
121+
122+
cgi
123+
---
124+
125+
:func:`~cgi.parse_multipart` returns the same results as
126+
:class:`~FieldStorage` : for non-file fields, the value associated to a key
127+
is a list of strings, not bytes.
128+
(Contributed by Pierre Quentel in :issue:`29979`.)
129+
121130
contextlib
122131
----------
123132

Lib/calendar.py

Lines changed: 30 additions & 6 deletions

0 commit comments

Comments
 (0)