Projet

Général

Profil

0001-wscall-make-notify_on_errors-and-record_errors-advan.patch

Thomas Noël, 05 mars 2019 11:35

Télécharger (1,51 ko)

Voir les différences:

Subject: [PATCH] wscall: make notify_on_errors and record_errors advanced
 options (#31087)

 wcs/wf/wscall.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
wcs/wf/wscall.py
114 114
    action_on_5xx = ':stop'
115 115
    action_on_bad_data = ':pass'
116 116
    action_on_network_errors = ':stop'
117
    notify_on_errors = True
117
    notify_on_errors = False
118 118
    record_errors = False
119 119

  
120 120
    @property
......
267 267

  
268 268
        if 'notify_on_errors' in parameters:
269 269
            form.add(CheckboxWidget, '%snotify_on_errors' % prefix,
270
                    title=_('Notify on errors'),
271
                    value=self.notify_on_errors)
270
                    title=_('Technical notification on errors'),
271
                    value=self.notify_on_errors, advanced=not(self.notify_on_errors))
272 272

  
273 273
        if 'record_errors' in parameters:
274 274
            form.add(CheckboxWidget, '%srecord_errors' % prefix,
275 275
                    title=_('Record errors in the log'),
276
                    value=self.record_errors)
276
                    value=self.record_errors, advanced=not(self.record_errors))
277 277

  
278 278
    def perform(self, formdata):
279 279
        if not self.url:
280
-