[Zope-CMF] Automatic ID generation -- > Title

Ignacio Valdes ivaldes@hal-pc.org
Mon, 23 Apr 2001 21:33:23 -0500


Ignacio Valdes wrote:

> Hello all,
>
> How does one make Zope/CMF generate unique object portal_type id's
> automatically instead of the user defined one?   I want to use the
> metadata Title field instead for Folder and portal_type instance names
> because portal_type id's do not support special characters:'? etc. This
> would enable one to use the file system structure in an application with
> ease. Getting real close to having my app done.
>
> -- IV
>

I've tried creating a python script called generateID with the following one line:

return "%s" (DateTime().timeTime())

I think this is on the right track, but it returns the same number every time.
Smelling the finish line...

-- IV