On Thu, 19 Feb 2009 12:49:57 +0100, Andreas Hartmann <[email protected]>
wrote:
> Florent André schrieb:
> 
> […]
> 
>>>> //Start site management ?? this code is usefull if I use the document
>>>>  manager ??
>>> Since you have already passed the path to the DocumentManager, you
> don't
>>> have to add the document to the site structure anymore.
>>
>> It seems me to understand that Lenya have 2 way to manage / create
> document
>> :
>> - the direct way throw DocumentManager
>> - the indirect way throw SiteStructure
>>
>> If I can do a suggestion, a documentation on "how to create document
> from
>> scratch" could be useful.
> 
> Yes, I also think this is too complex. The DocumentManager is the
> original approach, but now I think we should rather add the respective
> methods to the repository classes:
> 
> Area.addDocument(…)
> SiteStructure.addLink(Node node, Document document)

On the same subject, I think that it will be interesting to have this
getter/setter in the document API :

document.setVisibleInNav();

document.setMetadata();

document.setContent();

document.remove();

document.setNavTitle();

document.setTitle();

document.setParams();

This is just some ideas (without any knowledge about their possible
coding), but I think they could simplify the document creation/management.

++


> 
>> Have a cool sunny day !
> 
> Thanks, you too :)
> 
> -- Andreas
> 
> 
> --
> Andreas Hartmann, CTO
> BeCompany GmbH
> http://www.becompany.ch
> Tel.: +41 (0) 43 818 57 01
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to