def __set__(self,obj,value):
     self.restriction.test(value)
     AttributeProperty.__set__(self,obj,value)
 def __init__(self,attr,format=TextFormat(), restriction=Restriction()):
     AttributeProperty.__init__(self,attr,format=format)
     self.restriction = restriction