66e4411cd9850eaf565d5650ec9c7fe8b7bc78c6,descarteslabs/catalog/named_catalog_base.py,NamedIdAttribute,__set__,#NamedIdAttribute#Any#Any#Any#,18
Before Change
"separated by a colon, not "{}"".format(value)
)
super(NamedIdAttribute, self).__set__(obj, value, validate=validate)
// Some older images have colons in their names, so for existing data being
// loaded from the service we can"t make the assumption that we can recover
// the name from the id.
After Change
)
// Only update if it differs
if value != obj.id:
super(NamedIdAttribute, self).__set__(obj, value, validate=validate)
// Some older images have colons in their names, so for existing data being
// loaded from the service we can"t make the assumption that we can recover
// the name from the id.
if not obj._saved:
product_id = value[:last_colon]
name = value[last_colon + 1 :]
// Only update if it differs
if product_id != obj.product_id:
obj._get_attribute_type("product_id").__set__(
obj, product_id, validate=validate
)
if name != obj.name:
obj._get_attribute_type("name").__set__(obj, name, validate=validate)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: descarteslabs/descarteslabs-python
Commit Name: 66e4411cd9850eaf565d5650ec9c7fe8b7bc78c6
Time: 2019-12-30
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/named_catalog_base.py
Class Name: NamedIdAttribute
Method Name: __set__
Project Name: descarteslabs/descarteslabs-python
Commit Name: 66e4411cd9850eaf565d5650ec9c7fe8b7bc78c6
Time: 2019-12-30
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/named_catalog_base.py
Class Name: NamedIdAttribute
Method Name: __set__
Project Name: descarteslabs/descarteslabs-python
Commit Name: 66e4411cd9850eaf565d5650ec9c7fe8b7bc78c6
Time: 2019-12-30
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/named_catalog_base.py
Class Name: NameAttribute
Method Name: __set__
Project Name: descarteslabs/descarteslabs-python
Commit Name: 66e4411cd9850eaf565d5650ec9c7fe8b7bc78c6
Time: 2019-12-30
Author: jaap@descarteslabs.com
File Name: descarteslabs/catalog/named_catalog_base.py
Class Name: ProductIdAttribute
Method Name: __set__