Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Context processor should check that request have user attribute #26

Closed
wants to merge 3,097 commits into
from

Conversation

Projects
None yet
Contributor

bmihelac commented Apr 14, 2011

This allows testing with RequestFactory and mocked requests.
Without this following error would be raised:

AttributeError: 'WSGIRequest' object has no attribute 'user'

brosner and others added some commits May 17, 2010

Cleaned up requirements/ directory
Removed the cruft we no longer need (we're using versioning control system so
there is no point in keeping around older releases). Added a development.txt
as the new entry point and included Sphinx.
l10n: Updated Czech (cs) translation to 97%
New status: 44 messages complete with 0 fuzzies and 1 untranslated.

Transmitted-via: Transifex (www.transifex.net).
l10n: Updated Czech (cs) translation to 100%
New status: 45 messages complete with 0 fuzzies and 0 untranslated.

Transmitted-via: Transifex (www.transifex.net).
l10n: Updated Czech (cs) translation to 12%
New status: 56 messages complete with 0 fuzzies and 379 untranslated.

Transmitted-via: Transifex (www.transifex.net).
Owner

jtauber commented on 07b5348 Jun 30, 2010

what's the thinking behind doing this?

Owner

brosner replied Jun 30, 2010

This change was made to match how setup_project uses bases which before these values worked in clone_project. I think we should clarify this a bit better in the paragraph above the list and tweaking the wording for each base.

bartTC commented on 586e28b Jun 30, 2010

:-)

None of the projects which use account depend on django-oauth-access yet. This will, right now, fail for all projects using this template out of the box. You'll need to revert lines 56–71.

Owner

paltman replied Oct 24, 2010

Reverted in the next commit:

4ef6714

paltman and others added some commits Oct 24, 2010

Fixed #701 — renamed deployment files from pinax.(fcgi|wsgi) to (fcgi…
…|wsgi).py

This is beneficial for deployment which might require importing the file (
particularly wsgi.py.) It allows users to use gunicorn's WSGI app deployment
strategy with Pinax.
Fixed two bugs when setting up the environment when the caller is in …
…a deployment file

It is possible for __file__ to be a pyc file in some deployment situations
and it can be a full path (not sure how this slipped by).
Added SIGNUP_REDIRECT_URLNAME to allow sign-up specific redirecting
get_default_redirect has been changed to work better with settings by removing
its dependency on them. The signature is changed to accept a fallback URL as
a required parameter allowing any setting to be used.
Updated images to support transparency and smaller for the new site. …
…Thanks Issac Kelly for providing new images.
Fixed #751 — security middleware should not return False
Signed-off-by: Brian Rosner <brosner@gmail.com>
{% user_display %} out must be conditionally escaped when displaying …
…a value as templatetags do not do this for you.
Upgraded Pinax to use Django 1.2.5
This release does have a backwards incompatible change with regard to a
secruity fix. If you are calling your Django code from Javascript this might
be affecting you. Please see http://docs.djangoproject.com/en/1.2/releases/1.2.5/
blog -> task refactoring of docs/groups.txt
Signed-off-by: Brian Rosner <brosner@gmail.com>
Check if request have user attribute in context_processor
This allows testing with RequestFactory and mocked requests.
Without this following error would be raised:

AttributeError: 'WSGIRequest' object has no attribute 'user'

@jtauber jtauber closed this Sep 10, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment