BUG: Adding Issues with Copying Attribute Resources
-
Attribute Resource Associations are now copied in
copyFinalized()
-
Attribute Active Categories are now copied in
copyInitialized()
-
Attribute Resource Analyses are now copied in
copyInitialized()
Also added assignment method to Analyses class. -
Properties on Resources (in particular with Attribute and Graph Resources are now copied) The issue was that source and copied resource uuids were not being added to the object mapping in their clone methods. Note: All Resources that can be cloned will need to do this.
-
Removed undefinedRole as the default role type when creating links. This lead to mistakes where specified roles were not being used when creating between resources.This role type has been removed. Resource based Links now use the same value to represent an Link with an invalid role type. Also by default, links with invalid role types will no longer be copied when a resource is copied.
smtk/resource/testing/python/testCloneResources.py has been updated to verify these changes.
Also replaced all std::cerr and std::cout statements in smtk/attribute/Resource.cxx with Logger messages.
Addresses Issues: #538 (closed) #536 #537 #535 #534