[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-cmf
Subject: [Zope-CMF] PortalObject, PortalFolder, SkinnedFolder and __call__
From: Christian Heimes <christian () cheimes ! de>
Date: 2005-06-21 13:22:41
Message-ID: d993vj$nip$4 () sea ! gmane ! org
[Download RAW message or body]
While I was working on the CMF 1.5 integration into AT and
ATContentTypes for Plone 2.1 I had some issues with the view on folders.
After some digging I found these interesting results:
CMFCore.PortalObject defines __call__ to use method aliases and
_getViewFor() as fallback, view = __call__ and index_html = None.
CMFDefault.SkinnedFolder defines __call__ to use _getViewFor(), view =
__call__ and index_html = None
CMFCore.PortalFolder doesn't hook into index_html/__call__ publishing at
all.
What's the reason PortalFolder doesn't define __call__ at all? Shouldn't
it use __call__ to get the view from method aliases or _getViewFor() as
fallback?
Why does SkinnedFolder still uses the old and deprecated way as default
way to get the view and why does it ignore method aliases completly? IMO
SkinnedFolder.__call__ is buggy and wasn't fixed when method aliases
were introduced.
Christian
_______________________________________________
Zope-CMF maillist - Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf
See http://collector.zope.org/CMF for bug reports and feature requests
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic