本文整理汇总了Python中pylons.controllers.WSGIController._get_method_args方法的典型用法代码示例。如果您正苦于以下问题:Python WSGIController._get_method_args方法的具体用法?Python WSGIController._get_method_args怎么用?Python WSGIController._get_method_args使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pylons.controllers.WSGIController
的用法示例。
在下文中一共展示了WSGIController._get_method_args方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _get_method_args
# 需要导入模块: from pylons.controllers import WSGIController [as 别名]
# 或者: from pylons.controllers.WSGIController import _get_method_args [as 别名]
def _get_method_args(self):
"""Retrieve the method arguments to use with inspect call.
By default, this uses Routes to retrieve the arguments,
override this method to customize the arguments your controller
actions are called with.
For MediaCore, we extend this to include all GET and POST params.
NOTE: If the action does not define \*\*kwargs, then only the kwargs
that it defines will be passed to it when it is called.
"""
kwargs = request.params.mixed()
kwargs.update(WSGIController._get_method_args(self))
return kwargs