Commit 3fb996d4 authored by Hanno Schlichting's avatar Hanno Schlichting

Merge cleanup

parent 3168d870
......@@ -15,12 +15,10 @@
Directives to emulate the 'http://namespaces.zope.org/browser'
namespace in ZCML known from zope.app.
$Id$
"""
import os
from inspect import ismethod
import warnings
from zope import component
from zope.interface import implements
......@@ -192,23 +190,6 @@ class IFiveViewDirective(IViewDirective):
class view(zope.browserpage.metaconfigure.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, permission=None, for_=Interface,
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, permission, for_=for_, name=name, layer=layer,
class_=class_, allowed_interface=allowed_interface,
allowed_attributes=allowed_attributes, menu=menu, title=title,
provides=provides)
def __call__(self):
(_context, name, for_, permission, layer, class_,
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