Closed digitaldogsbody closed 1 year ago
Using the config pattern, I should be able to select the int-per-type AutoId config
int-per-type
An AttributeError when trying to instantiate a new object: AttributeError: 'AutoId' object has no attribute '_type_translation'
AttributeError
AttributeError: 'AutoId' object has no attribute '_type_translation'
https://github.com/iiif-prezi/iiif-prezi3/blob/main/iiif_prezi3/helpers/auto_fields.py#L85 https://github.com/iiif-prezi/iiif-prezi3/blob/main/iiif_prezi3/helpers/auto_fields.py#L94
The AutoIdConfig class has a property called translation, and this is probably what is intended to be read (via self.config.translation, similar to the usage of the base_url property)
AutoIdConfig
translation
self.config.translation
base_url
Expected behaviour:
Using the config pattern, I should be able to select the
int-per-type
AutoId configObserved behaviour:
An
AttributeError
when trying to instantiate a new object:AttributeError: 'AutoId' object has no attribute '_type_translation'
Potential bug location(s):
https://github.com/iiif-prezi/iiif-prezi3/blob/main/iiif_prezi3/helpers/auto_fields.py#L85 https://github.com/iiif-prezi/iiif-prezi3/blob/main/iiif_prezi3/helpers/auto_fields.py#L94
Any other comments:
The
AutoIdConfig
class has a property calledtranslation
, and this is probably what is intended to be read (viaself.config.translation
, similar to the usage of thebase_url
property)