[storm] Error when performing a find

Gabriel Rossetti gabriel.rossetti at arimaz.com
Thu Jul 24 12:18:41 BST 2008


Hello everyone,

I am playing around with twisted, using the tutorial's Employee, Company 
& such as a base. I tried doing a find like this :

emp = store.find(Employee, Employee.company.name == u"circus")

but I get this exception

AttributeError: 'Reference' object has no attribute 'name'

Can I not do this or am I doing it wrong?

If I do : bob.company.name it returns u"circus", as it should.

Thank you,
Gabriel



More information about the storm mailing list