Re: Silva Metadata: support for delegates?
Clemens Klein-Robbenhaar <crobbenhaar-S0/[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Jan-Wijbrand, > Clemens Klein-Robbenhaar wrote: > >> Or are there any other ideas how one can bind different metadata sets >> to the same object ? > > > I'm not sure how the story about 'delegates' relate to having defined > multiple metadata sets to an object of a certain type. We do this by > setting the correct typemapping. But maybe you want to do something > different here? > Sorry, I have been inaccurate here. What I meant is to have different values for one content object and one metadata-set, but different languages. E.g. the "silva-content" Set contains the declarations for "title" and "shortitle". For Folders in the "Silva Local Content" product I would like to have different values for the title and the shorttitle in each supported language. Having a hidden "delegate" object for each language in the Folder and binding the metadata to that delegate seems to solve that problem. So actually the question is if it is ok to put support for that feature into SilvaMetadata in that specific method, though that feature is seemingly not used by Silva, and of course there is some risk I may break something with that patch. If there would be a different way to solve my problem without having to mess with the internals of SilvaMetadata I would happily throw away my patch. If there is no other way but You feel its too risky to add that patch I can stil try to get away with monkey patching is for my specifig needs, though that's not very nice ... Cheers, Clemens