58 messages in com.googlegroups.sqlalchemy[sqlalchemy] Re: Integrating the ORM ...
FromSent OnAttachments
Phillip J. Eby26 Feb 2008 09:18 
sdob...@sistechnology.com26 Feb 2008 10:36 
Michael Bayer26 Feb 2008 11:05 
Phillip J. Eby26 Feb 2008 11:42 
Michael Bayer26 Feb 2008 12:27 
Michael Bayer26 Feb 2008 12:28 
sdob...@sistechnology.com26 Feb 2008 12:35 
sdob...@sistechnology.com26 Feb 2008 13:05 
jason kirtland26 Feb 2008 13:51 
Phillip J. Eby26 Feb 2008 14:27 
Phillip J. Eby26 Feb 2008 14:39 
Michael Bayer26 Feb 2008 14:44 
Michael Bayer26 Feb 2008 16:22 
Phillip J. Eby26 Feb 2008 17:07 
Phillip J. Eby26 Feb 2008 17:30 
Michael Bayer26 Feb 2008 17:39 
sdob...@sistechnology.com26 Feb 2008 22:05 
Michael Bayer26 Feb 2008 23:48 
sdob...@sistechnology.com26 Feb 2008 23:50 
svilen27 Feb 2008 04:58 
Judah De Paula27 Feb 2008 06:46 
Michael Bayer27 Feb 2008 07:22 
Michael Bayer27 Feb 2008 08:58.py
Judah De Paula27 Feb 2008 09:00 
Judah De Paula27 Feb 2008 09:05 
jason kirtland27 Feb 2008 09:19 
Michael Bayer27 Feb 2008 09:40 
Michael Bayer27 Feb 2008 10:06 
Phillip J. Eby27 Feb 2008 12:10 
Michael Bayer27 Feb 2008 13:03 
Michael Bayer27 Feb 2008 13:09 
sdob...@sistechnology.com27 Feb 2008 22:50 
sdob...@sistechnology.com27 Feb 2008 23:20 
Michael Bayer28 Feb 2008 07:18 
Michael Bayer28 Feb 2008 13:16 
Michael Bayer28 Feb 2008 13:19 
sdob...@sistechnology.com28 Feb 2008 13:25 
sdob...@sistechnology.com28 Feb 2008 13:38 
sdob...@sistechnology.com28 Feb 2008 14:15 
Phillip J. Eby28 Feb 2008 14:17 
Phillip J. Eby28 Feb 2008 14:26 
sdob...@sistechnology.com28 Feb 2008 14:37 
Michael Bayer28 Feb 2008 14:41 
Michael Bayer28 Feb 2008 14:48 
sdob...@sistechnology.com28 Feb 2008 15:22 
sdob...@sistechnology.com28 Feb 2008 15:38 
Phillip J. Eby28 Feb 2008 16:15 
Phillip J. Eby28 Feb 2008 16:26 
sdob...@sistechnology.com28 Feb 2008 22:59 
Phillip J. Eby29 Feb 2008 07:38 
Michael Bayer29 Feb 2008 09:55.patch
Phillip J. Eby29 Feb 2008 10:44 
Judah De Paula29 Feb 2008 11:08 
Phillip J. Eby03 Mar 2008 10:38.patch
Michael Bayer03 Mar 2008 11:03 
Phillip J. Eby04 Mar 2008 16:27 
Michael Bayer05 Mar 2008 07:42 
jason kirtland06 Mar 2008 14:41 
Subject:[sqlalchemy] Re: Integrating the ORM with Trellis
From:Phillip J. Eby (pj@telecommunity.com)
Date:02/26/2008 05:30:54 PM
List:com.googlegroups.sqlalchemy

At 08:08 PM 2/26/2008 -0500, Phillip J. Eby wrote:

So, let me see if I get this... for ClassState, it appears that I do not have to have an 'attrs' dict, right? Everything is accessed through the defined methods?

Whoops... apparently not (this code is from sqlalchemy.orm.attributes in the branch):

def _managed_attributes(class_): """return all InstrumentedAttributes associated with the given class_ and its superclasses."""

return chain(*[cl._class_state.attrs.values() for cl in class_.__mro__[:-1] if hasattr(cl, '_class_state')])

Still, it occurs to me I probably *want* an attrs dict anyway (gotta store those darn things somewhere), so this probably isn't a big deal.