Re: [Django] #26573: Empty 'AssertionError' exception message on syntax error ({% else if %}) in templates

2016-05-27 Thread Django
#26573: Empty 'AssertionError' exception message on syntax error ({% else if 
%}) in
templates
-+-
 Reporter:  vakorol  |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |
Component:  Template system  |  Version:  1.8
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  assertionerror   | Triage Stage:  Accepted
  template elsif |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham ):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"93c312cc9cb17ec13ed1957c9a2d2e4ec56b09ed" 93c312c]:
 {{{
 #!CommitTicketReference repository=""
 revision="93c312cc9cb17ec13ed1957c9a2d2e4ec56b09ed"
 Fixed #26573 -- Added descriptive error message for malformed if/else/elif
 template tags.
 }}}

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.a5c93fe34b165ab87a1d0abdf0077e9e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26573: Empty 'AssertionError' exception message on syntax error ({% else if %}) in templates

2016-05-23 Thread Django
#26573: Empty 'AssertionError' exception message on syntax error ({% else if 
%}) in
templates
-+-
 Reporter:  vakorol  |Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  Template system  |  Version:  1.8
 Severity:  Normal   |   Resolution:
 Keywords:  assertionerror   | Triage Stage:  Accepted
  template elsif |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timgraham):

 * needs_better_patch:  0 => 1


Comment:

 As noted on the PR, the debug view doesn't highlight the correct line in
 this case. I think it'd be worth looking into whether this could be fixed.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.b01a304fb353eb2ec9360eff203cac34%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26573: Empty 'AssertionError' exception message on syntax error ({% else if %}) in templates

2016-05-18 Thread Django
#26573: Empty 'AssertionError' exception message on syntax error ({% else if 
%}) in
templates
-+-
 Reporter:  vakorol  |Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  Template system  |  Version:  1.8
 Severity:  Normal   |   Resolution:
 Keywords:  assertionerror   | Triage Stage:  Accepted
  template elsif |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timgraham):

 * has_patch:  0 => 1


Comment:

 For future reference, please check "Has patch" so the ticket appears in
 the review queue.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.6edbf27bc1a4f76812d47a5c6e51650b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26573: Empty 'AssertionError' exception message on syntax error ({% else if %}) in templates

2016-05-14 Thread Django
#26573: Empty 'AssertionError' exception message on syntax error ({% else if 
%}) in
templates
-+-
 Reporter:  vakorol  |Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  Template system  |  Version:  1.8
 Severity:  Normal   |   Resolution:
 Keywords:  assertionerror   | Triage Stage:  Accepted
  template elsif |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by inondle):

 Cool, here's my pull request:

 https://github.com/django/django/pull/6602

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.963b583eec46db9d3a447a1a9e25f4a5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26573: Empty 'AssertionError' exception message on syntax error ({% else if %}) in templates

2016-05-14 Thread Django
#26573: Empty 'AssertionError' exception message on syntax error ({% else if 
%}) in
templates
-+-
 Reporter:  vakorol  |Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  Template system  |  Version:  1.8
 Severity:  Normal   |   Resolution:
 Keywords:  assertionerror   | Triage Stage:  Accepted
  template elsif |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by vakorol):

 Replying to [comment:2 inondle]:

 Yes, i think this will work perfectly.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.f98b514ec405109ac7703ef17f43674b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26573: Empty 'AssertionError' exception message on syntax error ({% else if %}) in templates

2016-05-13 Thread Django
#26573: Empty 'AssertionError' exception message on syntax error ({% else if 
%}) in
templates
-+-
 Reporter:  vakorol  |Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  Template system  |  Version:  1.8
 Severity:  Normal   |   Resolution:
 Keywords:  assertionerror   | Triage Stage:  Accepted
  template elsif |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by inondle):

 Would a message like this work here:

 {{{
 'Malformed template tag at line {0}: "{1}"'.format(token.lineno,
 token.contents)
 }}}

 In this case the message would look something like:

 {{{
 'Malformed template tag at line 35: "else if task.status ==
 TASK_STATUS_ERROR or task.status == TASK_STATUS_ABORTED"
 }}}

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.f7f5608e7a3b921543501b5d73056ab9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26573: Empty 'AssertionError' exception message on syntax error ({% else if %}) in templates

2016-05-03 Thread Django
#26573: Empty 'AssertionError' exception message on syntax error ({% else if 
%}) in
templates
-+-
 Reporter:  vakorol  |Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  Template system  |  Version:  1.8
 Severity:  Normal   |   Resolution:
 Keywords:  assertionerror   | Triage Stage:  Accepted
  template elsif |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timgraham):

 * needs_docs:   => 0
 * needs_better_patch:   => 0
 * type:  Uncategorized => Cleanup/optimization
 * needs_tests:   => 0
 * stage:  Unreviewed => Accepted


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.d1c7d567cb6de7dcc60728fbb78f6245%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #26573: Empty 'AssertionError' exception message on syntax error ({% else if %}) in templates

2016-05-03 Thread Django
#26573: Empty 'AssertionError' exception message on syntax error ({% else if 
%}) in
templates
---+---
 Reporter:  vakorol|  Owner:  nobody
 Type:  Uncategorized  | Status:  new
Component:  Template   |Version:  1.8
  system   |
 Severity:  Normal |   Keywords:  assertionerror template elsif
 Triage Stage:  Unreviewed |  Has patch:  0
Easy pickings:  0  |  UI/UX:  0
---+---
 If one erroneously uses `{% else if ... %}` instead of `{% elif ... %}` in
 django templates:

 {{{
 {% if task.status == TASK_STATUS_DONE %}
 ...
 {% else if task.status == TASK_STATUS_ERROR or task.status ==
 TASK_STATUS_ABORTED %}
 ...
 {% endif %}
 }}}

 then the following error without any message emerges:

 {{{
 AssertionError at /wizard/tasks/1/summary
 No exception message supplied

 Environment:

 Request Method: GET
 Request URL: http://127.0.0.1:20090/wizard/tasks/1/summary

 Django Version: 1.8.13
 Python Version: 3.4.3
 Installed Applications:
 ('django.contrib.admin',
  'django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.messages',
  'django.contrib.staticfiles',
  'rest_framework',
  'bootstrap3',
  'djkombu',
   ...)
 Installed Middleware:
 ('django.contrib.sessions.middleware.SessionMiddleware',
  'django.middleware.common.CommonMiddleware',
  'django.middleware.csrf.CsrfViewMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  'django.contrib.messages.middleware.MessageMiddleware',
  'django.middleware.clickjacking.XFrameOptionsMiddleware',
  'django.middleware.security.SecurityMiddleware',
  'viking.middleware.LoginRequiredMiddleware')


 Traceback:
 File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py"
 in get_response
   132. response = wrapped_callback(request,
 *callback_args, **callback_kwargs)
 File "/usr/local/lib/python3.4/dist-
 packages/django/views/decorators/csrf.py" in wrapped_view
   58. return view_func(*args, **kwargs)
 File "/usr/local/lib/python3.4/dist-packages/django/views/generic/base.py"
 in view
   71. return self.dispatch(request, *args, **kwargs)
 File "/usr/local/lib/python3.4/dist-packages/rest_framework/views.py" in
 dispatch
   466. response = self.handle_exception(exc)
 File "/usr/local/lib/python3.4/dist-packages/rest_framework/views.py" in
 dispatch
   463. response = handler(request, *args, **kwargs)
 File "/usr/local/lib/python3.4/dist-packages/rest_framework/decorators.py"
 in handler
   53. return func(*args, **kwargs)
 File "/www/deploy/apps/wizard/views.py" in task_id_step
   156. return render_to_response( "wizard/step_summary.html",
 template_data )
 File "/usr/local/lib/python3.4/dist-packages/django/shortcuts.py" in
 render_to_response
   39. content = loader.render_to_string(template_name, context,
 using=using)
 File "/usr/local/lib/python3.4/dist-packages/django/template/loader.py" in
 render_to_string
   98. template = get_template(template_name, using=using)
 File "/usr/local/lib/python3.4/dist-packages/django/template/loader.py" in
 get_template
   35. return engine.get_template(template_name, dirs)
 File "/usr/local/lib/python3.4/dist-
 packages/django/template/backends/django.py" in get_template
   30. return Template(self.engine.get_template(template_name,
 dirs))
 File "/usr/local/lib/python3.4/dist-packages/django/template/engine.py" in
 get_template
   167. template, origin = self.find_template(template_name, dirs)
 File "/usr/local/lib/python3.4/dist-packages/django/template/engine.py" in
 find_template
   141. source, display_name = loader(name, dirs)
 File "/usr/local/lib/python3.4/dist-
 packages/django/template/loaders/base.py" in __call__
   13. return self.load_template(template_name, template_dirs)
 File "/usr/local/lib/python3.4/dist-
 packages/django/template/loaders/base.py" in load_template
   23. template = Template(source, origin, template_name,
 self.engine)
 File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
 __init__
   191. self.nodelist = engine.compile_string(template_string,
 origin)
 File "/usr/local/lib/python3.4/dist-packages/django/template/engine.py" in
 compile_string
   261. return parser.parse()
 File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
 parse
   342. compiled_result = compile_func(self, token)
 File "/usr/local/lib/python3.4/dist-
 packages/django/template/loader_tags.py" in do_extends
   210. nodelist = parser.parse()
 File