def init_role(role_name): role = Role(key_name = role_name, name = role_name) role.put() init_permissions_for(role)
def create_admin_role(): role = Role(key_name = Role.ADMIN, name = Role.ADMIN) role.put()