def __init__(self, *args, **kwargs):
        """
        Any '::' expands to 1+ intermediate fragments.
        No ':' at start anchors fragment at beginning.
        No ':' at end anchors fragment at end.
        """
        super(AccountCondition, self).__init__(*args, **kwargs)
        pattern = self.value.replace('::', ':[\w ]+(?::[\w ]+)*:')
        if pattern[0] != ':':
            pattern = '^' + pattern
        if pattern[-1] != ':':
            pattern = pattern + '$'
        self.re = re.compile(pattern)
def __init__ ( self , * args , ** kwargs ) : super ( AccountCondition , self ) . __init__ ( * args , ** kwargs ) pattern = self . value . replace ( '::' , ':[\w ]+(?::[\w ]+)*:' ) if pattern [ 0 ] != ':' : pattern = '^' + pattern if pattern [ - 1 ] != ':' : pattern = pattern + '$' self . re = re . compile ( pattern )
Any '::' expands to 1+ intermediate fragments.
        No ':' at start anchors fragment at beginning.
        No ':' at end anchors fragment at end.