Esempio n. 1
0
 def test_roles(self):
     """ A test """
     role = Role(id='none', role_id='none', ordinal=0)
     self.assertIsNotNone(role)
     role.put()
     found = Role.get_by_id('none')
     self.assertIsNotNone(found)
     self.assertEqual('none', found.key.id())
     self.assertEqual('none', found.role_id)
Esempio n. 2
0
 def create_meeting(self, request):
     authorise(request.person, request.token)
     mm = Role(name=request.name, importance=request.importance, parentId=request.parentId);
     res = RoleMsg(id=mm.put().id(), name=request.name, importance=request.importance, parentId=mm.parentId)
     return res