Révision d70343fd
Ajouté par Jerome Schneider il y a environ 12 ans
mandaye/filters/vincennes.py | ||
---|---|---|
166 | 166 |
div = soup.find('div', {'class': 'bloc-model-1'}) |
167 | 167 |
if div: |
168 | 168 |
form = get_associate_form(env, values) |
169 |
div.replaceWith(form)
|
|
169 |
div.replaceWith(BeautifulSoup(form))
|
|
170 | 170 |
response.msg = str(soup) |
171 | 171 |
else: |
172 | 172 |
logger.warning('Filter EspaceFamille.resp_associate failed !') |
... | ... | |
216 | 216 |
form = soup.find('form', {'name': 'form1'}) |
217 | 217 |
if form: |
218 | 218 |
new_form = get_associate_form(env, values) |
219 |
form.replaceWith(new_form)
|
|
219 |
form.replaceWith(BeautifulSoup(new_form))
|
|
220 | 220 |
response.msg = str(soup) |
221 | 221 |
return response |
222 | 222 |
|
Formats disponibles : Unified diff
Fix #1293: support BeautyfulSoup 3.2.1