Comment 15 for bug 95109

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote : Re: It is possible to register branches with '_' in their name

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)