0002-misc-don-t-advertise-legacy-variables-in-send-email-.patch
wcs/workflows.py | ||
---|---|---|
2255 | 2255 |
if 'body' in parameters: |
2256 | 2256 |
form.add(TextWidget, '%sbody' % prefix, title=_('Body'), |
2257 | 2257 |
value=self.body, cols=80, rows=10, |
2258 |
validation_function=ComputedExpressionWidget.validate_template, |
|
2259 |
hint=_('Available variables: url, url_status, details, name, number, comment, field_NAME')) |
|
2258 |
validation_function=ComputedExpressionWidget.validate_template) |
|
2260 | 2259 | |
2261 | 2260 |
if 'attachments' in parameters: |
2262 | 2261 |
attachments_options, attachments = self.get_attachments_options() |
... | ... | |
2476 | 2475 |
value=self.to, add_element_label=_('Add Number'), |
2477 | 2476 |
element_kwargs = {'render_br': False}) |
2478 | 2477 |
if 'body' in parameters: |
2479 |
form.add(TextWidget, '%sbody' % prefix, title=_('Body'), value=self.body, cols=80, rows=10, |
|
2480 |
hint = _('Available variables: url, url_status, details, name, number, comment, field_NAME')) |
|
2478 |
form.add(TextWidget, '%sbody' % prefix, title=_('Body'), value=self.body, cols=80, rows=10) |
|
2481 | 2479 | |
2482 | 2480 |
def perform(self, formdata): |
2483 | 2481 |
if not self.is_available(): |
2484 |
- |