There seems to be something else ... The following test passes which indicates that position is set as 0 right after the bullet and the slide are related:
93 def test_backref_set(self): 94 self._setup(ordering_list('position')) 95 96 #session = create_session() 97 s1 = Slide('Slide #1') 98 #session.add(s1) 99 #session.flush() 100 101 self.assert_(not s1.bullets) 102 self.assert_(len(s1.bullets) == 0) 103 104 b0 = Bullet('s1/b0') 105 assert b0.position == None 106 #session.add(b0) 107 b0.slide = s1 108 assert b0.position == 0 109 110 #session.flush() 111 112 self.assert_(s1.bullets) 113 self.assert_(len(s1.bullets) == 1) 114 self.assert_(s1.bullets[0] == b0) 115 self.assert_(s1.bullets[0].position == 0) -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.