- Exam #1: done
- Started working on tests for the ACLMiddleWare
- Found some bugs in the current implementation
- Detected a general problem: Items that are retrieved by the AMW have a _backend attribute that is a reference to the real storage backend, which is then used by any other method defined on Item and Revision. Proposed a fix.
- This means we have to provide any method the abstract backend provides, too. (Even if it's just forwarding to the real backend. This is not too different from what we do now when we wrap the calls and check for permission.)
Tried to find the best way to solve this. Neither getattr nor getattribute_ seem to be usable. Hence we'll need to provide those references manually.
See:
Initial tests: http://hg.moinmo.in/moin/2.0-storage/rev/775239dc02b4
Proposed fix for "backdoor": http://hg.moinmo.in/moin/2.0-storage/rev/4f730ebdf78f and http://hg.moinmo.in/moin/2.0-storage/rev/fbe8c3246354
This is what I meant by manually providing the references: http://hg.moinmo.in/moin/2.0-storage/rev/8f3f50a16d31