Message290963
I am a bit ashamed that I missed that. Still, the intent in the current code, the name of the parameter, the examples, etc. is that we pass the handler class. This is more than its __init__ function and less than a generic factory method. An important difference, which could become important, is that with a factory the handler type could depend on the request. As pointed out by Eric, passing the class was perhaps the intent in the early days. Now, perhaps many use it differently and pass a factory method, not a class, but it still appears as a hack that does not respect the intent. One could legitimately worry that this hack will not be supported in future versions, because it is not documented. |
|
Date |
User |
Action |
Args |
2017-04-01 05:40:18 | dominic108 | set | recipients:
+ dominic108, eric.smith, r.david.murray |
2017-04-01 05:40:18 | dominic108 | set | messageid: <1491025218.83.0.59957529419.issue29947@psf.upfronthosting.co.za> |
2017-04-01 05:40:18 | dominic108 | link | issue29947 messages |
2017-04-01 05:40:18 | dominic108 | create | |
|