{5} Assigned, Active Tickets by Owner (Full Description) (2 matches)

List tickets assigned, group by ticket owner. This report demonstrates the use of full-row display.

edsuom

Ticket Summary Component Milestone Type Created
Description
#6 Support for creating tables strictly sequentially. sAsync enhancement 02/08/08

This patch optionally allows the user to create tables in strict sequence.

When using the usual table() method to create lots of tables with foreign keys, I have sometimes seen table creation fail with a message saying the referenced table does not exist. This is using PostgreSQL 8.2; other DBs may not exhibit this behaviour.

This appears to be a rare race condition somewhere in the interaction between the DB, the access library, SQLAlchemy and sAsync. Once the tables are created successfully, everything seems to work normally.

This patch adds two new methods to the AccessBroker object: autoTable() and finishedCreatingTables().

One uses autoTable() exactly as one uses table() within startup(), but one appends a call to finishedCreatingTables() at the end of the method. This returns a deferred which fires with a list of 2-tuples, much as using a DeferredList? would.

For example:

def startup ( self ):
    self.autoTable (
            'foo',
            C ( 'foo1', sa.Integer, primary_key = True ),
            C ( 'foo2', sa.String() ),
    )
    self.autoTable (
            'bar',
            C ( 'bar1', sa.Integer, primary_key = True ),
            C ( 'bar2', sa.String() ),
    )
    return self.finishedCreatingTables()

#5 Preliminary patch for SQLAlchemy 0.4 support. sAsync enhancement 02/08/08

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.


Note: See TracReports for help on using and creating reports.