Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#15297 closed (fixed)

SQLiteCursorWrapper Regression with SVN verson of Django 1.3

Reported by: leonov Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords: blocker
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I've been periodically running our site against 1.3 SVN to check for problems, play with new features, etc... This morning after running svn update, I ran into a regression:

Summary

  • AttributeError while rendering: 'SQLiteCursorWrapper' object has no attribute 'db'
  • Problem under SVN revision 15525
  • Runs fine under Django 1.2.3
  • Runs fine under Django 1.3 beta 1
  • Full traceback: http://dpaste.com/413457/

Details

Template error:
In template /home/leonov/Projects/animal3/templates/layout/common.html, error at line 68
   Caught AttributeError while rendering: 'SQLiteCursorWrapper' object has no attribute 'db'

67 : {% block messagess %}
68 :  {% for message in messages %} 
69 : <div class="message {{ message.tags }}">{{ message }}</div>
70 : {% endfor %}
71 : {% endblock messagess %}

(nb. block misspelt, to rule-out name-collision problem).

Removing the message block completely causes the same Exception to be thrown, but this time in a Django Debug Toolbar template:

Template error:
In template /home/leonov/Projects/animal3/env-1.3/lib/python2.6/site-packages/debug_toolbar/templates/debug_toolbar/base.html, error at line 49
   Caught AttributeError while rendering: 'SQLiteCursorWrapper' object has no attribute 'db'

40 : 	{% for panel in panels %}
41 : 		{% if panel.has_content %}
42 : 			<div id="{{ panel.dom_id }}" class="panelContent">
43 : 				<div class="djDebugPanelTitle">
44 : 					<a href="" class="djDebugClose">{% trans "Close" %}</a>
45 : 					<h3>{{ panel.title|safe }}</h3>
46 : 				</div>
47 : 				<div class="djDebugPanelContent">
48 : 				    <div class="scroll">
49 : 				         {{ panel.content|safe }} 
50 : 				    </div>
51 : 				</div>
52 : 			</div>
53 : 		{% endif %}
54 : 	{% endfor %}

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by russellm

  • Component changed from Uncategorized to Database layer (models, ORM)
  • Keywords blocker added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 follow-up: Changed 3 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

In [15527]:

Fixed #15297 -- Corrected an attribute naming regressoin from fixing #9964. Thanks to leonov for the report.

comment:3 in reply to: ↑ 2 Changed 3 years ago by leonov

Replying to russellm:

In [15527]:

Fixed #15297 -- Corrected an attribute naming regressoin from fixing #9964. Thanks to leonov for the report.

I can confirm the fix worked (as of SVN 15528)

Awesome fast work Russell, thanks! -- Leon Matthews

comment:4 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.