Skip to content
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

DM-15599: Stop using boost persistence in afw #58

Merged
merged 3 commits into from Sep 11, 2018
Merged

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented Aug 30, 2018

I am not sure why this change was required.

@r-owen r-owen changed the title Stop using boost persistence in afw except for PropertyList DM-15599: Stop using boost persistence in afw except for PropertyList Aug 30, 2018
@r-owen r-owen changed the title DM-15599: Stop using boost persistence in afw except for PropertyList DM-15599: Stop using boost persistence in afw Sep 7, 2018
@@ -377,6 +377,8 @@ def register(self, key, subclass):
isStatic = isinstance(obj, staticmethod)
if isBuiltin or isStatic:
if hasattr(self, name):
if name != "__init__subclass__":
continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to avoid this special-casing if we can. Can you say anything more about the conditions under which it was needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved it to the if name in "__new__": test, and that does appear to be a new method we can expect on objects. Please have another look.

in TemplateMeta.register. The old message did not provide
enough values to `format`, resulting in a strange and
irrelevant error. While I was at it I tried to make the
message clearer and more informative.
@r-owen r-owen force-pushed the tickets/DM-15599 branch 2 times, most recently from 0dc0ffd to e43f680 Compare September 10, 2018 22:40
Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for me. I was hoping we could use INTRINSIC_SPECIAL_ATTRIBUTES, but it looks like that wouldn't actually do the job.

in TemplateMeta.register. The problem only showed up for MaskX
because that was the only subclass registered with non-None
`TEMPLATE_DEFAULTS`
@r-owen r-owen merged commit f4ebffa into master Sep 11, 2018
@timj timj deleted the tickets/DM-15599 branch January 3, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants