[sqlalchemy] odict for mapper properties?

2009-10-19 Thread Gaetan de Menten
Hi Mike, I see in r6413, that you use an ordered dictionary instead of a standard one for properties, in an attempt to fix some jython ordering annoyingness. Is this really necessary to be compliant with Jython? Would you care to explain? I'm quite puzzled as to how that change could have any

[sqlalchemy] Re: odict for mapper properties?

2009-10-19 Thread Michael Bayer
Gaetan de Menten wrote: Hi Mike, I see in r6413, that you use an ordered dictionary instead of a standard one for properties, in an attempt to fix some jython ordering annoyingness. Is this really necessary to be compliant with Jython? Would you care to explain? I'm quite puzzled as to how

[sqlalchemy] License of the example files

2009-10-19 Thread Yannick Gingras
Greetings Alchemists, I plan to base a chunk of my code on one of the examples in sqlalchemy/examples. I just want to make sure that those are free to use. SQLAlchemy is licenced under the X11 (MIT) license. Is it also the case for the examples? -- Yannick Gingras http://ygingras.net

[sqlalchemy] Re: License of the example files

2009-10-19 Thread Michael Bayer
Yannick Gingras wrote: Greetings Alchemists, I plan to base a chunk of my code on one of the examples in sqlalchemy/examples. I just want to make sure that those are free to use. SQLAlchemy is licenced under the X11 (MIT) license. Is it also the case for the examples? it is ! tell

[sqlalchemy] Re: odict for mapper properties?

2009-10-19 Thread Gaetan de Menten
On Mon, Oct 19, 2009 at 16:04, Michael Bayer mike...@zzzcomputing.com wrote: I see in r6413, that you use an ordered dictionary instead of a standard one for properties, in an attempt to fix some jython ordering annoyingness. Is this really necessary to be compliant with Jython? Would you

[sqlalchemy] Re: invalid transaction rollback etc and making a join join

2009-10-19 Thread Jeff Cook
I removed SQLSoup and the caching/stale results issues are gone now. Have to wait a little longer to see if there is any bearing on the MySQL has gone away/invalid transaction thing. Changing the default beaker timeout to something small, like 15 secs, doesn't seem to fix things. Thanks for all

[sqlalchemy] Sessions, threads, TurboGears best practice?

2009-10-19 Thread thatsanicehatyouhave
Hi, I'm hoping someone can help me with properly configuring a session/ transactions for multiple uses as I haven't been able to get it quite right. I've created a python module to contain my model classes and a connection class. This module wil be imported by both single-use scripts

[sqlalchemy] Re: Synchronization problem at backref of a one-to-many relation to the same class.

2009-10-19 Thread Tefnet Developers
Dnia 2009-10-08, czw o godzinie 11:16 -0400, Michael Bayer pisze: Tefnet Developers wrote: Dnia 2009-10-08, czw o godzinie 09:59 -0400, Michael Bayer pisze: Is this a SQLAlchemy bug or my mistake? Backrefs deal with the two-way relation between A-B, but the event does not

[sqlalchemy] using ORM in AttributeExtension

2009-10-19 Thread Tefnet Developers
Hi, and here comes another problem with my project utilizing SQLAlchemy :). I am trying to use ORM in AttributeExtension: (http://dpaste.com/109454/) = import sqlalchemy import sqlalchemy.ext.declarative Base =

[sqlalchemy] purpose of class_mapper

2009-10-19 Thread strattonbrazil
What is the purpose of class_mapper? I can't find it in the .4 docs for the tutorials I'm looking at, yet when I don't call it as https://svn.enthought.com/svn/enthought/sandbox/EnvisageSQLAlchemy/enthought/sqlalchemy/has_traits_orm.py notes, I get a AttributeError: #

[sqlalchemy] Re: purpose of class_mapper

2009-10-19 Thread Michael Bayer
strattonbrazil wrote: What is the purpose of class_mapper? I can't find it in the .4 docs for the tutorials I'm looking at, yet when I don't call it as https://svn.enthought.com/svn/enthought/sandbox/EnvisageSQLAlchemy/enthought/sqlalchemy/has_traits_orm.py notes, I get a