Re: [sqlalchemy] discriminator_on_association.py - creating a Customer instance without specifying the addresses attribute

2011-08-27 Thread Fayaz Yusuf Khan
On Monday, June 27, 2011 03:55:04 PM Yap Sok Ann wrote: > Using the discriminator_on_association.py example, if I create a > Customer instance without specifying the addresses attribute, the for- > loop at the end will throw exception: > > AttributeError: 'NoneType' object has no attribute 'addres

[sqlalchemy] discriminator_on_association.py - creating a Customer instance without specifying the addresses attribute

2011-06-27 Thread Yap Sok Ann
Using the discriminator_on_association.py example, if I create a Customer instance without specifying the addresses attribute, the for- loop at the end will throw exception: AttributeError: 'NoneType' object has no attribute 'addresses' It works if I specify "addresses=[]", but that sounds like t