[Zope] Newbie Question about variables in DTML
Michel Pelletier
michel@digicool.com
Mon, 26 Jul 1999 13:06:31 -0400
> -----Original Message-----
> From: Donald Holten [mailto:donner@biophysics.lanl.gov]
> Sent: Monday, July 26, 1999 12:56 PM
> To: zope@zope.org
> Subject: [Zope] Newbie Question about variables in DTML
>
>
> Hi! I want to get a value from the database, increment
> it by one, and
> store it back into the database. Is there a way to do this
> purely in DTML, or
> do I have to use External Methods? Thanks!
> Donner
>
What kind of database? The Zope one? Strange as this sounds, it would
probably be a better idea to store a hit counterish thingy in a
realtional database, because the Zope database is transactional, and
keep *all* previous versions of objects in the database (this is so you
can 'undo') therefor, if you incriment an object on every hit, your
database will grow a little on every hit. You can also use an external
method to store hit counts in a file.
-Michel
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>