Django-mssql with the dream of passing the test suite

113 views
Skip to first unread message

Michael Manfre

unread,
May 16, 2012, 4:27:00 PM5/16/12
to django-d...@googlegroups.com
A few weeks ago, I started down the path of updating django-mssql so that it supports Django 1.4. I moved the project over to bitbucket (http://bitbucket.org/Manfre/django-mssql/), docs are deployed to read the docs (http://django-mssql.readthedocs.org), and have made it a policy of deploying packages to PyPi.

Django 1.4 support is mostly there and so far is passing all testing for the site responsible for the backend's existence (http://www.src.org). To help avoid surprises and ensure life as a 3rd party database backend maintainer is a lot less painful, I have set a goal of having django-mssql pass the test suite. This is a non-trivial task that will require changes to django and django-mssql. I've already submitted a few tickets that bring me closer to my goal and it was advised that I send this message as a heads up regarding my intentions to avoid tickets being closed with a "mssql isn't officially supported by Django" comment.

If you review one of these tickets, please keep my goal in the back of your mind. I welcome feedback on better ways of approaching my proposed changes.

Regards,
Michael Manfre

VernonCole

unread,
May 17, 2012, 9:46:19 AM5/17/12
to django-d...@googlegroups.com
Micheal:

   I note that your code is using the Adam Vandenberg fork of adodbapi.  I have rolled Adam's changes back into the main branch of adodbapi, so that django can have the advantages of numerous bug fixes, as well as the ability to run in Python3 and IronPython.  I have attempted to make all of the features that Adam added work exactly the same way -- except that you will have to add a line of code to inform adodbapi that it needs to switch paramstyle to 'format' when it connects.  As far as I know, this is the only db-api module which is capable of switching paramstyle at run time -- and I did it all for you.

  Please, please, please import my new django-compatible adodbapi from https://sourceforge.net/projects/adodbapi  (or PyPi, same version in both places).

  Let me know if you need any help or changes.  I will modify the main fork to accommodate your needs.  I _really_ want this to work.
--
Vernon Cole

VernonCole

unread,
May 17, 2012, 10:14:23 AM5/17/12
to django-d...@googlegroups.com
I should mention that if you use pywin32 build 215 or newer, an appropriate version of adodbapi will already be included.  You do not need to download it separately from sourceforge or PyPi unless you are running IronPython. Since pywin32 is already a dependency for django-mssql, you should be covered.  Also, it should not be too hard to add support for ACCESS and 3rd party databases.
--
Vernon


On Wednesday, May 16, 2012 2:27:00 PM UTC-6, Michael Manfre wrote:

Michael Manfre

unread,
May 18, 2012, 11:15:02 AM5/18/12
to django-d...@googlegroups.com
Thanks for the heads up. I'm getting very close to having the test suite pass. After I accomplish that goal and establish a more solid reference point for django-mssql, I'll look in to the work you've done with adodbapi.

Regards,
Michael Manfre
Reply all
Reply to author
Forward
0 new messages