From 47319d25e8fd601a308250ec965a61d5a792be5f Mon Sep 17 00:00:00 2001 From: helmutm Date: Thu, 15 Feb 2007 16:09:05 +0000 Subject: [PATCH] change ContentAdding to Adding (Zope 3.3 compatibility) git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1583 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/node.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/browser/node.py b/browser/node.py index 96cd7ae..71bdb0b 100644 --- a/browser/node.py +++ b/browser/node.py @@ -28,7 +28,8 @@ from zope.app import zapi from zope.app.annotation.interfaces import IAnnotations from zope.app.catalog.interfaces import ICatalog from zope.app.container.browser.contents import JustContents -from zope.app.container.browser.adding import ContentAdding +#from zope.app.container.browser.adding import ContentAdding +from zope.app.container.browser.adding import Adding from zope.app.event.objectevent import ObjectCreatedEvent, ObjectModifiedEvent from zope.app.pagetemplate import ViewPageTemplateFile from zope.app.security.interfaces import IUnauthenticatedPrincipal @@ -214,6 +215,8 @@ class NodeView(BaseView): prefix = super(NodeView, self.menu).headTitle + ' - ' else: prefix = '' + if self.virtualTarget: + return prefix + self.virtualTarget.headTitle return prefix + super(NodeView, self).headTitle @Lazy @@ -508,7 +511,7 @@ class ConfigureView(NodeView): yield BaseView(o, request) -class NodeAdding(ContentAdding): +class NodeAdding(Adding): def addingInfo(self): info = super(NodeAdding, self).addingInfo()