Fix #1293: support BeautyfulSoup 3.2.1
* mandaye/filters/vincennes.py: BeautyfulSoup.replaceWith must use BeautifulSoup object
This commit is contained in:
parent
22c69221c1
commit
d70343fd40
|
@ -166,7 +166,7 @@ class EspaceFamille:
|
|||
div = soup.find('div', {'class': 'bloc-model-1'})
|
||||
if div:
|
||||
form = get_associate_form(env, values)
|
||||
div.replaceWith(form)
|
||||
div.replaceWith(BeautifulSoup(form))
|
||||
response.msg = str(soup)
|
||||
else:
|
||||
logger.warning('Filter EspaceFamille.resp_associate failed !')
|
||||
|
@ -216,7 +216,7 @@ class Duonet:
|
|||
form = soup.find('form', {'name': 'form1'})
|
||||
if form:
|
||||
new_form = get_associate_form(env, values)
|
||||
form.replaceWith(new_form)
|
||||
form.replaceWith(BeautifulSoup(new_form))
|
||||
response.msg = str(soup)
|
||||
return response
|
||||
|
||||
|
|
Reference in New Issue