Did I find the right examples for you? yes no

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)

src/s/m/smeuhsocial-HEAD/apps/django_openid/registration.py   smeuhsocial(Download)
        except AttributeError:
            return self.show_error(
                request, 'Add CookieConsumer or similar to your middleware'
            )
 
        user = self.lookup_user_by_id(user_id)
        if not user: # Maybe the user was deleted?
            return self.show_error(request, r_user_not_found_message)
 
        # Check user is NOT active but IS in the correct group
            return self.on_registration_complete(request)
        else:
            return self.show_error(request, self.c_already_confirmed_message)
 
    do_c.urlregex = '^c/([^/]+)/$'
    def do_password(self, request):
        "Allow users to set a password on their account"
        if request.user.is_anonymous():
            return self.show_error(request, 'You need to log in first')
        ChangePasswordForm = self.get_change_password_form_class(request)

src/d/j/django-openid-HEAD/django_openid/registration.py   django-openid(Download)
        except AttributeError:
            return self.show_error(
                request, 'Add CookieConsumer or similar to your middleware'
            )
 
        user = self.lookup_user_by_id(user_id)
        if not user: # Maybe the user was deleted?
            return self.show_error(request, r_user_not_found_message)
 
        # Check user is NOT active but IS in the correct group
            return self.on_registration_complete(request)
        else:
            return self.show_error(request, self.c_already_confirmed_message)
 
    do_c.urlregex = '^c/([^/]+)/$'
    def do_password(self, request):
        "Allow users to set a password on their account"
        if request.user.is_anonymous():
            return self.show_error(request, 'You need to log in first')
        ChangePasswordForm = self.get_change_password_form_class(request)

src/m/y/mycogia.com-HEAD/apps/django_openid/registration.py   mycogia.com(Download)
        except AttributeError:
            return self.show_error(
                request, 'Add CookieConsumer or similar to your middleware'
            )