Actually, it is quite easy, this sort of thing works nicely:
class BranchNameField(TextLine): def _validate(self, value): if self.context is not None and self.context.name == value: return super(BranchNameField, self)._validate(value)
Actually, it is quite easy, this sort of thing works nicely:
class BranchNameField (TextLine) :
super( BranchNameField , self)._ validate( value)
def _validate(self, value):
if self.context is not None and self.context.name == value:
return