[Zope-CMF] [dev] name lookup in skin: some questions
yuppie
y.2004_ at wcm-solutions.de
Wed Jun 2 08:53:24 EDT 2004
Hi!
After adding a print statement to SkinnableObjectManager.__getattr__, I
get this list of name lookups in the skin if calling index_html of a new
CMF Site root object:
index_html
im_func
main_template
main_template
role_map
allow_discussion
sort-on
sort-limit
listActionInfos
listActions
expanded_title
expanded_title
zpt_stylesheet.css
zpt_stylesheet.css
CalendarStyle.css
truncID
truncID
calendarBox
breadcrumbs
breadcrumbs
index_html_utils
index_html_utils
show_content_types
show_link_types
show_folder_types
TitleOrId
TitleOrId
sort-order
caching_policy_manager
1.) Wouldn't it be better to exclude names like 'im_func' and 'role_map'
from skin lookup?
2.) I didn't debug this. Does anybody know why skin methods are always
looked up twice? Would it make sense to cache all lookups within a
request, not just those that failed?
Cheers,
Yuppie
More information about the Zope-CMF
mailing list