Mercurial > libervia-backend
comparison sat/plugins/plugin_comp_file_sharing_management.py @ 3298:d0e8b0a3ef9c
comp file sharing management: fixed confirmation check
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 09 Jun 2020 06:23:37 +0200 |
parents | 780fb8dd07ef |
children | 04a7d77ed86f |
comparison
equal
deleted
inserted
replaced
3297:91b5ae058c66 | 3298:d0e8b0a3ef9c |
---|---|
349 defer.returnValue((payload, status, None, None)) | 349 defer.returnValue((payload, status, None, None)) |
350 | 350 |
351 else: | 351 else: |
352 # final phase, we'll do deletion here | 352 # final phase, we'll do deletion here |
353 try: | 353 try: |
354 confirmed = command_form.fields['confirm'] | 354 confirmed = C.bool(command_form.fields['confirm'].value) |
355 except KeyError: | 355 except KeyError: |
356 self._c.adHocError(self._c.ERROR.BAD_PAYLOAD) | 356 self._c.adHocError(self._c.ERROR.BAD_PAYLOAD) |
357 if not confirmed: | 357 if not confirmed: |
358 note = None | 358 note = None |
359 else: | 359 else: |