Commit 1e9bb413 authored by Elouan Martinet's avatar Elouan Martinet
Browse files

[storages] Use late operations for events

parent 9885a91094a7
......@@ -28,7 +28,7 @@ import boto3
from cubicweb import Binary, set_log_methods
from cubicweb.server.sources.storages import Storage
from cubicweb.server.edition import EditedEntity
from cubicweb.server.hook import DataOperationMixIn, Operation
from cubicweb.server.hook import DataOperationMixIn, LateOperation
class S3Storage(Storage):
......@@ -167,7 +167,7 @@ class S3Storage(Storage):
return key + self.suffix
class S3AddFileOp(DataOperationMixIn, Operation):
class S3AddFileOp(DataOperationMixIn, LateOperation):
containercls = list
def postcommit_event(self):
......@@ -192,7 +192,7 @@ class S3AddFileOp(DataOperationMixIn, Operation):
eid, attr, storage.bucket, suffixed_key)
class S3DeleteFileOp(DataOperationMixIn, Operation):
class S3DeleteFileOp(DataOperationMixIn, LateOperation):
containercls = list
def postcommit_event(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment