I found a problem in SqlAlchemy 0.3.10 this week: slicing a list property caused the whole association list to be deleted. For example, suppose I want to remove the first 3 items from a list of related items:
my_obj.related = my_obj.related[3:] When these changes were saved , my_obj.related was empty the next time it loaded. This code, however, worked correctly: for i in range(0, 3): del my_obj.related[0] Barry __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---