'Create a new group.'

def create(self, trans, name, description=''):

    if (not trans.user_is_admin):
        raise ItemAccessibilityException('Only    administrators    can    create    groups.')
    else:
        if self.get(trans, name=name):
            raise Conflict(('Group    with    the    given    name    already    exists.    Name:    ' + str(name)))
        group = trans.app.model.Group(name=name)
        trans.sa_session.add(group)
        trans.sa_session.flush()
        return group
