[GH-ISSUE #21] Bad call of domain_menu in aliases #6

Closed
opened 2026-02-27 11:09:37 +03:00 by kerem · 1 comment
Owner

Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/21

Originally assigned to: @tonioo on GitHub.

Originally created by Antoine Nguyen on 2009-04-29T09:13:53Z

Template error:
In template /var/www/jonathan/django.dev.harrycow.fr/mailng/templates/admin/aliases.html, error at line 4
domain_menu takes 3 arguments
1 : {% extends "admin/domain_header.html" %}
2 : {% block menu %}
3 : {% load admin_extras %}
4 : {% domain_menu domain.id "aliases" %}
5 : {% endblock %}
6 :
7 : {% block domcontent %}
8 : {% load i18n %}
9 : {% if not aliases %}
10 :

{% trans "No alias defined." %}


11 : {% else %}
12 :
13 :
14 :

Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response

  1.             response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py" in +call+
  2.         return self.view_func(request, _args, *_kwargs)
    
    File "/var/www/jonathan/django.dev.harrycow.fr/mailng/admin/views.py" in aliases
  3.         "aliases" : aliases, "domain" : domain
    
    File "/var/www/jonathan/django.dev.harrycow.fr/mailng/admin/views.py" in _render
  4. context_instance=RequestContext(request))
    File "/usr/lib/python2.5/site-packages/django/shortcuts/+init+.py" in render_to_response
  5. return [[HttpResponse]](loader.render_to_string%28*args, **kwargs%29, **httpresponse_kwargs)
    
    File "/usr/lib/python2.5/site-packages/django/template/loader.py" in render_to_string
  6.     t = get_template(template_name)
    
    File "/usr/lib/python2.5/site-packages/django/template/loader.py" in get_template
  7. template = get_template_from_string(source, origin, template_name)
    
    File "/usr/lib/python2.5/site-packages/django/template/loader.py" in get_template_from_string
  8. return Template(source, origin, name)
    
    File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in +init+
  9.     self.nodelist = compile_string(template_string, origin)
    
    File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in compile_string
  10. return parser.parse()
    
    File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in parse
  11.                 compiled_result = compile_func(self, token)
    
    File "/usr/lib/python2.5/site-packages/django/template/loader_tags.py" in do_extends
  12. nodelist = parser.parse()
    
    File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in parse
  13.                 compiled_result = compile_func(self, token)
    
    File "/usr/lib/python2.5/site-packages/django/template/loader_tags.py" in do_block
  14. nodelist = parser.parse(('endblock', 'endblock %s' % block_name))
    
    File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in parse
  15.                 compiled_result = compile_func(self, token)
    
    File "/usr/lib/python2.5/site-packages/django/utils/functional.py" in _curried
  16.     return _curried_func(_(args+moreargs), *_dict(kwargs, **morekwargs))
    
    File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in generic_tag_compiler
  17.     raise [[TemplateSyntaxError]](message) 
    
{% trans "Actions" %}
Originally created by @tonioo on GitHub (Dec 4, 2013). Original GitHub issue: https://github.com/modoboa/modoboa/issues/21 Originally assigned to: @tonioo on GitHub. **Originally created by Antoine Nguyen on 2009-04-29T09:13:53Z** Template error: In template /var/www/jonathan/django.dev.harrycow.fr/mailng/templates/admin/aliases.html, error at line 4 domain_menu takes 3 arguments 1 : {% extends "admin/domain_header.html" %} 2 : {% block menu %} 3 : {% load admin_extras %} 4 : {% domain_menu domain.id "aliases" %} 5 : {% endblock %} 6 : 7 : {% block domcontent %} 8 : {% load i18n %} 9 : {% if not aliases %} 10 : <p>{% trans "No alias defined." %}</p> 11 : {% else %} 12 : <table> 13 : <tr> 14 : <th width="50px">{% trans "Actions" %}</th> Traceback: File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 1. response = callback(request, _callback_args, *_callback_kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py" in +call+ 2. return self.view_func(request, _args, *_kwargs) File "/var/www/jonathan/django.dev.harrycow.fr/mailng/admin/views.py" in aliases 3. "aliases" : aliases, "domain" : domain File "/var/www/jonathan/django.dev.harrycow.fr/mailng/admin/views.py" in _render 4. context_instance=RequestContext(request)) File "/usr/lib/python2.5/site-packages/django/shortcuts/+init+.py" in render_to_response 5. return [[HttpResponse]](loader.render_to_string%28*args, **kwargs%29, **httpresponse_kwargs) File "/usr/lib/python2.5/site-packages/django/template/loader.py" in render_to_string 6. t = get_template(template_name) File "/usr/lib/python2.5/site-packages/django/template/loader.py" in get_template 7. template = get_template_from_string(source, origin, template_name) File "/usr/lib/python2.5/site-packages/django/template/loader.py" in get_template_from_string 8. return Template(source, origin, name) File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in +init+ 9. self.nodelist = compile_string(template_string, origin) File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in compile_string 10. return parser.parse() File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in parse 11. compiled_result = compile_func(self, token) File "/usr/lib/python2.5/site-packages/django/template/loader_tags.py" in do_extends 12. nodelist = parser.parse() File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in parse 13. compiled_result = compile_func(self, token) File "/usr/lib/python2.5/site-packages/django/template/loader_tags.py" in do_block 14. nodelist = parser.parse(('endblock', 'endblock %s' % block_name)) File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in parse 15. compiled_result = compile_func(self, token) File "/usr/lib/python2.5/site-packages/django/utils/functional.py" in _curried 16. return _curried_func(_(args+moreargs), *_dict(kwargs, **morekwargs)) File "/usr/lib/python2.5/site-packages/django/template/+init+.py" in generic_tag_compiler 17. raise [[TemplateSyntaxError]](message)
kerem 2026-02-27 11:09:37 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Antoine Nguyen on 2009-04-29T14:49:09Z

Fixed by [5c833937c622]

<!-- gh-comment-id:29813119 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Antoine Nguyen on 2009-04-29T14:49:09Z** Fixed by [5c833937c622]
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#6
No description provided.