Example #1
0
def ajaxGetDisplayHelpState(request):
    if not request.user.is_authenticated():
        return HttpResponse(createXmlErrorResponse('You are not logged in, please log in.'),
                            content_type='application/xml')

    profile = request.user.profile
    return HttpResponse(createXmlSuccessResponse(`profile.displayHelp`), content_type='application/xml')
Example #2
0
def ajaxGetDisplayHelpState(request):
    if not request.user.is_authenticated():
        return HttpResponse(
            createXmlErrorResponse('You are not logged in, please log in.'),
            content_type='application/xml')

    profile = request.user.get_profile()
    return HttpResponse(createXmlSuccessResponse( ` profile.displayHelp `),
                        content_type='application/xml')
Example #3
0
def rgtHelp(request, helpMessageId = ''):
    if helpMessageId in HELP_MESSAGES:
        return HttpResponse(createXmlSuccessResponse(HELP_MESSAGES[helpMessageId]), content_type='application/xml')

    return HttpResponse(createXmlErrorResponse('Help topic not found'), content_type='application/xml')