[Twisted-Python] resource.render_METHOD
Hmm. I suppose render() could grope through methods on self to find all 'render_FOO' methods when an exception occurs.. OTOH, we could just get rid of the allowed methods reporting. What's the use?
Perhaps the Resource.render() method could check for self.allowedMethods instead of server.UnsupportedMethod.allowedMethods, then I could set it as a class attribute in each derived class?
Richard.Townsend@edl.uk.eds.com wrote:
Hmm. I suppose render() could grope through methods on self to find all 'render_FOO' methods when an exception occurs.. OTOH, we could just get rid of the allowed methods reporting. What's the use?
Perhaps the Resource.render() method could check for self.allowedMethods instead of server.UnsupportedMethod.allowedMethods, then I could set it as a class attribute in each derived class?
Good idea. It's in CVS, along with a fix to make UnsupportedMethod actually useful. -- Twisted | Christopher Armstrong: International Man of Twistery Radix | Release Manager, Twisted Project ---------+ http://radix.twistedmatrix.com/
participants (2)
-
Christopher Armstrong
-
Richard.Townsend@edl.uk.eds.com