David Pratt wrote:
Martijn. Actually I think I said prevalent, not relevant :-).
True, you did, it's just that you connected these topics particularly with refactoring legacy code, while I've been thinking more about them in the context of new code.
I agree about relevance in both circumstances so highlighted container, location and traversal as key issues for refactoring legacy code. I am concerned about retaining heirarchical arrangements and being able to use existing traversal methods. I really like what you are doing here and will look at your implementation. I appreciate you for pointing this out. Many thanks.
The sketchy implementation is here: http://svn.zope.org/grokapps/rdbexample/ (the declarative-directives branch is the only one that currently actually "works", by the way). In particular the interesting bits are in the sub-package 'megrok.rdb'. We're hoping to convert this code to use zope.sqlalchemy, and also start implementing some of the configuration details we discussed in another thread. Right now we're focusing on making this work for Grok, but you know we have the habit of splitting off more commonly useful code over time, and external contributions can of course accelerate that work. :) Regards, Martijn