[Zope-CMF] portal_catalog.getobject ?
Kent Polk
kent@goathill.org
21 Jun 2001 18:59:14 GMT
Is there a reason for not including :
# getobject inherits security assertions from ZCatalog.
def getobject(self, data_record_id_):
'''Calls ZCatalog.getobject().
'''
in CMFCore/interfaces/portal_catalog.py ?
This provides a very easy interface for directly accessing CMF
content from a CMFWiki without having to turn on dtml or requiring
an intermediate link page.
blindingly trivial dtml method example :
getbyid:
<dtml-in "portal_catalog.searchResults(id=sid)" size=1>
<dtml-var "portal_catalog.getobject(data_record_id_)()">
</dtml-in>
in the wiki page:
- "my manual":getbyid?sid=my_manual
Or is there some easier way to *directly* reference CMF items via
a catalog query in a CMF wiki page without turning on dtml support?
If not, I'd like to propose that getobject be added to
CMFCore/interfaces/portal_catalog.py.
Thanks