[Zope-Checkins] SVN: Zope/branches/2.12/src/Products/Five/browser/metaconfigure.py Cleanup and remove the customized __init__
Hanno Schlichting
hannosch at hannosch.eu
Sat Jul 10 06:21:26 EDT 2010
Log message for revision 114491:
Cleanup and remove the customized __init__
Changed:
U Zope/branches/2.12/src/Products/Five/browser/metaconfigure.py
-=-
Modified: Zope/branches/2.12/src/Products/Five/browser/metaconfigure.py
===================================================================
--- Zope/branches/2.12/src/Products/Five/browser/metaconfigure.py 2010-07-10 10:13:30 UTC (rev 114490)
+++ Zope/branches/2.12/src/Products/Five/browser/metaconfigure.py 2010-07-10 10:21:25 UTC (rev 114491)
@@ -20,7 +20,6 @@
"""
import os
from inspect import ismethod
-import warnings
from zope import component
from zope.interface import implements
@@ -192,23 +191,6 @@
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):
(_context, name, for_, permission, layer, class_,
allowed_interface, allowed_attributes) = self.args
More information about the Zope-Checkins
mailing list