mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-04-22 22:14:45 +00:00
Fixes issue 87, missing context variable in catalog list
This commit is contained in:
parent
f891399d52
commit
bf0b253dec
5 changed files with 16 additions and 8 deletions
1
CHANGES
1
CHANGES
|
|
@ -2,6 +2,7 @@ Version 0.7.3
|
|||
-------------
|
||||
* Fix for test settings leaking onto global settings: LANGUAGES was overridden and not set back (Issue #81 - Thanks @zsoldosp)
|
||||
* Test against Django 1.6b1
|
||||
* Missing context variable in catalog list (Issue #87 - Thanks @kunitoki)
|
||||
|
||||
Version 0.7.2
|
||||
-------------
|
||||
|
|
|
|||
|
|
@ -566,6 +566,12 @@ class RosettaTestCase(TestCase):
|
|||
self.assertTrue('French (France), UTF8' in str(r.content))
|
||||
self.assertTrue('m_71a6479faf8712e37dd5755cd1d11804' in str(r.content))
|
||||
|
||||
def test_28_issue_gh87(self):
|
||||
"make sure that rosetta_i18n_catalog_filter is passed into the context"
|
||||
r = self.client.get(reverse('rosetta-pick-file') + '?filter=third-party')
|
||||
r = self.client.get(reverse('rosetta-pick-file'))
|
||||
self.assertTrue('<li class="active"><a href="?filter=third-party">' in str(r.content))
|
||||
|
||||
|
||||
# Stubbed access control function
|
||||
def no_access(user):
|
||||
|
|
|
|||
|
|
@ -347,7 +347,8 @@ def list_languages(request, do_session_warn=False):
|
|||
ADMIN_MEDIA_PREFIX=ADMIN_MEDIA_PREFIX,
|
||||
do_session_warn=do_session_warn,
|
||||
languages=languages,
|
||||
has_pos=has_pos
|
||||
has_pos=has_pos,
|
||||
rosetta_i18n_catalog_filter=rosetta_i18n_catalog_filter
|
||||
), context_instance=RequestContext(request))
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ if [ ! -d venv_13 ]
|
|||
then
|
||||
virtualenv --no-site-packages --distribute --python=python2 venv_13
|
||||
. venv_13/bin/activate
|
||||
pip install Django==1.3 coverage python-memcached six
|
||||
pip install Django==1.3 coverage python-memcached six microsofttranslator
|
||||
deactivate
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -4,28 +4,28 @@ if [ ! -d venv_13 ]
|
|||
then
|
||||
virtualenv --no-site-packages --distribute --python=python2 venv_13
|
||||
. venv_13/bin/activate
|
||||
pip install Django==1.3 coverage python-memcached six
|
||||
pip install Django==1.3 coverage python-memcached six microsofttranslator
|
||||
deactivate
|
||||
fi
|
||||
if [ ! -d venv_14 ]
|
||||
then
|
||||
virtualenv --no-site-packages --distribute --python=python2 venv_14
|
||||
. venv_14/bin/activate
|
||||
pip install Django==1.4 coverage python-memcached six
|
||||
pip install Django==1.4 coverage python-memcached six microsofttranslator
|
||||
deactivate
|
||||
fi
|
||||
if [ ! -d venv_15 ]
|
||||
then
|
||||
virtualenv --no-site-packages --distribute --python=python2 venv_15
|
||||
. venv_15/bin/activate
|
||||
pip install Django==1.5 coverage python-memcached six
|
||||
pip install Django==1.5 coverage python-memcached six microsofttranslator
|
||||
deactivate
|
||||
fi
|
||||
if [ ! -d venv_15_p3 ]
|
||||
then
|
||||
virtualenv --no-site-packages --distribute --python=python3 venv_15_p3
|
||||
. venv_15_p3/bin/activate
|
||||
pip install Django==1.5 coverage python3-memcached six
|
||||
pip install Django==1.5 coverage python3-memcached six microsofttranslator
|
||||
deactivate
|
||||
fi
|
||||
if [ ! -d venv_16 ]
|
||||
|
|
@ -33,7 +33,7 @@ then
|
|||
virtualenv --no-site-packages --distribute --python=python2 venv_16
|
||||
. venv_16/bin/activate
|
||||
pip install https://github.com/django/django/archive/1.6b1.zip
|
||||
pip install coverage python-memcached six
|
||||
pip install coverage python-memcached six microsofttranslator
|
||||
deactivate
|
||||
fi
|
||||
if [ ! -d venv_16_p3 ]
|
||||
|
|
@ -41,7 +41,7 @@ then
|
|||
virtualenv --no-site-packages --distribute --python=python3 venv_16_p3
|
||||
. venv_16_p3/bin/activate
|
||||
pip install https://github.com/django/django/archive/1.6b1.zip
|
||||
pip install coverage python3-memcached six
|
||||
pip install coverage python3-memcached six microsofttranslator
|
||||
deactivate
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue