[Zope] - Can't make the DTML example work ;-(
Pavlos Christoforou
pavlos@gaaros.msrc.sunysb.edu
Sat, 19 Dec 1998 17:42:08 -0500 (EST)
On Sat, 19 Dec 1998, Kent Polk wrote:
> Hi Pavlos (Pavlos Christoforou), in <Pine.LNX.3.96.981219144251.20832C-100000@gaaros.msrc.sunysb.edu> on Dec 19 you wrote:
>
> > When I tried it long ago I did:
> > <!--#call expr="_['counter']=_['counter']+1"-->
> > I believe it worked but I can't remember for sure
> >
>
> And I cheated. Used External methods. Two reasons :
>
> 1) it was easier to figure out
> 2) I could apply host restrictions on the increment
> (I didn't want certain hosts or users to increment it.)
This is how I do it too (for reason (1))!
In fact my Counter class creates a counter for each page and also
increments a global variable, so I can see how many hits each individual
page receives.
Pavlos