def __init__(self, conn, cur, _id): super(Newsletter, self).__init__(conn, cur, _id) self.record = self.get_result_dict('newsletter') self.record['date_added'] = unix_to_local(self.record['date_added']) self.record['list_ids'] = self.record['list_ids'].encode('ascii', 'ignore').split(',') self.record['company'] = self.get_company_name() self.record['recipients'] = 0
def __init__(self, conn, cur, _id): super(Newsletter, self).__init__(conn, cur, _id) self.record = self.get_result_dict('newsletter') self.record['date_added'] = unix_to_local(self.record['date_added']) self.record['list_ids'] = self.record['list_ids'].encode( 'ascii', 'ignore').split(',') self.record['company'] = self.get_company_name() self.record['recipients'] = 0
def __init__(self, conn, cur, _id): super(List, self).__init__(conn, cur, _id) self.record = self.get_result_dict('list') self.record['recipients'] = self.get_recips(count=True) self.record['date_added'] = unix_to_local(self.record['date_added'])
def __init__(self, conn, cur, _id): super(User, self).__init__(conn, cur, _id) self.record = self.get_result_dict('user') self.record['last_login'] = unix_to_local(self.record['last_login'])
def __init__(self, conn, cur, _id): super(Template, self).__init__(conn, cur, _id) self.record = self.get_result_dict('template') self.record['date_added'] = unix_to_local(self.record['date_added'])
def __init__(self, conn, cur, _id): super(Recipient, self).__init__(conn, cur, _id) self.record = self.get_result_dict('recipient') self.record['date_added'] = unix_to_local(self.record['date_added'])