On Mar 4, 2008, at 5:32 PM, Jonathan Vanasco wrote:
> > this is self explanatory, but error is below > > i'm using sqlalchemy to reflect a table. it reads it fine. > when i try to assign a mapper, i get "has no attribute '_class_state'" > > looking at orm.mapper.py > > 734: > if self.non_primary: > self._class_state = self.class_._class_state > _mapper_registry[self] = True > return > > > if i look at the dict around 735, self.class_._class_state not set > > i couldn't find where self.class_._class_state was set elsewhere in > the code > > is this a bug? could something else be at fault? > its a semi bug, you need to set up a "primary" mapper first. the "non_primary" flag should be raising an error if theres no "primary" mapper set up. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---