def __set__(self,obj,value):
     self.restriction.test(value)
     TextProperty.__set__(self,obj,value)
 def __init__(self,xpath,createOnSet=True,createOnGet=False,restriction=Restriction()):
     TextProperty.__init__(self,xpath,createOnSet,createOnGet)
     self.restriction = restriction