[sqlalchemy] Metadata default schema

2013-05-15 Thread Ronan Dunklau
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

[sqlalchemy] Replacing columns in a Select

2012-03-14 Thread Ronan Dunklau
: 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

[sqlalchemy] column_property and relationship

2012-01-18 Thread 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

[sqlalchemy] Ad-hoc relations

2011-11-24 Thread 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