Exemple #1
0
def init_role(role_name):
    role = Role(key_name = role_name, name = role_name)
    role.put()
    init_permissions_for(role)
Exemple #2
0
def create_admin_role():
    role = Role(key_name = Role.ADMIN, name = Role.ADMIN)
    role.put()