[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/catalog/attribute.py
Let the Attribute mixin accept other arguments and pass them
to the super()
Gary Poster
gary at zope.com
Sat Jul 16 23:17:24 EDT 2005
Log message for revision 33334:
Let the Attribute mixin accept other arguments and pass them to the super()
call, so that, for instance, you can provide a custom lexicon to a text index.
Changed:
U Zope3/trunk/src/zope/app/catalog/attribute.py
-=-
Modified: Zope3/trunk/src/zope/app/catalog/attribute.py
===================================================================
--- Zope3/trunk/src/zope/app/catalog/attribute.py 2005-07-16 20:00:01 UTC (rev 33333)
+++ Zope3/trunk/src/zope/app/catalog/attribute.py 2005-07-17 03:17:24 UTC (rev 33334)
@@ -108,8 +108,9 @@
default_field_name = None
default_interface = None
- def __init__(self, field_name=None, interface=None, field_callable=False):
- super(AttributeIndex, self).__init__()
+ def __init__(self, field_name=None, interface=None, field_callable=False,
+ *args, **kwargs):
+ super(AttributeIndex, self).__init__(*args, **kwargs)
if field_name is None and self.default_field_name is None:
raise ValueError, "Must pass a field_name"
if field_name is None:
More information about the Zope3-Checkins
mailing list