Exemple #1
0
    def send_account_error(self, message):
        """Send a message to the user through BCC's messaging system

        Arguments:
        message -- the message to be sent to the user

        """
        send_user_message(self.bcc_id, 'ERROR', message)
Exemple #2
0
 def get_free_chips(self):
     if self.free_chips_available():
         self.last_free_chip_date = datetime.date.today()
         self.save()
         deposit_chips(self.bcc_id, 500, dbconf.FRONTEND_USER,
                       dbconf.FRONTEND_PASS)
     else:
         message = "You only get free chips once per day!"
         send_user_message(self.bcc_id, "ERROR", message)