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
This commit is contained in:
helmutm 2007-02-15 16:09:05 +00:00
parent c6116b8941
commit 47319d25e8

View file

@ -28,7 +28,8 @@ from zope.app import zapi
from zope.app.annotation.interfaces import IAnnotations from zope.app.annotation.interfaces import IAnnotations
from zope.app.catalog.interfaces import ICatalog from zope.app.catalog.interfaces import ICatalog
from zope.app.container.browser.contents import JustContents 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.event.objectevent import ObjectCreatedEvent, ObjectModifiedEvent
from zope.app.pagetemplate import ViewPageTemplateFile from zope.app.pagetemplate import ViewPageTemplateFile
from zope.app.security.interfaces import IUnauthenticatedPrincipal from zope.app.security.interfaces import IUnauthenticatedPrincipal
@ -214,6 +215,8 @@ class NodeView(BaseView):
prefix = super(NodeView, self.menu).headTitle + ' - ' prefix = super(NodeView, self.menu).headTitle + ' - '
else: else:
prefix = '' prefix = ''
if self.virtualTarget:
return prefix + self.virtualTarget.headTitle
return prefix + super(NodeView, self).headTitle return prefix + super(NodeView, self).headTitle
@Lazy @Lazy
@ -508,7 +511,7 @@ class ConfigureView(NodeView):
yield BaseView(o, request) yield BaseView(o, request)
class NodeAdding(ContentAdding): class NodeAdding(Adding):
def addingInfo(self): def addingInfo(self):
info = super(NodeAdding, self).addingInfo() info = super(NodeAdding, self).addingInfo()