[sqlalchemy] sqlalchemy introspection How?

2007-04-27 Thread johnny
I have tables created using another orm. I just want to know, how I can create sqlalchemy classes based on the tables, that are already there in the database? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[sqlalchemy] Re: MemoryError in unitofwork.py

2007-04-27 Thread Brandon Goldfedder
Okay - next dump quesion: How do I clear out the objects in a session that I no longer need to reference (in this case all of them)... Will python GC take care of this? --Brandon On Apr 25, 7:15 am, Michael Bayer [EMAIL PROTECTED] wrote: On Apr 24, 2007, at 10:59 AM,BrandonGoldfedder wrote:

[sqlalchemy] Re: SQLAlch. + ODBC + DBISAM... :-(

2007-04-27 Thread Rick Morrison
I'd be happy to host a buildslave here on a VM. AFAIK, the buildslaves connect outbound to the master, which would work for me. As far as hosting the master, I dunno -- we're out here in the hinterlands of Connecticut in dynamic IP address land for now. On 4/27/07, Michael Bayer [EMAIL

[sqlalchemy] Re: Multiple inheritance and relations

2007-04-27 Thread Michael Bayer
On Apr 27, 2007, at 11:17 AM, Dave Harrison wrote: Hi all, I've got a situation where I have a table of data that is common, with the subtables just adding an extra couple of fields. Using multiple inheritance I fit it together as below (pretty much the same as the documented

[sqlalchemy] Re: Problem with clear_mapper

2007-04-27 Thread Kevin Schmidt
I can use clear_mappers() because I use mod_python and my mappers are defined during init. Is there any other way I can get this select mapped to my object? non_primary=True (see the docs on mutliple mappers for a class) But that would mean I would define a new non_primary mapper every

[sqlalchemy] SQLAlchemy at OSCON

2007-04-27 Thread Jonathan Ellis
As I understand it, the schedule is still tentative at this point, but the fact that I'll get to teach a SQLAlchemy tutorial is not. (Like my PyCon tutorial, this will be aimed at those who have not yet used SA.) O'Reilly Open Source Convention 2007 at the Oregon Convention Center in Portland,

[sqlalchemy] Re: [Sqlalchemy-users] Objects with just some fields

2007-04-27 Thread Mike Orr
On 4/27/07, Michael Bayer [EMAIL PROTECTED] wrote: On Apr 27, 2007, at 2:19 PM, Mike Orr wrote: Is it possible to make a mapper class that loads modifies only some fields in a table rather than all the fields, yet still autoloads the fields rather than having hardcoded column types?

[sqlalchemy] Using MAX in a relation() without an inner SELECT

2007-04-27 Thread Brian Beck
Hi, We've got a CMS model with a revisioned page tree. Our pages have a revision number and a parent page (it's a self-referential mapper). One property we'd like to have in our assign_mapper call is a latest_parent relation -- a property that returns the page with page_id = parent_id and