Skip to content

mxm, IT's mad science

Sections
Personal tools
You are here: Home » Products » Open Source » mxmCounter package for Zope » No counters.dict
Downloads
You can download mxm products here.

Due to it's technical and international nature, this section is in english.

Max M Has a blog too.

og er glad for mad

 

Comment

Above in this comment thread: mxmCounter - A Simple Zope Hit Counter

No counters.dict

Posted by Anonymous User at 2004-03-07 03:39 PM
First of all: nice product. Very useful, at least to me. But i have a little problem:

On our server there's no "counters.dict" created. So after every restart, the counters are lost. We use the following configuration:

Zope Version
(Zope 2.6.4 (source release, python 2.1, linux2), python 2.2.3, linux2)
Python Version
2.2.3+ (#1, Jan 16 2004, 08:08:58) [GCC 3.3.3 20040110 (prerelease) (Debian)]

I installed mxmCounter in the zope root.
On a system with the same database but under W2k it works fine.

Have you tried to set the save interval to 1?

Posted by Anonymous User at 2004-03-09 04:18 PM
It should not make that much difference though. As the counters.dict should get saved when you add the product to a folder.

Are you running from INSTANCE_HOME

Posted by maxm at 2004-03-09 04:22 PM
Or are you running your Zope server directly from the Zope install?

I get the path to the counters.dict from:

file_name = str(Globals.data_dir) + os.sep + 'counters.dict'

That might be different if you are not using an INSTANCE_HOME

Problem solved

Posted by Anonymous User at 2004-03-11 10:54 AM
It was a problem with the permissions. Zope was not allowed to write in the var directory except for data.fs and the such. mxmCounter now works just fine. Any idea how to prevent counting access from robots?