Fixes in redirect, using the new version
This commit is contained in:
parent
01c23252ca
commit
d409f01acb
2 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
from paramecio.citoplasma.lists import SimpleList
|
from paramecio.citoplasma.lists import SimpleList
|
||||||
from bottle import request, redirect
|
from bottle import request
|
||||||
from paramecio.citoplasma.urls import add_get_parameters
|
from paramecio.citoplasma.urls import add_get_parameters, redirect
|
||||||
from paramecio.citoplasma.mtemplates import set_flash_message
|
from paramecio.citoplasma.mtemplates import set_flash_message
|
||||||
from paramecio.cromosoma.formsutils import show_form
|
from paramecio.cromosoma.formsutils import show_form
|
||||||
from paramecio.citoplasma.i18n import I18n
|
from paramecio.citoplasma.i18n import I18n
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
from paramecio.citoplasma.i18n import I18n
|
from paramecio.citoplasma.i18n import I18n
|
||||||
from bottle import get,response,request, redirect
|
from bottle import get,response,request
|
||||||
from paramecio.citoplasma.sessions import get_session
|
from paramecio.citoplasma.sessions import get_session
|
||||||
|
from paramecio.citoplasma.urls import redirect
|
||||||
import re
|
import re
|
||||||
|
|
||||||
@get('/change_lang/<lang>')
|
@get('/change_lang/<lang>')
|
||||||
|
|
@ -21,3 +22,4 @@ def index(lang):
|
||||||
redirect(redirect_url)
|
redirect(redirect_url)
|
||||||
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue