Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Copyright 2008 Pliq, LLC
- #
- # This file is part of smscp.
- #
- # smscp is the intellectual property of Pliq, LLC; any distribution and/or
- # modifications and/or reproductions of any portion of smscp MUST be approved
- # by Pliq, LLC.
- #
- # smscp is distributed WITHOUT ANY WARRANTY; without even the implied
- # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- #
- from smscp.dao import DaoBase
- class MoneyGramDao(DaoBase.DaoBase):
- """docstring for FedMediaDao"""
- def __init__(self, host='localhost', user='mg', password='pork', db='moneygram'):
- super(MoneyGramDao, self).__init__(host, user, password, db)
- def create_moneygram_alert(self, phone_no, carrier, country, frequency):
- 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))))
- def get_moneygram_alert(self, phone_no):
- return self.get_first_record("call moneygram_get_alert('%s');" % (self.escape(str(phone_no))))
Add Comment
Please, Sign In to add comment