I believe you should not call mapper(). When you use declarative_base, you define the table, the class and the mapping at once, in a shorthand style.
I suggest you remove the call to mapper().
codeape
2010-04-14 14:07:54