My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 19: Sqlite3 backend not working with current django version, one line needs to be changed
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Nov 11
Type-Defect
Priority-Medium
Milestone-Release1.1


Sign in to add a comment
 
Reported by JACortinas, Nov 10, 2009
Using the current stable version of Django(1.1.1), the sqlite3 database
backed provided by doj does not currently work. The issue is that on line
106 of base.py in "doj/backends/zxjdbc/sqlite3" needs to pass self when it
initializes the DatabaseClient(). Basically change "DatabaseClient()" to
"DatabaseClient(self)", that is what is in the current sqlite3 backend of
django as well.

Comment 1 by leo.soto, Nov 11, 2009
You are right. I can do the change, but note that the sqlite3 backend is highly
experimental and basically doesn't work for anything serious yet. It seriously needs
someone to step up, make it work and become its maintainer.
Labels: Milestone-Release1.1
Comment 2 by JACortinas, Nov 11, 2009
What would it take to make it up to par?
Comment 3 by leo.soto, Nov 11, 2009
First, we need to check if the way the code is currently implemented makes sense. I
tried to reuse as much from the Django builtin sqlite3 backend as possible but looks
like the code I wrote to interface with the JDBC driver is not exposing the same
semantics. It could be a couple of minor problems in which case the effort to get it
running won't be so big.

On the other hand, if the current approach is definitely not promising, then we need
come up with a better way to write the backend. That could be a lot of work (or not,
if the new way to do it still reuses Django's sqlite3 backend code as much as possible)

BTW, we should move this discussion to the mailing list
<http://groups.google.com/group/django-jython-dev>
Status: Accepted
Comment 4 by leo.soto, Nov 11, 2009
Fixed in r147.
Status: Fixed
Comment 5 by tibor.b...@hotmail.com, Dec 10, 2009
I've corrected the base.py, but I've got this error message:

Caught an exception while rendering: Traceback (most recent call
last):
  File "/Users/iM1/jython2.5.1/Lib/site-packages/doj/backends/zxjdbc/
sqlite3/base.py", line 143, in xFunc
    assert self.args() == num_args
AttributeError: 'func' object has no attribute 'args'
 [SQLCode: 0] 
Sign in to add a comment

Hosted by Google Code