[Zope-CMF] Re: Method Aliases on CMFSite?

yuppie y.2005- at wcm-solutions.de
Wed Mar 23 06:03:51 EST 2005


Jean-Francois.Doyon at CCRS.NRCan.gc.ca wrote:
> I would like to have the "home page" of my CMF site as a skin: That is, view
> my CMF Site Root just like any other CMF type, using skins.
> 
> I've started by creating my own Portal root, subclassing CMFSite.
> 
> Then, I overloaded view and __call__ to use _getViewFor() and so on, but saw
> a deprecation warning.
> 
> So now I'm into looking into getting my CMFSite subclass to support method
> aliases ...
> 
> Unfortunately this doesn't seem straight forward :(
> 
> As best I can tell, the hook for these aliases is in DynamicType.py ... But
> it looks in the TypeInfo for the information, and CMFSite doesn't have any.

It has a TypeInfo. The portal type of a default CMFSite object is 
'Folder'. CMFSite has some additional features, but apart from that it 
should behave like any other 'Folder'.

Cheers, Yuppie



More information about the Zope-CMF mailing list