コード例 #1
0
ファイル: models.py プロジェクト: wdoenlen/lepetitmort
 def send(self, phone=None):
     phone = phone or Phone.query.get(self.phone_id)
     body = self.get_body()
     if send_by_twilio(phone.phone_string, body):
         self.sent_time = utility.get_time()
         db.session.commit()
         return True
     return False
コード例 #2
0
 def send(self, phone=None):
     phone = phone or Phone.query.get(self.phone_id)
     body = self.get_body()
     if send_by_twilio(phone.phone_string, body):
         self.sent_time = utility.get_time()
         db.session.commit()
         return True
     return False
コード例 #3
0
 def __init__(self, selection):
     self.selection = selection
     self.creation_time = utility.get_time()
コード例 #4
0
 def __init__(self, phone_string):
     self.phone_string = phone_string
     self.creation_time = utility.get_time()
     self.deleted = False
     self.sent_intro = False
コード例 #5
0
ファイル: models.py プロジェクト: wdoenlen/lepetitmort
 def __init__(self, selection):
     self.selection = selection
     self.creation_time = utility.get_time()
コード例 #6
0
ファイル: models.py プロジェクト: wdoenlen/lepetitmort
 def __init__(self, phone_string):
     self.phone_string = phone_string
     self.creation_time = utility.get_time()
     self.deleted = False
     self.sent_intro = False
コード例 #7
0
ファイル: models.py プロジェクト: cinjon/PoeTree
 def __init__(self, title, text):
     self.title = title
     self.text = text
     self.creation_time = utility.get_time()
     self.route = utility.dashify(title)
コード例 #8
0
ファイル: models.py プロジェクト: cinjon/PoeTree
 def __init__(self, name):
     self.name = name
     self.route = utility.dashify(name)
     self.creation_time = utility.get_time()
コード例 #9
0
ファイル: models.py プロジェクト: cinjon/PoeTree
 def __init__(self, poem_audio_count, ext, filename):
     self.ext = ext
     self.filename = get_next_audio(filename, poem_audio_count)
     self.creation_time = utility.get_time()
     self.youtube = None