This release is a pre-release and may not be stable for production use.
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
Metadata
Release files for Products.VisitTracker 1.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Products.VisitTracker-1.0b2.tar.gz | 3.3 kB | Without provenance | Details for Products.VisitTracker-1.0b2.tar.gz |
Release files / Products.VisitTracker-1.0b2.tar.gz
| Download URL | Products.VisitTracker-1.0b2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99f001aea26b00de7f99f632d15acf87926bad7ba7a89b3e42683764023a94c9
|
|
BLAKE2b-256 checksum How to use checksums |
11edec0190a077fb7f491ddd50e22cecfd2b5a8bddb658ab1a6eebeceb86da87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Products.VisitTracker 1.0b2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.