GenericView bug fix: set self.__parent__ on __init__ to make security machinery happy

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1360 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2006-09-24 14:01:06 +00:00
parent f9b5b70e1d
commit f527de4f21

View file

@ -68,7 +68,7 @@ class GenericView(object):
controller = property(getController, setController)
def __init__(self, context, request):
self.context = context
self.context = self.__parent__ = context
self.request = request
#cont = self.controller # check: leads to strange AttributeError in doctest
#if cont is not None: