Changeset 430 for elixir/trunk/elixir
- Timestamp:
- 12/10/08 11:34:39 (3 years ago)
- Files:
-
- 1 modified
-
elixir/trunk/elixir/relationships.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/elixir/relationships.py
r428 r430 621 621 622 622 source_desc = self.entity._descriptor 623 #TODO: make this work if target is a pure SA-mapped class624 # for that, I need:625 # - the list of primary key columns of the target table (type and name)626 # - a way to get to a column from its name627 # - the name of the target table628 #XXX: use a fake table object on pure Elixir case and always introspect629 #the table as if it was pure SA???630 623 if isinstance(self.target, EntityMeta): 631 624 # make sure the target has all its pk set up 632 625 self.target._descriptor.create_pk_cols() 633 626 #XXX: another option, instead of the FakeTable, would be to create an 627 # EntityDescriptor for the SA class. 634 628 target_table = self.target_table 635 629
