0001-workflows-add-an-id-to-the-action-form-13990.patch
tests/test_backoffice_pages.py | ||
---|---|---|
2636 | 2636 |
resp = app.get('/backoffice/management/form-title/' + first_link) |
2637 | 2637 |
assert not 'Be warned forms of this user are also being looked' in resp.body |
2638 | 2638 |
assert 'button_commentable' in resp.body |
2639 |
assert len(resp.forms) == 1
|
|
2639 |
assert len(resp.forms) |
|
2640 | 2640 |
resp = app2.get('/backoffice/management/form-title/' + first_link) |
2641 | 2641 |
assert 'Be warned forms of this user are also being looked' in resp.body |
2642 | 2642 |
assert not 'button_commentable' in resp.body |
... | ... | |
2654 | 2654 |
assert 'Be warned forms of this user are also being looked' in resp.body |
2655 | 2655 |
assert 'button_commentable' in resp.body |
2656 | 2656 |
assert not '(unlock actions)' in resp.body |
2657 |
assert len(resp.forms) == 1
|
|
2657 |
assert len(resp.forms) |
|
2658 | 2658 | |
2659 | 2659 |
# submit action form |
2660 | 2660 |
resp.form['comment'] = 'HELLO' |
wcs/workflows.py | ||
---|---|---|
1300 | 1300 |
raise KeyError() |
1301 | 1301 | |
1302 | 1302 |
def get_action_form(self, filled, user): |
1303 |
form = Form(enctype='multipart/form-data', use_tokens = False) |
|
1303 |
form = Form(enctype='multipart/form-data', use_tokens=False) |
|
1304 |
form.attrs['id'] = 'wf-actions' |
|
1304 | 1305 |
for item in self.items: |
1305 | 1306 |
if not item.check_auth(filled, user): |
1306 | 1307 |
continue |
1307 |
- |