Commit a508fb67 authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

Results no longer override init method which takes more args

parent 21a70300
...@@ -21,7 +21,7 @@ class ComputedAttributeGetItemCompatibleMixin(ZSQLBrain): ...@@ -21,7 +21,7 @@ class ComputedAttributeGetItemCompatibleMixin(ZSQLBrain):
"""A brain that supports accessing computed attributes using __getitem__ """A brain that supports accessing computed attributes using __getitem__
protocol. protocol.
""" """
def __init__(self): def __init__(self, *args, **kw):
# __getitem__ returns the computed attribute directly, but if we access # __getitem__ returns the computed attribute directly, but if we access
# brain['node_title'] we expect to have the attribute after computation, # brain['node_title'] we expect to have the attribute after computation,
# not the ComputedAttribute attribue instance. Defining a __getitem__ # not the ComputedAttribute attribue instance. Defining a __getitem__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment