On Sep 15, 2010, at 12:10 PM, Chris Withers wrote: > On 15/09/2010 15:04, Nikolaj wrote: >> Base = declarative_base() >> >> class Person(Base): >> __tablename__ = 'people' >> >> name = Column(String, primary_key=True) >> >> @classproperty >> def bar(cls): >> return cls.foo > > Can you explain why you'd want to do something like this?
What I should have done, is had declarative look for a decorator @mapperproperty. Which is identical to @classproperty, except its the specific decorator that declarative will actually look at. I have already hit this glitch in my own code where I am using @classproperty for other reasons. Class-level decorators are going to be more prominent in 0.7 so I will be getting this story straight. > > Chris > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to sqlalch...@googlegroups.com. > To unsubscribe from this group, send email to > sqlalchemy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.