'get list of users'

def get_users(self):

    user_list = frappe.db.sql(u'\n DCTB  DCTB  DCTB select    name,    enabled    from    tabUser\n DCTB  DCTB  DCTB where    name    not    in    ({})\n DCTB  DCTB  DCTB and    user_type    !=    "Website    User"\n DCTB  DCTB  DCTB order    by    enabled    desc,    name    asc'.format(u',    '.join(([u'%s'] * len(STANDARD_USERS)))), STANDARD_USERS, as_dict=1)
    if self.recipient_list:
        recipient_list = self.recipient_list.split(u'\n')
    else:
        recipient_list = []
    for p in user_list:
        p[u'checked'] = (((p[u'name'] in recipient_list) and 1) or 0)
    frappe.response[u'user_list'] = user_list
