~bjornt/grammatista/basic-ui

« back to all changes in this revision

Viewing changes to src/grammatista/word.py

  • Committer: Bjorn Tillenius
  • Date: 2008-11-02 19:49:09 UTC
  • Revision ID: bjorn@tillenius.me-20081102194909-q79vn3jl0yo794bg
Make tests in test_word_list.py pass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
307
307
        self.language = language
308
308
 
309
309
    def add_word(self, word):
310
 
        Store.of(self).add(WordWordList(word.id, self.id))
 
310
        Store.of(self).add(WordWordList(word, self))
311
311
 
312
312
Language.word_lists = ReferenceSet(Language.id, WordList.language_id)