Show
Ignore:
Timestamp:
12/03/07 18:37:54 (4 years ago)
Author:
ged
Message:

- changed all Unicode fields to String since we don't send unicode data to

those fields and now SQLAlchemy complains when that happens

- added test for multi-pk case to M2M

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/tests/test_versioning.py

    r245 r271  
    1010 
    1111    class Director(Entity): 
    12         name = Field(Unicode(60)) 
     12        name = Field(String(60)) 
    1313        movies = OneToMany('Movie', inverse='director') 
    1414        using_options(tablename='directors') 
     
    1717    class Movie(Entity): 
    1818        id = Field(Integer, primary_key=True) 
    19         title = Field(Unicode(60), primary_key=True) 
    20         description = Field(Unicode(512)) 
     19        title = Field(String(60), primary_key=True) 
     20        description = Field(String(512)) 
    2121        releasedate = Field(DateTime) 
    2222        ignoreme = Field(Integer, default=0) 
     
    2828 
    2929    class Actor(Entity): 
    30         name = Field(Unicode(60)) 
     30        name = Field(String(60)) 
    3131        movies = ManyToMany('Movie', inverse='actors', tablename='movie_casting') 
    3232        using_options(tablename='actors')