def reverse(self, lookup_view, *args, **kwargs):
        if not callable(lookup_view):
            mod_name, func_name = get_mod_func(lookup_view)
            try:
                lookup_view = getattr(__import__(mod_name, {}, {}, ['']), func_name)
            except (ImportError, __HOLE__):
                raise NoReverseMatch
        for pattern in self.urlconf_module.urlpatterns:
            if isinstance(pattern, RegexURLResolver):
                try:
                    return pattern.reverse_helper(lookup_view, *args, **kwargs)
                except NoReverseMatch:
                    continue
            elif pattern.callback == lookup_view:
                try:
                    return pattern.reverse_helper(*args, **kwargs)
                except NoReverseMatch:
                    continue
        raise NoReverseMatch
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/core/urlresolvers.py/RegexURLResolver.reverse