This commit is contained in:
Massimo Di Pierro
2011-12-04 15:48:07 -06:00
parent 0b6997aaad
commit 079dde8835
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.3 (2011-12-04 15:40:01) dev
Version 1.99.3 (2011-12-04 15:48:02) dev
+4 -3
View File
@@ -1904,9 +1904,10 @@ class FORM(DIV):
elif callable(onsuccess):
onsuccess(self)
if next:
if self.vars.id:
next = next.replace('[id]',str(self.vars.id))
next = next % self.vars
if self.vars:
for key,value in self.vars.items():
next = next.replace('[%s]' % key,
urllib.quote(str(value)))
if not next.startswith('/'):
next = URL(next)
redirect(next)