Re: Developing and testing a model mixin

2007-08-12 Thread Ned
On Aug 12, 4:35 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > This is one approach - another would be an abstract base class. Great. > The simplest approach would be to write a simple test app, use the > normal Django test framework on that app, and then not install/include > that test

Re: Developing and testing a model mixin

2007-08-11 Thread Russell Keith-Magee
On 8/12/07, Ned <[EMAIL PROTECTED]> wrote: > > Firstly, is a mixin a good way to do this? This is one approach - another would be an abstract base class. We (by which, I mean Malcolm) is currently working on improving the inheritance capabilities in Django - providing a way to cleanly implement a

Developing and testing a model mixin

2007-08-11 Thread Ned
I'm new to Django and fairly new to Python. I'm developing an add-in for using for using models as nested set trees* At the moment it's a mixin class which provides methods such as parent(), descendants(), depth() etc. for examining the tree, and move_to() for relocating a node within the tree.