Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.login-monitor

How to install collective.login_monitor

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.login-monitor
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.2 Available View build log
 
License
GPL
Lastest release
version 0.2 on May 5th, 2013

Save any login operation done in your Plone site to an external database and provide a Plone interface for query the database.

Introduction

This Plone add-on is based on z3c.saconfig and SQLAlchemy, and can't provide any new feature to Plone without a propert configuration.

Keep reading for installation and configuration guide.

How to use

After the installation, any login done in your Plone will save to an external database an entry that store:

  • user id
  • a timestamp

Then a new configuration panel can bhe found in the site configuration: "Monitor user logins".

From this view you can query the database previously populated:

Control panel for login monitor

You must limit the search inside a rande of dates, and optionally limiting users to members of a group. Results of the table displayed can be export to a CSV file.

Multiple sites

If your buildout hosts multiple Plone sites, all of them will store data in the database keeping same username on different sites separated.

Installation and configuration

You must configure an access to an external DBMS. The name of the engine used must be plone_logins.

Follow an example based on sqlite (not advised for production environment).

Add rt.lastmodifier to your buildout, then provide a SQLAlchemy connection string:

System Message: ERROR/3 (<string>, line 52)

Unknown directive type "code-block".

.. code-block:: ini

    [buildout]
    ...

    [instance]
    ...
    eggs=
       ...
       collective.login_monitor

    zcml-additional =
        ...
        <configure xmlns="http://namespaces.zope.org/zope"
                  xmlns:db="http://namespaces.zope.org/db">
           <include package="z3c.saconfig" file="meta.zcml" />
           <db:engine name="plone_logins"
                      url="sqlite:///${buildout:directory}/var/filestorage/plone_logins.db"
                      setup="collective.login_monitor.prepare_model.prepare"
                      />
           <db:session name="plone_logins" engine="plone_logins" />
       </configure>

Credits

Developed with the support of:

All of them supports the PloneGov initiative.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog

0.2 (2013-04-18)

First public release

  • old code totally refactored (removed sqldict for a pure SQLAlchemy approach) [keul]
  • i18n support [keul]
0.1 (unreleased)
  • Initial release

Subscribe to package updates

Last updated May 5th, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.