0
@view_config level
のレベルで余分なパラメータを渡す方法はありますか?@view_configデコレータの余分なパラメータを渡す
私は方法のために、複数の@view_config
デコレータを使用したいが、使用された1つを示すためにパラメータを渡します。
@view_config(renderer="shape.mak", route_name='circle_route')
@view_config(renderer="shape.mak", route_name='triangle route')
def new_model(self, fparams=None, ppath=None):
#here, I'd like to capture a variable that tells me whether the cirlce or triangle route was used to access this method
私は私が私のルートを統合(例えば形状のルートを持っている)して追加することができます実現形状のタイプの追加パラメータですが、私はオプションを知りたいと思います。