'Get the roles currently assigned for a user/entity and put it
into a Storage object for the form
@return: Storage() to pre-populate the role form'

def get_form_vars(self):

    form_vars = Storage()
    fo = self.foreign_object
    roles = self.roles
    if (fo and (fo['id'] in self.assigned_roles)):
        for role in self.assigned_roles[fo['id']]:
            mod_uid = roles[role]['module']['uid']
            acl_uid = roles[role]['acl']['uid']
            form_vars[mod_uid] = acl_uid
    return form_vars
