[Twisted-Python] resource.render_METHOD

Christopher Armstrong radix at twistedmatrix.com
Wed Mar 3 12:49:44 EST 2004


Richard.Townsend at 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040303/798e179a/attachment.pgp 


More information about the Twisted-Python mailing list