[Zope] Random ID's using ZopeDate() problems...
Bill Anderson
bill.anderson@libc.org
Fri, 05 Nov 1999 01:38:19 -0700
Jos Yule wrote:
>
> Hello!
> Ok, so i've read the how-to on generating auto ID's -
>
> <dtml-call "REQUEST.set('ts', ZopeTime())">
> <dtml-call "REQUEST.set('id', _.str(_.int(ts)))">
Got it :-)
Change the first line to the following Tested(!) code:
<dtml-call "REQUEST.set('ts',ZopeTime().strftime('%Y%m%d%H%M%S')">
I'll update the how-to to reflect this.
Bill
--
"They laughed at Columbus, they laughed at Fulton, they laughed at the
Wright brothers. But they also laughed at Bozo the Clown." -- Carl
Sagan