This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Introduction

Products.VisitTracker provides a simple API for tracking visits on objects. Objects for which visits should be tracked have to implement the:

Products.VisitTracker.interfaces.IVisitable

interface and thus provide an attribute named revisit which defines the time delta in hours after which a revisit is tracked as a new visit.

Visits are tracked by the IVisitTracker adapter and stored as annotations on the specific object.

Usage

Given an object implementing the IVisitable interface tracking and retrieving visits is done by adapting to IVisitTracker.

tracker = IVisitTracker(obj)

Tracking a visit

Tracking a visit is done by calling the trackVisit method. This is usually done in a view or a viewlet.

tracker.trackVisit()

Getting visits

There are multiple methods available to retrieve the stored visits.

Get visits

tracker.getVisits()

Returns a list of date, userid tuples of all visits tracked for this object.

Get number of visits

tracker.getNumberOfVisits()

Returns the number of visits tracked for this object.

Get last visit

tracker.getLastVisit()

Returns the date of the last visit tracked for this object.

Get last visit of user

tracker.getLastVisit(userid)

Returns the date of the last visit of the specified user tracked for this object.

Get last visits by user

tracker.getLastVisits()

Returns a list of userid, date tuples of the last visits of all tracked users.

Changelog

1.0b2 (2010-10-24)

  • Set zip_safe flag to False

1.0b1 - (2010-10-19)

  • First public release
Release History

Release History

1.0b2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0b1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Products.VisitTracker-1.0b2.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256 Source Oct 24, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting