[Checkins] SVN: zc.sourcefactory/trunk/ Fix for having Zope 2 not
be noisy.
Christian Theune
ct at gocept.com
Fri Sep 14 06:12:15 EDT 2007
Log message for revision 79631:
Fix for having Zope 2 not be noisy.
Changed:
U zc.sourcefactory/trunk/CHANGES.txt
U zc.sourcefactory/trunk/src/zc/sourcefactory/source.py
-=-
Modified: zc.sourcefactory/trunk/CHANGES.txt
===================================================================
--- zc.sourcefactory/trunk/CHANGES.txt 2007-09-14 09:44:19 UTC (rev 79630)
+++ zc.sourcefactory/trunk/CHANGES.txt 2007-09-14 10:12:15 UTC (rev 79631)
@@ -5,6 +5,10 @@
After 0.2.1
===========
+ - Added class-level defaults for attributes that are declared in the
+ interfaces to not have the Zope 2 security machinery complain about
+ them.
+
0.2.1 - 2007-07-10
==================
Modified: zc.sourcefactory/trunk/src/zc/sourcefactory/source.py
===================================================================
--- zc.sourcefactory/trunk/src/zc/sourcefactory/source.py 2007-09-14 09:44:19 UTC (rev 79630)
+++ zc.sourcefactory/trunk/src/zc/sourcefactory/source.py 2007-09-14 10:12:15 UTC (rev 79631)
@@ -28,6 +28,8 @@
zope.interface.implements(zc.sourcefactory.interfaces.IFactoredSource)
+ factory = None
+
def __init__(self, factory):
self.factory = factory
@@ -39,6 +41,7 @@
return len(list(self._get_filtered_values()))
def __contains__(self, value):
+ # This is potentially expensive!
return value in self._get_filtered_values()
def _get_filtered_values(self):
@@ -54,6 +57,8 @@
zope.interface.implements(zc.sourcefactory.interfaces.IContextualSource)
+ context = None
+
def __init__(self, factory, context):
self.factory = factory
self.context = context
More information about the Checkins
mailing list