hi, is that a way to invoke a function in httpFactory from a http.request? code here:<br>from twisted.web import http<br>class anotherRequestHandler(http.Request):<br> def process(self):<br> '''<br> how to invoke a method in anotherHttpFactory
<br> such as judge?<br> '''<br><br>class anotherHttp(http.HTTPChannel):<br> requestFactory = anotherRequestHandler<br><br>class resolve:<br> def show(self):<br> return 'ok'
<br> <br>class anotherHttpFactory(http.HTTPFactory):<br> def __init__(self):<br> a = resolve()<br> <br> def judge(self):<br> return a.show()<br><br><br>I don't want class 'resolve' to be initialized every time when a request comes, or am I mis-understand it ? Thanks for help.
<br><br>