Commit 54362033 authored by Hanno Schlichting's avatar Hanno Schlichting

Cleanup and remove the customized __init__

parent c118e1e6
...@@ -20,7 +20,6 @@ $Id$ ...@@ -20,7 +20,6 @@ $Id$
""" """
import os import os
from inspect import ismethod from inspect import ismethod
import warnings
from zope import component from zope import component
from zope.interface import implements from zope.interface import implements
...@@ -192,23 +191,6 @@ class IFiveViewDirective(IViewDirective): ...@@ -192,23 +191,6 @@ class IFiveViewDirective(IViewDirective):
class view(zope.app.publisher.browser.viewmeta.view): class view(zope.app.publisher.browser.viewmeta.view):
# Let the permission default to zope.Public and not be required
# We should support this, as more users are expecting it to work.
def __init__(self, _context, for_, permission=None,
name='', layer=IDefaultBrowserLayer, class_=None,
allowed_interface=None, allowed_attributes=None,
menu=None, title=None, provides=Interface,
):
if permission is None:
permission = 'zope.Public'
super(view, self).__init__(
_context, for_, permission, name=name, layer=layer,
class_=class_, allowed_interface=allowed_interface,
allowed_attributes=allowed_attributes, menu=menu, title=title,
provides=provides)
def __call__(self): def __call__(self):
(_context, name, for_, permission, layer, class_, (_context, name, for_, permission, layer, class_,
allowed_interface, allowed_attributes) = self.args allowed_interface, allowed_attributes) = self.args
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment