Fix bug where parameter cloning didn't clone validation rules.

This commit is contained in:
Pavel Zuna 2010-02-23 15:23:51 +01:00 committed by Rob Crittenden
parent 4dfbf46062
commit 899f318359

View File

@ -505,7 +505,7 @@ class Param(ReadOnly):
"""
kw = dict(self.__clonekw)
kw.update(overrides)
return self.__class__(self.name, **kw)
return self.__class__(self.name, *self.rules, **kw)
def normalize(self, value):
"""