[storm] Order By Reference

Gerdus van Zyl gerdusvanzyl at gmail.com
Thu Sep 17 22:14:24 BST 2009


How can I order a resultset of statement_transform by cat_description?

something like
store.find(Statement_Transform).order_by(Asc(Category.cat_description))
except that doesn't work.

Thank you.

Model below:

class Statement_Transform(EBase):
    __storm_table__ = "statement_transform"
    statrans_id = Int(primary=True)
    match = Unicode()
    cat_id = Int()
    cat = Reference(cat_id, Category.cat_id)

class Category(EBase):
    __storm_table__ = "catagory"
    cat_id = Int(primary=True)
    cat_description = Unicode()
    ignore = Bool()



More information about the storm mailing list