[Grok-dev] Re: megrok.rdb updated

Martijn Faassen faassen at startifact.com
Wed Jun 25 11:32:28 EDT 2008


Hey,

Tim Terlegård wrote:
[snip]
> Can't self.context.set(department) create the session and add the
> deparment to it behind the scenes?

Yes, technically it shouldn't be a problem (as long as we have a single 
engine per site/application, but worrying about the other use case gets 
rather confusing).

I actually had the code written already but removed it again just to see 
what it would look like without. After all, SQLAlchemy's 
MappedCollection, on which we base our Container, doesn't do the 
session.add() either.

Regards,

Martijn



More information about the Grok-dev mailing list