Hi. Let’s say that you have an User model:
user = store.find(User, User.email == ‘[email protected]’).one() user_array = dict([(p.name, getattr(user, (p.name))) for p in user._storm_columns.values()]) Take into consideration that the former will work for simple properties, meaning that no references will be convert and returned as dictionary. Regards -- Join the free software foundation and become free as in freedom On 13 April 2014 at 07:37:08, R Pish ([email protected]) wrote: Hi, What is the recommended way to convert a resultset produced by a call like: store.find(User, User.id == myvarid).one() ? Thanks in advance -- storm mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/storm
-- storm mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/storm
