Example #1
0
def get_user_dict(user):
    u = XMLRPCSerializer(model=user)
    u = u.serialize_model()
    if u.get("password"):
        del u["password"]
    return u
    """
    try:
        test_case_run = TestCaseRun.objects.get(pk=case_run_id)
    except ObjectDoesNotExist, error:
        raise

    try:
        LinkReference.unlink(link_id)
    except:
        raise

    return


def get_logs(request, case_run_id):
    """
    Description:  Get log links to TestCaseRun

    Params:     $case_run_id - Integer:
    """
    try:
        test_case_run = TestCaseRun.objects.get(pk=case_run_id)
    except ObjectDoesNotExist, error:
        raise

    links = LinkReference.get_from(test_case_run)
    s = XMLRPCSerializer(links)
    return s.serialize_queryset()