Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/p/o/portfoliyo-HEAD/portfoliyo/view/village/views.py   portfoliyo(Download)
            with xact.xact():
                student = form.save()
            tracking.track(request, 'added student')
            return redirect_to_village(student, group)
    else:
            with xact.xact():
                student = form.save()
            tracking.track(request, 'edited student')
            return redirect_to_village(student, group)
    else:
            with xact.xact():
                group = form.save()
            tracking.track(request, 'added group')
            if not group.students.exists():
                return redirect(
            with xact.xact():
                group = form.save()
            tracking.track(request, 'edited group')
            return redirect('group', group_id=group.id)
    else:
            with xact.xact():
                form.save()
            tracking.track(request, 'invited family')
            return redirect_to_village(rel.student, group)
    else:

src/p/o/portfoliyo-HEAD/portfoliyo/view/users/views.py   portfoliyo(Download)
                    )
                tracking.track(
                    request,
                    'registered',
                    email_notifications=(
            profile.save(force_update=True)
            messages.success(request, "Email address %s confirmed!" % user.email)
            tracking.track(request, 'confirmed email')
        return redirect(redirect_home(user))
 
            u"to see messages about your student.",
            )
        tracking.track(request, 'accepted email invite')
 
    return response

src/p/o/portfoliyo-HEAD/portfoliyo/tests/view/test_tracking.py   portfoliyo(Download)
def test_track():
    """track() function records event data in session."""
    request = mock.Mock()
    request.session = MockSession()
    tracking.track(request, 'some event', foo='bar')