From 132dfbcb19554cec7fd468921e8910adf35dc41a Mon Sep 17 00:00:00 2001 From: kelson Date: Sat, 3 Jan 2015 14:59:13 -0500 Subject: [PATCH] added support for POST variable passing to LOAD function A new post_vars parameter allows controllers to pass POST varaibles through LOAD as appropriate. GET variables are currently passed by default (via vars). --- gluon/compileapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gluon/compileapp.py b/gluon/compileapp.py index e12bb200..9ada3cfb 100644 --- a/gluon/compileapp.py +++ b/gluon/compileapp.py @@ -127,7 +127,7 @@ class mybuiltin(object): def LOAD(c=None, f='index', args=None, vars=None, extension=None, target=None, ajax=False, ajax_trap=False, url=None, user_signature=False, timeout=None, times=1, - content='loading...', **attr): + content='loading...', post_vars=Storage(), **attr): """ LOADs a component into the action's document Args: @@ -202,7 +202,7 @@ def LOAD(c=None, f='index', args=None, vars=None, other_request.args = List(args) other_request.vars = vars other_request.get_vars = vars - other_request.post_vars = Storage() + other_request.post_vars = post_vars other_response = Response() other_request.env.path_info = '/' + \ '/'.join([request.application, c, f] +