Exemple #1
0
def createNewGroup(userProfile, groupName):

    group = Group(parent = userProfile,
                  name = groupName)
    group.put()
    logging.info("New group created, key = " + str(group.key()))

    return group.key()
Exemple #2
0
    def addgroup(self):

        group = Group(parent=self.userProfile, name=self.getRequiredParameter("name"))
        group.put()

        self.sendJsonOK({"key": str(group.key())})