[sqlalchemy] Re: Unit testing with SA?

2007-02-02 Thread Christopher Arndt
Allen schrieb: How do people writing db applications with SA do unit testing on their code? Are there any good db unit testing frameworks that work well with SA? If I can't find anything I will probably just roll my own but I would like to keep from reinventing the wheel if I can help it.

[sqlalchemy] Re: Tagging example

2007-01-26 Thread Christopher Arndt
Damjan schrieb: Now, creating pages and then adding tags to them like so: p1.tags.append(Tag('test')) p2.tags.append(Tag('test')) will actually create two 'test' tags in the database... Have a look at my tagging tutorial at http://paddyland.serveblog.net/article/16#updating-tags Although

[sqlalchemy] class-object-like attribute lookup

2007-01-25 Thread Christopher Arndt
Hi all, I'm still learning SA, so please forgive me, if I'm asking something obvious or have overlooked something in the docs... The subject onyl gives a vague idea of what I'm trying to accomplish, but since I couldn't find better term for it, I had trouble searching the lists, docs, etc.

[sqlalchemy] Re: class-object-like attribute lookup

2007-01-25 Thread Christopher Arndt
Karl Guertin schrieb: Looks like you want recursive single table inheritance [1]. It doesn't need to be recursive, just a two-level parent-child relation. And I don't want to add any columns, so I was thinking that table inheritance is not the right approach, but I'm not sure about that. Chris