Example #1
0
 def send_code(status, user, id):
     from way2sms import send
     import random, time
     status['code'] = (random.randint(11111111, 99999999))
     message = 'Your Way2Sms activation code is : %d\n' % status['code']
     status['status'] = send(id, user, message)
     time.sleep(2)
     gtk.main_quit()
     return False
Example #2
0
 def resend_code(id, user):
     from way2sms import send
     import random
     self.__status['code'] = (random.randint(11111111, 99999999))
     message = 'Your Way2Sms Activation Code is : %d\n'\
                 % self.__status['code']
     self.__status['status'] = send(id, user, message)
     gtk.main_quit()
     return
Example #3
0
 def __send_message(self, number, message, status):
     from way2sms import send
     import time
     database = DataBase()
     customer_id = database.get_default()[2]
     for text in message:
         text = text.strip()
         status[number][0] = status[number][0] and send(customer_id, number, text)
         time.sleep(1.4)
     status[number][1] = True
     return