Skip to content

Commit

Permalink
Merge pull request #15 from plone/thet-nobobomodification
Browse files Browse the repository at this point in the history
Remove bobobase_modification_time
  • Loading branch information
jensens committed Oct 15, 2015
2 parents cf649d3 + 09f9185 commit 02ff23e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Expand Up @@ -4,7 +4,9 @@ Changelog
3.0.4 (unreleased)
------------------

- Nothing changed yet.
- No longer rely on deprecated ``bobobase_modification_time`` from
``Persistence.Persistent``.
[thet]


3.0.3 (2015-08-14)
Expand Down
4 changes: 2 additions & 2 deletions plone/namedfile/scaling.py
@@ -1,5 +1,6 @@
from Acquisition import aq_base
from AccessControl.ZopeGuards import guarded_getattr
from DateTime import DateTime
from logging import exception
from plone.namedfile.interfaces import IAvailableSizes
from plone.namedfile.interfaces import IStableImageScale
Expand All @@ -17,7 +18,6 @@
from zope.publisher.interfaces import IPublishTraverse, NotFound
from zope.app.file.file import FileChunk
from plone.protect.interfaces import IDisableCSRFProtection
from zope.interface import alsoProvides

_marker = object()

Expand Down Expand Up @@ -282,7 +282,7 @@ def modified(self):
if hasattr(context, 'modified') and callable(context.modified):
date = context.modified()
else:
date = context.bobobase_modification_time()
date = DateTime(context._p_mtime)
except AttributeError:
date = self.context.modified().millis()
return date.millis()
Expand Down

0 comments on commit 02ff23e

Please sign in to comment.