Skip to content

Commit

Permalink
Fix DeprecationWarnings.
Browse files Browse the repository at this point in the history
mauritsvanrees committed Jan 20, 2025
1 parent 206978a commit ef668f9
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/4090.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix DeprecationWarnings. [maurits]
4 changes: 2 additions & 2 deletions plone/app/event/base.py
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
from datetime import datetime
from datetime import timedelta
from DateTime import DateTime
from persistent.dict import PersistentDict
from persistent.mapping import PersistentMapping
from plone.app.event.interfaces import ISO_DATE_FORMAT
from plone.base.i18nl10n import ulocalized_time as orig_ulocalized_time
from plone.base.interfaces import INavigationRoot
@@ -940,7 +940,7 @@ def __setattr__(self, name, value):
self.__dict__[name] = value
else:
if self._data is None:
self._data = PersistentDict()
self._data = PersistentMapping()
annotations = IAnnotations(self.context)
annotations[self.ANNOTATION_KEY] = self._data
self._data[name] = value

0 comments on commit ef668f9

Please sign in to comment.