# HG changeset patch # User Jeff Hammel # Date 1294448035 28800 # Node ID 95d1bb85ab3cd0b54f41b766fcdf422930fa1718 # Parent cb00c011ff45331123c4c8be51be0f0a73807dc5 add a copy method to a variable to get a non-futzed copy diff -r cb00c011ff45 -r 95d1bb85ab3c makeitso/template.py --- a/makeitso/template.py Fri Jan 07 16:31:28 2011 -0800 +++ b/makeitso/template.py Fri Jan 07 16:53:55 2011 -0800 @@ -27,6 +27,10 @@ self._set = False + def copy(self): + """returns a copy of the variable""" + return Variable(self.name, self.description, self.default, self.cast) + def set(self, value): if self.cast: self.value = self.cast(value)