Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
laulaz committed Oct 25, 2023
1 parent 3edcedd commit b45aa42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plone/app/imagecropping/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ def _invalidate_scale(self, fieldname, scale):
scale_storage = AnnotationStorage(self.context, int(time.time()))
scale_storage.clear()

def remove(self, fieldname, scale, surpress_event=False):
def remove(self, fieldname, scale, supress_event=False):
# remove info from annotation
key = self._key(fieldname, scale)
if key in list(self._storage.keys()):
del self._storage[key]
self._invalidate_scale(fieldname, scale)
if not surpress_event:
if not supress_event:
notify(CroppingInfoRemovedEvent(self.context))
notify(Purge(self.context))
self.context.reindexObject()
Expand All @@ -41,7 +41,7 @@ def _storage(self):
return IAnnotations(self.context).setdefault(PAI_STORAGE_KEY, PersistentDict())

def store(self, fieldname, scale, box):
self.remove(fieldname, scale, surpress_event=True)
self.remove(fieldname, scale, supress_event=True)
key = self._key(fieldname, scale)
self._storage[key] = box

Expand Down

0 comments on commit b45aa42

Please sign in to comment.