Skip to content

Commit d21cce1

Browse files
committed
fix: revert part of changeset: ae7fadcac9e1
I misread. Popcal doesn't support submitting html_kwargs. self.cgi_escape_attrs is used on a different variable.
1 parent 599ce93 commit d21cce1

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

CHANGES.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ Features:
125125
- Use native number type input for Number() and Integer()
126126
properties. Integer() uses step=1 as well. (John Rouillard)
127127
- issue2551231 - template.py-HTMLClass::classhelp doesn't merge
128-
user defined classes. It now merges them in. Also fixed same
129-
issue in popcal(). (John Rouillard)
128+
user defined classes. It now merges them in. (John Rouillard)
130129

131130
2024-07-13 2.4.0
132131

roundup/cgi/templating.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,16 +2454,9 @@ def popcal(self, width=300, height=200, label="(cal)",
24542454
"data-height": height
24552455
}
24562456

2457-
if 'class' in html_kwargs:
2458-
html_classes = ("classhelp %s" %
2459-
html_escape(str(html_kwargs["class"]), True))
2460-
del html_kwargs["class"]
2461-
else:
2462-
html_classes = "classhelp"
2463-
2464-
return ('<a class="%s" %s href="javascript:help_window('
2457+
return ('<a class="classhelp" %s href="javascript:help_window('
24652458
"'%s?@template=calendar&amp;property=%s&amp;form=%s%s', %d, %d)"
2466-
'">%s</a>' % (html_classes, self.cgi_escape_attrs(**data_attr),
2459+
'">%s</a>' % (self.cgi_escape_attrs(**data_attr),
24672460
self._classname, self._name, form, date, width,
24682461
height, label))
24692462

0 commit comments

Comments
 (0)