[Checkins]
SVN: z3c.reference/branches/flash/src/z3c/reference/schema.py
Fix __init__
Roger Ineichen
roger at projekt01.ch
Tue Sep 4 09:46:18 EDT 2007
Log message for revision 79459:
Fix __init__
Changed:
U z3c.reference/branches/flash/src/z3c/reference/schema.py
-=-
Modified: z3c.reference/branches/flash/src/z3c/reference/schema.py
===================================================================
--- z3c.reference/branches/flash/src/z3c/reference/schema.py 2007-09-04 12:29:21 UTC (rev 79458)
+++ z3c.reference/branches/flash/src/z3c/reference/schema.py 2007-09-04 13:46:12 UTC (rev 79459)
@@ -1,3 +1,21 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+$Id$
+"""
+__docformat__ = 'restructuredtext'
+
from zope import schema,interface
from interfaces import *
import types
@@ -5,8 +23,8 @@
class ViewReferenceField(schema.Object):
interface.implements(IViewReferenceField)
- def __init__(self, viewName=None, **kw):
- self.viewName = viewName
+ def __init__(self, **kw):
+ self.viewName = kw.pop('viewName', None)
super(ViewReferenceField,self).__init__(IViewReference,
**kw)
More information about the Checkins
mailing list