accept empty 'lastUpdated', set storageParameters on update
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3988 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
31051a94ed
commit
e20e35c4fd
1 changed files with 6 additions and 3 deletions
|
@ -95,10 +95,13 @@ class ExternalCollectionAdapter(AdapterBase):
|
||||||
# may be it would be better to return a file's hash
|
# may be it would be better to return a file's hash
|
||||||
# for checking for changes...
|
# for checking for changes...
|
||||||
oldFound.append(addr)
|
oldFound.append(addr)
|
||||||
if mdate and mdate > self.lastUpdated:
|
if self.lastUpdated is None or (mdate and mdate > self.lastUpdated):
|
||||||
obj = old[addr]
|
obj = old[addr]
|
||||||
# regenerate scale variant for media asset
|
# update settings and regenerate scale variant for media asset
|
||||||
adapted(obj).externalAddress = addr
|
adobj = adapted(obj)
|
||||||
|
directory = provider.getDirectory(self)
|
||||||
|
adobj.storageParams=dict(subdirectory=directory)
|
||||||
|
adobj.externalAddress = addr
|
||||||
# force reindexing
|
# force reindexing
|
||||||
notify(ObjectModifiedEvent(obj))
|
notify(ObjectModifiedEvent(obj))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue