[Mpuls-commits] r3158 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 8 16:42:05 CEST 2010
Author: roland
Date: 2010-07-08 16:42:05 +0200 (Thu, 08 Jul 2010)
New Revision: 3158
Modified:
base/trunk/mpulsweb/controllers/formularpage.py
Log:
fixed format, removed debug messages
Modified: base/trunk/mpulsweb/controllers/formularpage.py
===================================================================
--- base/trunk/mpulsweb/controllers/formularpage.py 2010-07-08 14:23:29 UTC (rev 3157)
+++ base/trunk/mpulsweb/controllers/formularpage.py 2010-07-08 14:42:05 UTC (rev 3158)
@@ -195,18 +195,16 @@
# How to proceed after saving the data?
for param in request.params:
- if param.startswith('add_rg') and not param.endswith(('x', 'y')):
- print param
- print request.params.get('add_rg')
+ if param.startswith('add_rg') and not param.endswith(('x','y')):
if param == 'add_rg':
redirect_to(controller='/repeatgroup', action="new",
- id=request.params.get('add_rg'))
+ id=request.params.get('add_rg'))
else:
redirect_to(controller='/repeatgroup', action="new",
- id=param.split('|')[1])
- elif param.startswith('del_rg') and not param.endswith(('x', 'y')):
+ id=param.split('|')[1])
+ elif param.startswith('del_rg') and not param.endswith(('x','y')):
redirect_to(controller='/repeatgroup', action="delete",
- id=param.split('|')[1])
+ id=param.split('|')[1])
if request.params.has_key('savenext'):
page_id = session['navigation.tree'].getTreeItem(page_id).nextKey().key
More information about the Mpuls-commits
mailing list