changeset 2cf0f566532f in modules/product_image:default
details: 
https://hg.tryton.org/modules/product_image?cmd=changeset&node=2cf0f566532f
description:
        Ensure that objects in the Pool has __slots__

        issue10719
        review375361002
diffstat:

 product.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 554b738c5f98 -r 2cf0f566532f product.py
--- a/product.py        Sun Sep 05 14:40:15 2021 +0200
+++ b/product.py        Thu Sep 23 23:12:35 2021 +0200
@@ -27,6 +27,7 @@
 
 
 class ImageURLMixin:
+    __slots__ = ()
     __image_url__ = None
     images = None
     image_url = fields.Function(fields.Char("Image URL"), '_get_image_url')
@@ -97,6 +98,7 @@
 
 
 class ImageMixin:
+    __slots__ = ()
     image = fields.Binary(
         "Image", file_id=file_id, store_prefix=store_prefix, required=True)
     image_id = fields.Char("Image ID", readonly=True)

Reply via email to