it is not tested but may it works
<dtml-call "REQUEST.set('newid', _.string.atoi('0'))"
<dtml-in "objectValues('DTML Document')">
<dtml-if "_.int(id) >= newid">
<dtml-call "REQUEST.set('newid', _.int(id) + _.string.atoi('1'))">
Your new id is: <dtml-var newid>
may you have to use _.string.atoi(id) instead _.int(id)
----- Original Message -----
From: "Patrick Koetter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 16, 2000 2:59 AM
Subject: [Zope] NEWBIE: assign next free ID automatically
> I've been through the Guides, How-Tos and also some of the list-archives.
> Though I am not a programmer I finally decided to ask that question to all
> of you...
> I want to give Users the possibility to add documents in a folder
> <things_to_do> ;-).
> so far so good ... Then I want to control the IDs simply by assigning an
> to their Form.
> I found a few articles generating either randomIDs or calculating IDs from
> What is it that I want to do?
> I want to evaluate the highest ID (all are 'int') within the folder and
> assign the next highest.
> I'm sure this is easy to you...
> If there's a RTFM-document I'd be glad to read that.
> Zope maillist - [EMAIL PROTECTED]
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-dev )
Zope maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -