Skip to content
Snippets Groups Projects
Commit 55622458 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

OverlayGroup was incorrectly overwriting DisplayOpts properties

parent f432c25c
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
the display properties of one or more overlays to be linked. the display properties of one or more overlays to be linked.
""" """
import sys
import logging import logging
import copy import copy
...@@ -130,6 +130,10 @@ class OverlayGroup(props.HasProperties): ...@@ -130,6 +130,10 @@ class OverlayGroup(props.HasProperties):
self.__hasBeenSet[clsName, propName] = False self.__hasBeenSet[clsName, propName] = False
# Special case - make sure that the ImageOpts
# volume property is not constrained
self.setConstraint('ImageOpts_volume', 'maxval', sys.maxint)
def __copy__(self): def __copy__(self):
"""Create a copy of this ``OverlayGroup``. """Create a copy of this ``OverlayGroup``.
...@@ -222,9 +226,10 @@ class OverlayGroup(props.HasProperties): ...@@ -222,9 +226,10 @@ class OverlayGroup(props.HasProperties):
# We do this to avoid clobbering # We do this to avoid clobbering
# property values with un-initialised # property values with un-initialised
# group property values. # group property values.
#
if not self.__hasBeenSet[clsName, propName]: if not self.__hasBeenSet[clsName, propName]:
setattr(self, groupName, getattr(target, propName)) setattr(self, groupName, getattr(target, propName))
self.__hasBeenSet[clsName, propName] = True
if slave is self: if slave is self:
otherName = propName otherName = propName
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment