コード例 #1
0
 def __init__(self, dialect, word_id, title, definition, pos, category, phrase, phrase_def, user, contributor,
              cultural_note, pronunciation, reference, image_id, audio_id, video_id, children_archive, status, literal_translation, change):
     Text.__init__(self, dialect, word_id, title, definition, user, contributor, cultural_note, reference, image_id,
                   audio_id, video_id, children_archive, status, literal_translation, change)
     self.category = category
     self.pos = pos
     self.pronunciation = pronunciation
     self.phrase = phrase
     self.phrase_def = phrase_def
コード例 #2
0
 def __init__(self, dialect, entry_id, title, definition, user, translation,
              book_id, cultural_note, image_id, audio_id, video_id, change,
              order):
     self.order = order
     for book in dialect.legacy_books:
         if book.id == book_id:
             self.book = book
             self.status = book.status
             self.children_archive = book.children_archive
     Text.__init__(self, dialect, entry_id, title, definition, user, None,
                   cultural_note, None, image_id, audio_id, video_id,
                   self.children_archive, self.status, translation, change)
コード例 #3
0
 def __init__(self, dialect, book_id, title, definition, user, contributor,
              cultural_note, reference, image_id, audio_id, video_id,
              children_archive, status, intro, intro_def, author,
              author_ref, contributor_ref, translation, sstype, change,
              order):
     Text.__init__(self, dialect, book_id, title, definition, user,
                   contributor, cultural_note, reference, image_id,
                   audio_id, video_id, children_archive, status,
                   translation, change)
     self.intro = intro
     self.intro_def = intro_def
     self.author = author
     self.author_ref = author_ref  ##
     self.contributor_ref = contributor_ref  ##
     self.sstype = sstype
     self.order = order
コード例 #4
0
 def __init__(self, dialect, phrase_id, title, definition, phrase_book,
              user, contributor, cultural_note, reference, image_id,
              audio_id, video_id, children_archive, status, change):
     Text.__init__(self,
                   dialect,
                   phrase_id,
                   title,
                   definition,
                   user,
                   contributor,
                   cultural_note,
                   reference,
                   image_id,
                   audio_id,
                   video_id,
                   children_archive,
                   status,
                   change=change)
     self.category = phrase_book
コード例 #5
0
 def __init__(self, dialect, phrase_id, title, definition, user,
              contributor, children_archive, status):
     Text.__init__(self, dialect, phrase_id, title, definition, user,
                   contributor, None, None, None, None, None,
                   children_archive, status)
     self.dialect.unentered_phrases += 1