def __eq__(self, other):
if isinstance(other, MambuStruct):<EOL><INDENT>try:<EOL><INDENT>if '<STR_LIT>' not in other.attrs or '<STR_LIT>' not in self.attrs:<EOL><INDENT>raise NotImplementedError<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>raise NotImplementedError<EOL><DEDENT>return other['<STR_LIT>'] == self['<STR_LIT>']<EOL><DEDENT>
Very basic way to compare to Mambu objects.

        Only looking at their EncodedKey field (its primary key on the
        Mambu DB).

.. todo:: a lot of improvements may be done here.