@classmethod
    def from_re_match(cls, match):
        kwargs = match.groupdict()
        if match.string.find('start') >= 0:
            kwargs['start'] = True
        elif match.string.find('end') >= 0:
            kwargs['end'] = True
        return cls(**kwargs)
Decorator to mark views used for signup.
dataset/ETHPy150Open pmrowla/pysrcds/srcds/events/generic.py/CvarEvent.from_re_match--crossover with--dataset/ETHPy150Open idlesign/django-sitegate/sitegate/decorators.py/signup_view