[Zope3-dev] Question and maybe enhancement of the HomeFolderManager

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Apr 20 08:00:05 EDT 2005


On Wednesday 20 April 2005 07:01, Florian Lindner wrote:
> when I want to use my own Folder implementation as a homefolder I have two
> possibilities at the moment:
>
> 1) Disable autoCreate and create the homefolder myself.
> 2) Write a completely own implementation of IHomeFolderManager, use the
> existing code, only change the line self.homeFolderBase[name] = Folder() in
> assignHomeFolder(..) to something which creates my own IContainer
> implementation
>
> Is this correct?

Yes.

> My enhancement idea: Make it possible in the utility management site to
> select the object type to create. Just display a list of all classes (or
> all classes derived from IContained) and let the user select one.
>
> Is this possible to implement?

Of course, you simply have to look up all interfaces that provide IContentType 
and inherit somewhere IContainer. This is pretty easy to do. Then you look up 
factories that will return objects that implement those content types.

Note that the home folder was always just meant to be a demo demonstrating the 
possibilities.

> ATM my knowledge is not sufficient to implement this, so for now I'll go
> the way number 2 and file a collector issue. Maybe I'll be able to do this
> later.
>
> Ok?

Sure.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list