comparison roundup/cgi/templating.py @ 8292:4aa34c826fc4

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.
author John Rouillard <rouilj@ieee.org>
date Sun, 19 Jan 2025 01:01:59 -0500
parents ae7fadcac9e1
children b99e76e76496
comparison
equal deleted inserted replaced
8291:ae7fadcac9e1 8292:4aa34c826fc4
2452 self._classname, self._name, form, date), 2452 self._classname, self._name, form, date),
2453 "data-width": width, 2453 "data-width": width,
2454 "data-height": height 2454 "data-height": height
2455 } 2455 }
2456 2456
2457 if 'class' in html_kwargs: 2457 return ('<a class="classhelp" %s href="javascript:help_window('
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('
2465 "'%s?@template=calendar&amp;property=%s&amp;form=%s%s', %d, %d)" 2458 "'%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),
2467 self._classname, self._name, form, date, width, 2460 self._classname, self._name, form, date, width,
2468 height, label)) 2461 height, label))
2469 2462
2470 2463
2471 class IntervalHTMLProperty(HTMLProperty): 2464 class IntervalHTMLProperty(HTMLProperty):

Roundup Issue Tracker: http://roundup-tracker.org/