0
@view_config level
수준에서 추가 매개 변수를 전달하는 방법이 있습니까?@view_config 데코레이터의 추가 매개 변수 전달
@view_config
장식을 사용하지만 매개 변수를 전달 하나가 사용 된 표시하기 위해 싶습니다
:
@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
내가 내 경로를 통합 할 수 있습니다 실현 (예 : 모양 경로가) 및 추가 모양 유형에 대한 추가 매개 변수이지만 내 옵션을 알고 싶습니다.