[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/publisher/browser/viewmeta.py
dict() supports keyword arguments which it turns into a dictionary
Philipp von Weitershausen
philikon at philikon.de
Fri Jun 25 07:04:30 EDT 2004
Log message for revision 25980:
dict() supports keyword arguments which it turns into a dictionary
-=-
Modified: Zope3/trunk/src/zope/app/publisher/browser/viewmeta.py
===================================================================
--- Zope3/trunk/src/zope/app/publisher/browser/viewmeta.py 2004-06-25 04:00:46 UTC (rev 25979)
+++ Zope3/trunk/src/zope/app/publisher/browser/viewmeta.py 2004-06-25 11:04:30 UTC (rev 25980)
@@ -184,16 +184,13 @@
# Note that a class might want to access one of the defined
# templates. If it does though, it should use getView.
-def opts(**kw):
- return kw
-
class pages:
def __init__(self, _context, for_, permission,
layer='default', class_=None,
allowed_interface=None, allowed_attributes=None,
):
- self.opts = opts(for_=for_, permission=permission,
+ self.opts = dict(for_=for_, permission=permission,
layer=layer, class_=class_,
allowed_interface=allowed_interface,
allowed_attributes=allowed_attributes,
More information about the Zope3-Checkins
mailing list