[Yanel-dev] import site and introspection
Michael Wechner
michael.wechner at wyona.com
Wed Mar 14 16:59:31 CET 2007
Josias Thöny wrote:
> Michael Wechner wrote:
>
>> Andreas Wuest wrote:
>>
>>> Hi Josias
>>>
>>> On 6.3.2007 1:10 Uhr, Josias Thöny wrote:
>>>
>>>> Hi all,
>>>>
>>>> While working on the import site feature I noticed a problem:
>>>> After a site has been crawled and the dump has been imported into
>>>> yanel, the pages are not editable because the introspection files
>>>> don't exist.
>>>> Is it really necessary to create an introspection file for each
>>>> imported file? Or is there a better solution?
>>>
>>>
>>>
>>> Personally, I would all be for dynamically generated introspection
>>> objects, based on some meta-data (e.g. isModifiable, etc., paired
>>> with some sane fall-back values if a specific property is not present).
>>>
>> me too, but we need to discuss how it's best to accomplish this. For
>> instance there should always be the check if an introspection exists
>> in case to overwrite the generic case (this could be done throught
>> the chain of responsibility).
>
>
> What about this:
> The page /en/about.html contains a link to its introspection file.
> If this link is "/en/about.html?yanel.usecase=introspection", a
> dynamically generated introspection file will be returned.
> If the link is something like "/en/introspection-about.xml", it points
> to a static introspection file in the repository.
>
> Could there be any problem with static export because of the
> request-parameter?
yes, that would be a problem, but for the moment it probably makes sense
to do it as you describe it above.
Will review your patch shortly ;-)
Cheers
Michi
>
> The other option would be to use a naming convention for the
> introspection file, and if the introspection file does not exist, a
> default one will be found by pattern matching.
> The drawback of this approach is that it does not allow to use
> different default introspection files for each resource type. I mean,
> with url pattern matching it's not possible to say "all file-resources
> should use introspection-file.xml and all xml-resources should use
> introspection-xml.xml".
>
> WDYT?
>
> josias
>
>>
>> I think it's best if we add a new item to the roadmap and specify it
>> first ;-)
>>
>> Cheers
>>
>> Michi
>>
>>
>
>
>
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://wyona.com/cgi-bin/mailman/listinfo/yanel-development
>
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner at wyona.com michi at apache.org
+41 44 272 91 61
More information about the Yanel-development
mailing list