Guest User

Untitled

a guest
May 9th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #
  2. # Copyright 2008 Pliq, LLC
  3. #
  4. # This file is part of smscp.
  5. #
  6. # smscp is the intellectual property of Pliq, LLC; any distribution and/or
  7. # modifications and/or reproductions of any portion of smscp MUST be approved
  8. # by Pliq, LLC.
  9. #
  10. # smscp is distributed WITHOUT ANY WARRANTY; without even the implied
  11. # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. #
  13.  
  14. from smscp.dao import DaoBase
  15.  
  16. class MoneyGramDao(DaoBase.DaoBase):
  17. """docstring for FedMediaDao"""
  18. def __init__(self, host='localhost', user='mg', password='pork', db='moneygram'):
  19. super(MoneyGramDao, self).__init__(host, user, password, db)
  20.  
  21. def create_moneygram_alert(self, phone_no, carrier, country, frequency):
  22. return self.do_insert("call moneygram_set_alert('%s','%s','%s', '%s');" % (self.escape(str(phone_no)), self.escape(str(carrier)), self.escape(str(country)), self.escape(str(frequency))))
  23.  
  24. def get_moneygram_alert(self, phone_no):
  25. return self.get_first_record("call moneygram_get_alert('%s');" % (self.escape(str(phone_no))))
Add Comment
Please, Sign In to add comment