Change re options for filters

git-svn-id: svn+ssh://labs.libre-entreprise.org/svnroot/larpe@477 3ed937ae-f919-0410-9a43-8e6f19e4ba6e
This commit is contained in:
jschneider 2009-09-23 15:09:56 +00:00
parent 4d37015708
commit 319d6d64e9
1 changed files with 1 additions and 1 deletions

View File

@ -812,7 +812,7 @@ POST request. You can desactivate some or all of them, or change their value.'''
page = current_form.sub('<form method="post" action="/liberty/%(name)s/login"><input type="submit" value="Connexion" /></form>', page)'''
% { 'auth_form_action': self.host.auth_form_action, 'name': self.host.name })
for filter in filters:
python_file.write(" r = re.compile(r\"\"\"%s\"\"\", re.DOTALL)\n" % filter["re"])
python_file.write(" r = re.compile(r\"\"\"%s\"\"\")\n" % filter["re"])
python_file.write(" page = r.sub(r\"\"\"%s\"\"\", page)\n" % filter["sub"])
python_file.write(" return page\n")
python_file.close()