~kevang/mnemosyne-proj/grade-shortcuts-improvements

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/libmnemosyne/card.py

  • Committer: pbienst
  • Date: 2008-08-03 16:08:48 UTC
  • Revision ID: svn-v3-trunk0:e5e6b78b-db40-0410-9517-b98c64f8d2c1:trunk:494
Update fact.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    #
38
38
    ##########################################################################
39
39
            
40
 
    def __init__(self, grade, card_type, fact, fact_view, cat_names, id=None):
 
40
    def __init__(self, grade, fact, fact_view, cat_names, id=None):
41
41
 
42
 
        self.card_type_id = card_type.id
43
 
        self.fact         = fact
44
 
        self.fact_view    = fact_view
45
 
        self.active       = True
 
42
        self.fact       = fact
 
43
        self.fact_view  = fact_view
 
44
        self.active     = True
46
45
 
47
46
        db = get_database()
48
47
 
188
187
 
189
188
        if self.active == False:
190
189
            return False
 
190
 
 
191
        if self.fact.is_active() == False:
 
192
            return False
191
193
        
192
194
        for c in self.cat:
193
195
            if c.active == False: