Ticket #5 (assigned enhancement)

Opened 1 year ago

Last modified 10 months ago

Preliminary patch for SQLAlchemy 0.4 support.

Reported by: kgi Assigned to: edsuom (accepted)
Priority: minor Milestone:
Component: sAsync Version:
Keywords: Cc:

Description

This is a preliminary patch for SQLAlchemy 0.4 support. It should work with both SA0.3 and 0.4. It is probably not ready for inclusion in the main sASync tree as it doesn't have any supporting unit tests, so it's in the "well, it works for me" category for the time being.

However, it might be of use to anyone out there who wants to use sASync with SQLAlchemy 0.4, and some feedback might help iron out any bugs.

Attachments

sasync-20071116.diff (2.5 kB) - added by kgi on 02/08/08 05:42:13.
Patch for preliminary support for SQLAlchemy 0.4.

Change History

02/08/08 05:42:13 changed by kgi

  • attachment sasync-20071116.diff added.

Patch for preliminary support for SQLAlchemy 0.4.

03/13/08 00:52:59 changed by agtilden

How about something like this for the version check?

SA04 = False
try:
   if float(SA.__version__[:3]) == 0.4:
        SA04 = True
except:
    # Not strictly an Import Error, but close enough. 
    raise ImportError("Failed to determine SQLAlchemy version")

03/22/08 21:05:57 changed by edsuom

  • status changed from new to assigned.

03/22/08 21:07:05 changed by edsuom

  • status changed from assigned to new.

Thanks! I'll incorporate this and get some tests written for it.

03/22/08 21:08:15 changed by edsuom

  • status changed from new to assigned.