[Zope-CMF] More browser views
Charlie Clark
charlie.clark at clark-consulting.eu
Wed Apr 7 08:04:39 EDT 2010
Am 07.04.2010, 13:47 Uhr, schrieb Jens Vagelpohl <jens at 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
More information about the Zope-CMF
mailing list