view MoinMoin/_tests/common.py @ 3027:6dcc9617bab6

Fix for WrongAlignedAttachment (Thanks to Benjamin Weber) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 03 Feb 2008 17:57:42 +0100
parents 0813af0f2425
children b0a794176dc4
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - MoinMoin.packages tests - common code

    @copyright: 2007 MoinMoin:KarolNowak
    @license: GNU GPL, see COPYING for details.
"""

def gain_superuser_rights(request):
    request.user.name = "SuperUserName"
    request.user.valid = 1
    request.user.may.name = request.user.name
    request.cfg.superuser.append(request.user.name)
    request.user.auth_method = request.cfg.trusted_auth_methods[0]