
July 8, 2008
8:32 p.m.
On 03:12 am, andy@thecablelounge.com wrote:
On Sun, Jul 6, 2008 at 3:32 AM, Jonathan Lange <jml@mumak.net> wrote:
- "Decorators" like "read-only" and "chroot" could prove useful. Is there room in the design for such things?
Yeah, I'm all for flavouring backends with decorators.
That's why I keep trying to sneak this guy through ;)
http://twistedmatrix.com/trac/browser/branches/vfs-async- backends-2815/twisted/vfs/_decorator.py
Eehhhhh... I'm glad that name starts with "_" :). It seems like one of those too-clever-by-half solutions to a relatively simple problem, where the cleverness will bite you later. Something like... I would do. The general concept of decorators is really good though.