Skip to main content
sc.social.viewcounter
=====================

Overview
--------

sc.social.viewcounter provides most accessed / viewed content ranking for Plone
sites.

Requirements
------------

* SQLAlchemy 0.5

* z3c.saconfig

* pysqlite (used for testing)

* A database connector

Installation
------------

First step prior to using sc.social.viewcounter is to add a zcml slug to provide a named session 'sc.social.viewcounter.db'. This could be done on the configure.zcml, but you must add the xmlns for db in the configure tag and also include z3c.saconfig into your product ::


<configure
...
xmlns:db="http://namespaces.zope.org/db"
...>

<include package="z3c.saconfig" file="meta.zcml"/>

<db:engine name="sc.social.viewcounter.sqlmemory" url="sqlite:///:memory:" echo="True" />
<db:session name="sc.social.viewcounter.db" engine="sc.social.viewcounter.sqlmemory" />

</configure>


Please refer to z3c.saconfig documentation on how to configure url connection strings for your databases.

To enable this product, on a buildout based installation:

1. Edit your buildout.cfg and add ``sc.social.viewcounter``
to the list of eggs to install ::

[buildout]
...
eggs =
...
sc.social.viewcounter

2. Tell the plone.recipe.zope2instance recipe to install a ZCML slug::

[instance]
...
zcml =
...
sc.social.viewcounter

If another package depends on the sc.social.viewcounter egg or
includes its zcml directly you do not need to specify anything in the
buildout configuration: buildout will detect this automatically.

After updating the configuration you need to run the ''bin/buildout'',
which will take care of updating your system.

Go to the 'Site Setup' page in the Plone interface and click on the
'Add/Remove Products' link.

Choose the product (check its checkbox) and click the 'Install' button.

Uninstall -- This can be done from the same management screen, but only
if you installed it from the quick installer.

Note: You may have to empty your browser cache and save your resource registries
in order to see the effects of the product installation.

Sponsoring
----------

Development of this product was sponsored by `Simples Consultoria
<http://www.simplesconsultoria.com.br/>`_ customers, including (but not limited
to):

* `Rede Brasil Atual <http://www.redebrasilatual.com.br/>`_

* `Consumidor Moderno <http://consumidormoderno.uol.com.br/>`_

* `Ciência Hoje <http://cienciahoje.uol.com.br/>`_

Credits
-------

* Erico Andrei (erico at simplesconsultoria dot com dot br) - Packaging and
plumbing.

* Luciano Pacheco (pacheco at simplesconsultoria dot com dot br) - Coding
bugfixing and much of day to day use.

* Daniel Vainsencher (daniel at simplesconsultoria dot com dot br) -
Bugfixing.


Changelog
=========

1.0.7 (2010-08-18)
------------------

* Move pysqlite from install_requires to test_requires. [erico_andrei]

1.0.6 (2010-03-22)
------------------

* Reports view now exposes a cache invalidation function [erico_andrei]

* No cache allowed if we get no resultset [erico_andrei]

* Hashing keys now consider a str version of arguments [erico_andrei]

* Improve tests on caching [erico_andrei]

* Disable sqlalchemy query echoing when running tests [erico_andrei]

1.0.5 (2010-03-15)
------------------

* Language is considered when creating hashs for memoize[dtremea]

1.0.4 (2010-03-14)
------------------

* Handle connection errors [erico_andrei]

1.0.3 (2010-03-13)
------------------

* Use of memoize to cache resultsets [erico_andrei]

* Creation of a new index in order to speedup reports [erico_andrei]

1.0.2 (2009-11-17)
------------------

* Adding support to filtering reports based on data like existing as indexes on portal_catalog. [erico_andrei]

1.0.1.2 (2009-11-17)
--------------------

* What about including zcmls? [erico_andrei]

1.0.1.1 (2009-11-14)
--------------------

* What about including zcmls? [erico_andrei]

1.0.1 (2009-11-12)
-----------------

* Fixes documentation [erico_andrei]

1.0 (2009-11-12)
----------------

* Fixes portlet assignment [erico_andrei]

* Ordering is finally working [erico_andrei]

* Filter rankings by workflow [erico_andrei]

* Doctests for base functionality [erico_andrei]

* Fixes bug with cloud_search [lucmult]

0.6 (2009-09-05)
----------------

* Updates documentation and prepare release
[erico_andrei]

* Fix a bug that occured when viewcounter viewlet was called from a browser view without a proper sqlalchemy session. [erico_andrei]

* Avoid counting page views when user is updating, sharing or using any template (or browser view) not listed in getAvailableLayouts [lucmult]

0.5 (2009-07-04)
----------------

* Initial release
[erico_andrei]

Release files for sc.social.viewcounter 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sc.social.viewcounter 1.0.7
File Size Uploaded
sc.social.viewcounter-1.0.7.tar.gz 22.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sc.social.viewcounter 1.0.7
File Interpreter ABI Platform
sc.social.viewcounter-1.0.7-py2.4.egg Legacy Egg format - - Details

Total release size: 66.1 kB

Release files / sc.social.viewcounter-1.0.7.tar.gz

Download URL sc.social.viewcounter-1.0.7.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e0a191caefa2f4fade531404345c5b488e998c7f7272e92760e45aa1811813a2
BLAKE2b-256 checksum
How to use checksums
459300f71fd2df16d76642e378460e0eaa835bb17a6c210729543e7191ef1d3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sc.social.viewcounter-1.0.7-py2.4.egg

Download URL sc.social.viewcounter-1.0.7-py2.4.egg
Size 43.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
b949e1ee22c4bff75171bb8ae617d7cfe63612b251cffffa7bae70fb64f28aa7
BLAKE2b-256 checksum
How to use checksums
0477ab93d7d634bd5c60440568b7439c71ced1afa58a61f27167bc5ae4380ea6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page