def createNewGroup(userProfile, groupName): group = Group(parent = userProfile, name = groupName) group.put() logging.info("New group created, key = " + str(group.key())) return group.key()
def addgroup(self): group = Group(parent=self.userProfile, name=self.getRequiredParameter("name")) group.put() self.sendJsonOK({"key": str(group.key())})