I know that Invitation's will only ever be removed from a store by
having their accept or reject method called. The purpose of this
bug is to make this possible:
def accept(self):
# Perform logic to accept invitation. Store.of(self).remove()
def reject(self): Store.of(self).remove()
I hadn't thought of the coherency issue you mention, because it isn't
something that would ever happen in the case I have, but I can see that being
a big enough problem to avoid providing the feature.
The example I have is with code that checks an invitation:
class Invitation(object):
def __init__(self):
raise_ event(Invitiati onCreated)
def accept(self):
Store. of(self) .remove( )
raise_ event(Invitiati onRemoved)
# Perform logic to accept invitation.
def reject(self):
Store. of(self) .remove( )
raise_ event(Invitiati onRemoved)
I know that Invitation's will only ever be removed from a store by
having their accept or reject method called. The purpose of this
bug is to make this possible:
class Invitation(object):
def __init__(self):
raise_ event(Invitiati onCreated)
def __storm_ remove_ _(self) :
raise_ event(Invitiati onRemoved)
def accept(self):
Store. of(self) .remove( )
# Perform logic to accept invitation.
def reject(self):
Store. of(self) .remove( )
I hadn't thought of the coherency issue you mention, because it isn't
something that would ever happen in the case I have, but I can see that being
a big enough problem to avoid providing the feature.