fixed issue 711, crud.upadate(...,next=URL(...)), thanks iceberg
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 1.99.7 (2012-03-19 15:55:45) dev
|
||||
Version 1.99.7 (2012-03-19 16:04:11) dev
|
||||
|
||||
@@ -73,9 +73,11 @@ def call_or_redirect(f,*args):
|
||||
redirect(f)
|
||||
|
||||
def replace_id(url, form):
|
||||
if url and not url[0] == '/' and url[:4] != 'http':
|
||||
return URL(url.replace('[id]', str(form.vars.id)))
|
||||
return url
|
||||
if url:
|
||||
url = url.replace('[id]', str(form.vars.id))
|
||||
if url[0] == '/' or url[:4] == 'http':
|
||||
return url
|
||||
return URL(url)
|
||||
|
||||
class Mail(object):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user