Thorsten Scherler wrote:
Hi all,

it is time to introduce UUID into lenya. Recent threads about mapping,
external content-dir and document api made one thing cristal clear. We
need to be more flexible in getting content.

+1

The last example is moving the meta data from a custom mapping. This
breaks custom mappings since the file will be written to the location
defined by the mapper.

This is not quite true. The location of meta files is now hard-coded
in the DefaultDocument class. This is not nice, but at least there's
a separation between document locations and meta data locations.


The solution is to have *one* place to store meta data and to look it up
from this place.

This one place is now defined by DefaultDocument.
The implementation is not nice, I agree.


That only makes sense when we introduce UUIDs since
otherwise we will run again in the egg chicken problem of meta data,
file and mapper.

This problem is solved. But what remains is the problem that meta data
sources have to be moved when document locations change.


How can we implement it?

I'd start with adding UUIDs to the sitetree and use them for content lookup.
In a first step we could use the document IDs, because that wouldn't
require too many changes to the code.

-- Andreas

--
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                     [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to