attribute.
--
Ronan Dunklau
--
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy
:
columns_dict = OrderedDict((col, key) for col in my_select._raw_columns))
columns_dict['mycol'] = mynewcol
my_select.raw_columns = columns_dict.values()
my_select._reset_exported.
But surely there must be something easier/not involving protected
attributes ?
Regards,
--
Ronan Dunklau
) Adding a foreign_keys argument to the relationship, on the actual columns
This results in an error:
sqlalchemy/orm/properties.py, line 1458, in _refers_to_parent_table
pt.is_derived_from(c.table) and \
AttributeError: 'Function' object has no attribute 'table'
Thank you!
--
Ronan Dunklau
User1 - Male
Group2
User3 - Male
User4 - Male
The solution we're using for now is to fetch a tuple of Group, User
and then to use python itertools.groupby function to build a tree of
group and users, but I'm sure sqlalchemy can provide us a more elegant
solution.
- --
Ronan