def _ip_int_from_prefix(self, prefixlen=None):
        if not prefixlen and prefixlen != 0:
            prefixlen = self._prefixlen
        return self._ALL_ONES ^ (self._ALL_ONES >> prefixlen)
Use this decorator on the dispatch method of a TemplateView subclass
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/contrib/ipaddr.py/_BaseInterface._ip_int_from_prefix--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/style/decorators.py/use_typeahead