Am 07.04.2010, 13:47 Uhr, schrieb Jens Vagelpohl <j...@dataflake.org>:

> I think I would change the cookie crumbler to expect both: Either a page
> with an ID that the cookie crumbler can traverse to (which is what it
> does right now), or an ID for a view that you could traverse to using
> the "@@" notation.

Sort of:

try:
        page.getId()
except AttributeError:
        page.restrictedTraverse() # or getMultiAdapter((context, request), 
name=)

I'm a bit hazy on traversal. Actually I'm a bit useless on it!

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Reply via email to