Postman with johnny-cache

Issue #40 on hold
Сергей Кудрин created an issue

I have this issue with johnny-cache middleware enabled:

Request URL:    http://localhost:8000/messages/inbox/
Django Version: 1.5.5
Exception Type: TypeError
Exception Value:    
unbound method execute_sql() must be called with SQLCompiler instance as first argument (got CompilerProxy instance instead)
Exception Location: /home/.../johnny/cache.py in newfun, line 352

In template /home/dev/projects/shavandin/templates/postman/base_folder.html, error at line 18

{% if invalid_page %}
16  <p>{% trans "Sorry, this page number is invalid." %}</p>
17  {% else %}
18  **{% if pm_messages %}**
19  {% block pm_by_modes %}<div id="pm_by_modes">
20  <span class="pm_by_mode">{% if by_message %}<a href="{{ by_conversation_url }}">{% endif %}{% trans "by conversation" %}{% if by_message %}</a>{% endif %}</span>
21  <span class="pm_by_mode">{% if by_conversation %}<a href="{{ by_message_url }}">{% endif %}{% trans "by message" %}{% if by_conversation %}</a>{% endif %}</span>
22  </div>{% endblock pm_by_modes %}

Comments (11)

  1. Patrick Samson repo owner
    • changed status to open

    Please give more context details. All versions : python, django, johnny-cache, postman, db, ... Any sub cache backends? What's your "line 352"? Your cache settings? Does it work with the cache disabled?

  2. Patrick Samson repo owner

    A comment to keep you informed.

    The problem is located in the johnny-cache application, not in django-postman.

    I developed a fix in the johnny code. Give me some more time to arrange it to be a clean patch and a candidate for a pull request.

  3. Сергей Кудрин Account Deactivated reporter

    Please, ignore my previous message. Seems everything is ok, thank you.

  4. Log in to comment