Changeset 430 for elixir/trunk/elixir

Show
Ignore:
Timestamp:
12/10/08 11:34:39 (3 years ago)
Author:
ged
Message:

update comment

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/elixir/relationships.py

    r428 r430  
    621621 
    622622        source_desc = self.entity._descriptor 
    623         #TODO: make this work if target is a pure SA-mapped class 
    624         # 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 name 
    627         # - the name of the target table 
    628         #XXX: use a fake table object on pure Elixir case and always introspect 
    629         #the table as if it was pure SA??? 
    630623        if isinstance(self.target, EntityMeta): 
    631624            # make sure the target has all its pk set up 
    632625            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. 
    634628        target_table = self.target_table 
    635629