You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2005/06/17 10:54:02 UTC
Re: Unique IDs [WAS:Re: bugfix or enhancement? losing scheduler jobs
after paste, rename url]
J. Wolfgang Kaltz wrote:
> Andreas Hartmann schrieb:
>
>> Michael Wechner wrote:
>>
>> [...]
>>
>>> I think you can still store the documents in a structured way, but
>>> each document
>>> has a unique ID which is mapped onto the path within the
>>> hierarchy/structure, e.g. by
>>> hashmap. This unique ID (uid) is then being used within the Scheduler
>>> or for references
>>> for instance and not the path itself.
>
>
> IMO this is mostly a usability problem at document creation time. Right
> now when the user creates a new document in the default publication, she
> has to guess a document id which does not exist in this branch. This is
> not ideal but still acceptable, as typically there will only be a few
> documents within that branch. But if we want the user to provide a
> publication-wide unique id at creation, Lenya will need to propose such
> an id in the creation mask (a sort of auto-increment).
IMO the unique ID should be opaque to the user.
It can be auto generated on document creation and doesn't have to be
human-readable.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: Unique IDs [WAS:Re: bugfix or enhancement? losing scheduler jobs
after paste, rename url]
Posted by Michael Wechner <mi...@wyona.com>.
Andreas Hartmann wrote:
>
> IMO the unique ID should be opaque to the user.
> It can be auto generated on document creation and doesn't have to be
> human-readable.
right, whereas we used the timestamp which gives it a certain meaning.
Michi
>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org