-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'ImageScalingQueueDataManager' object has no attribute 'savepoint' #93
Comments
@zopyx Awesome! Thanks for testing and reporting. (Not the first transaction manager where I forget the existence of savepoints...) |
@datakurre is there a simple workaround for this issue or a way to ignore the missing savepoint() implementation safely? |
@zopyx In the case of CMDEditions I don't know any, and I'm sorry that I have not been able to work on this yet. That said a very minimal savepoint implementation should be enough. A quess for the required implementation: ImageScalingQueueDataManager should implement ISavepointDatamanager with method @implementer(IDataManagerSavepoint)
class NoOpSavepoint(object):
def rollback(self):
return
@implementer(ISavepointDataManager)
class ImageScalingQueueDataManager(object):
...
def savepoint(self):
return NoOpSavepoint() plone.namedfile/plone/namedfile/queue.py Line 294 in e755a8a
According to https://github.com/zopefoundation/transaction/blob/master/transaction/interfaces.py |
@datakurre Any plans of turning your branch into a PR? Or is more work needed? The transaction savepoint code from your last comment seems good. It works fine when I try the same fix for |
Plans yes, scheduled time no :( For real pull this needs rebasing and tests. But I have been running this for a few production sites since the development, and I definitely want to have this also in the future.
Thanks for confirming the savepoint. It is also encouraging to know that there’s some interest for this.
…On 17. Dec 2020, 18.27 +0200, Maurits van Rees ***@***.***>, wrote:
@datakurre Any plans of turning your branch into a PR? Or is more work needed?
The transaction savepoint code from your last comment seems good. It works fine when I try the same fix for zope.sendmail.delivery, which suffers from the same problem in combination with CMFEditions. BTW, that is for the same customer as Andreas reported this namedfile problem for.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@datakurre
The queue scaling branch throws this exception in a few random cases:
The text was updated successfully, but these errors were encountered: