Hi,

Many Thanks for your time and patience.

Everything works fine after I installed Django 1.3.1.

Best regards,
Jean-Noël

On Jan 6, 7:57 pm, Christian Hammond <chip...@gmail.com> wrote:
> Definitely strange. The first thing that jumps out at me is that you're using 
> Django 1.4 alpha 1. I'd suggest removing that and installing the latest 
> stable 1.3.x.
>
> Christian
>
> On Jan 6, 2012, at 5:44, Jean-Noel Meneghetti <jeannoel.meneghe...@gmail.com> 
> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I recently updated our reviewboard server from reviewboard 0.9 to the
> > latest release.
>
> > We are using PostgreSQL, and I had to update more than I expected. I
> > managed to fix almost every issues I encountered, but now, I'm stuck.
>
> > Once the website has been updated, after I logged into reviewboard, If
> > I try to display the content of a review request,
> > I get the error described below.
>
> > What's confuses me is that there is nothing wrong with the html page
> > itself.
> > It looks as if the {%if statement itself is not understood by the
> > parser.
>
> > I had a look at base.py and defaulttags.py, but the code is pretty
> > much what I expected.
>
> > Has anybody else encountered the same error, or is it just my config?
> > I'm not sure that this is a bug, as it seems to me that such error
> > would be noticed straight away. So I suspect that some of my egg files
> > are too recent or unstable.
>
> > Many thanks for your time and help.
>
> > TemplateSyntaxError at /r/149/
>
> > Invalid block tag: 'endif', expected 'else' or 'endifequal'
>
> > Request Method:    GET
> > Request URL:    http://reviewboard/r/149/
> > Django Version:    1.4 alpha 1
> > Exception Type:    TemplateSyntaxError
> > Exception Value:
>
> > Invalid block tag: 'endif', expected 'else' or 'endifequal'
>
> > Exception Location:    /usr/lib/python2.5/site-packages/django/template/
> > base.py in invalid_block_tag, line 323
> > Python Executable:    /usr/bin/python
> > Python Version:    2.5.2
> > Python Path:
>
> > ['/var/www/reviewboard/conf',
> > '/usr/lib/python2.5/site-packages/PIL-1.1.6-py2.5-linux-i686.egg',
> > '/usr/lib/python2.5/site-packages/ReviewBoard-1.6.3-py2.5.egg',
> > '/usr/lib/python2.5/site-packages/recaptcha_client-1.0.6-py2.5.egg',
> > '/usr/lib/python2.5/site-packages/pytz-2011n-py2.5.egg',
> > '/usr/lib/python2.5/site-packages/python_memcached-1.48-py2.5.egg',
> > '/usr/lib/python2.5/site-packages/python_dateutil-1.5-py2.5.egg',
> > '/usr/lib/python2.5/site-packages/paramiko-1.7.7.1-py2.5.egg',
> > '/usr/lib/python2.5/site-packages/Pygments-1.4-py2.5.egg',
> > '/usr/lib/python2.5/site-packages/Djblets-0.6.15-py2.5.egg',
> > '/usr/lib/python2.5/site-packages/django_evolution-0.6.5-py2.5.egg',
> > '/usr/lib/python2.5/site-packages/pycrypto-2.4.1-py2.5-linux-
> > i686.egg',
> > '/usr/lib/python2.5/site-packages/setuptools-0.6c12dev_r88846-
> > py2.5.egg',
> > '/usr/lib/python2.5/site-packages/psycopg2-2.4.4-py2.5-linux-
> > i686.egg',
> > '/usr/lib/python25.zip',
> > '/usr/lib/python2.5',
> > '/usr/lib/python2.5/plat-linux2',
> > '/usr/lib/python2.5/lib-tk',
> > '/usr/lib/python2.5/lib-dynload',
> > '/usr/local/lib/python2.5/site-packages',
> > '/usr/lib/python2.5/site-packages',
> > '/usr/lib/python2.5/site-packages/PIL',
> > '/var/lib/python-support/python2.5']
>
> > Server time:    Fri, 6 Jan 2012 13:21:25 +0000
> > Error during template rendering
>
> > In template /usr/lib/python2.5/site-packages/ReviewBoard-1.6.3-
> > py2.5.egg/reviewboard/templates/reviews/review_header.html, error at
> > line 16
> > Invalid block tag: 'endif', expected 'else' or 'endifequal'
> > 6    <h1>{% trans "This change has been marked as submitted." %}</h1>
> > 7    {% ifuserorperm review_request.submitter
> > "reviews.can_change_status" %}
> > 8    <input type="submit" id="btn-review-request-reopen"
> > 9    value="{% trans "Reopen for Review" %}" />
> > 10    <p><label for="changedescription">{% trans "Describe the
> > submission (optional):" %}</label></p>
> > 11    <pre id="changedescription" class="editable">{{close_description}}
> > </pre>
> > 12    {% endifuserorperm %}
> > 13    {% ifnotuserandperm review_request.submitter
> > "reviews.can_change_status" %}
> > 14    {% if close_description %}
> > 15    <pre id="changedescription">{{close_description}}</pre>
> > 16    {% endif %}
> > 17    {% endifnotuserandperm %}
> > 18    </div>
> > 19    {% else %}
> > 20    {% ifequal review_request.status 'D' %}
> > 21    <div class="banner" id="discard-banner">
> > 22    <h1>{% trans "This change has been discarded." %}</h1>
> > 23    {% ifequal request.user review_request.submitter %}
> > 24    <input type="submit" id="btn-review-request-reopen"
> > 25    value="{% trans "Reopen for Review" %}" />
> > 26    {% endifequal %}
> > Traceback Switch to copy-and-paste view
>
> >    /usr/lib/python2.5/site-packages/django/core/handlers/base.py in
> > get_response
>
> >                                response = callback(request,
> > *callback_args, **callback_kwargs)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/ReviewBoard-1.6.3-py2.5.egg/
> > reviewboard/accounts/decorators.py in _check
>
> >                    return view_func(*args, **kwargs)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/ReviewBoard-1.6.3-py2.5.egg/
> > reviewboard/reviews/views.py in review_detail
>
> >                    'PRE_CREATION': PRE_CREATION,
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/shortcuts/__init__.py in
> > render_to_response
>
> >            return HttpResponse(loader.render_to_string(*args,
> > **kwargs), **httpresponse_kwargs)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > render_to_string
>
> >                t = get_template(template_name)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > get_template
>
> >            template, origin = find_template(template_name)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > find_template
>
> >                    source, display_name = loader(name, dirs)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > __call__
>
> >                return self.load_template(template_name,
> > template_dirs)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > load_template
>
> >                    template = get_template_from_string(source,
> > origin, template_name)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > get_template_from_string
>
> >            return Template(source, origin, name)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/base.py in
> > __init__
>
> >                self.nodelist = compile_string(template_string,
> > origin)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/base.py in
> > compile_string
>
> >            return parser.parse()
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/base.py in parse
>
> >                            compiled_result = compile_func(self,
> > token)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader_tags.py in
> > do_extends
>
> >            nodelist = parser.parse()
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/base.py in parse
>
> >                            compiled_result = compile_func(self,
> > token)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader_tags.py in
> > do_block
>
> >            nodelist = parser.parse(('endblock',))
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/base.py in parse
>
> >                            compiled_result = compile_func(self,
> > token)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader_tags.py in
> > do_include
>
> > isolated_context=isolated_context)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader_tags.py in
> > __init__
>
> >                    t = get_template(template_path)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > get_template
>
> >            template, origin = find_template(template_name)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > find_template
>
> >                    source, display_name = loader(name, dirs)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > __call__
>
> >                return self.load_template(template_name,
> > template_dirs)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > load_template
>
> >                    template = get_template_from_string(source,
> > origin, template_name)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/loader.py in
> > get_template_from_string
>
> >            return Template(source, origin, name)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/base.py in
> > __init__
>
> >                self.nodelist = compile_string(template_string,
> > origin)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/base.py in
> > compile_string
>
> >            return parser.parse()
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/base.py in parse
>
> >                            compiled_result = compile_func(self,
> > token)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/defaulttags.py in
> > ifequal
>
> >            return do_ifequal(parser, token, False)
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/defaulttags.py in
> > do_ifequal
>
> >            nodelist_true = parser.parse(('else', end_tag))
>
> >        ...
> >    ▶ Local vars
> >    /usr/lib/python2.5/site-packages/django/template/base.py in parse
>
> ...
>
> read more »

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to