Re: [Zope-dev] Re: zope.sqlalchemy dependencies does not respect setup.py dev egg

2008-08-04 Thread David Pratt
Hi Laurence. I reverted to 0.2 and I am good to go. I will upgrade to 0.3 when dobbin can use beta0.5.3. Many thanks. Regards, David Laurence Rowe wrote: zope.sqlalchemy specifically requires a SessionExtension hook added in 0.4.7 and 0.5.0b3 to fix a bug that came to light in porting dobbin

Re: [Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-06-02 Thread Marius Gedminas
On Fri, May 30, 2008 at 01:55:44PM -0400, Benji York wrote: On Fri, May 30, 2008 at 1:40 PM, Brian Sutherland [EMAIL PROTECTED] wrote: I've just decided to jettison IAbsoluteURL and make a new interface ICanonicalURL. The adapters for ICanonicalURL are available anywhere without specially

Re: [Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-30 Thread Michael Bayer
On May 28, 2008, at 7:09 PM, Laurence Rowe wrote: Engine configuration is a subset of session configuration. You cannot have a single ScopedSession for a package if you want to have multiple instances of that application. We must work with unbound metadata if we have this goal. That

Re: [Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-30 Thread Brian Sutherland
On Thu, May 29, 2008 at 07:10:16PM +0200, Martijn Faassen wrote: [snip] I'm not sure whether it would be a good idea to wrap this in a session property, or just register it as an adapter. The only other object that would need access to the session (either as a property or through

Re: [Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-30 Thread Brian Sutherland
On Fri, May 30, 2008 at 03:49:46PM +0200, Martijn Faassen wrote: Brian Sutherland wrote: [snip] I'll note that there is a difference between where things are published (IAbsoluteURL) and where you should go to find their canonical representation. One problem I've found with using

Re: [Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-30 Thread Benji York
On Fri, May 30, 2008 at 1:40 PM, Brian Sutherland [EMAIL PROTECTED] wrote: I've just decided to jettison IAbsoluteURL and make a new interface ICanonicalURL. The adapters for ICanonicalURL are available anywhere without specially wrapping the object in a location proxy. IAbsoluteURL doesn't

Re: [Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-30 Thread Benji York
On Fri, May 30, 2008 at 2:35 PM, Martijn Faassen [EMAIL PROTECTED] wrote: I guess one difference here is that it seems more common in the RDB scenario to have multiple ways to reach the same object, and even if you just publish one, you can get to the actual object in multiple ways. In this

Re: [Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-30 Thread Michael Bayer
On May 30, 2008, at 9:44 AM, Martijn Faassen wrote: Hey, Michael Bayer wrote: [snip discussion on BoundMetadata I don't comprehend yet but probably should :)] As far as ScopedSession, it's really just a thread local variable. Like any global threadlocal, you can stick whatever you

Re: [Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-25 Thread Brian Sutherland
On Sat, May 24, 2008 at 09:30:18PM +0100, Laurence Rowe wrote: Brian Sutherland wrote: On Fri, May 23, 2008 at 11:39:39PM +0100, Laurence Rowe wrote: We need to differentiate between the interface for session configuration and session usage from an application. For session usage I think it

Re: [Zope-dev] Re: zope.sqlalchemy, integration ideas

2008-05-24 Thread Brian Sutherland
On Fri, May 23, 2008 at 11:39:39PM +0100, Laurence Rowe wrote: We need to differentiate between the interface for session configuration and session usage from an application. For session usage I think it is fairly simple. We should define an ISessionContext interface such that: class

Re: [Zope-dev] Re: zope.sqlalchemy

2008-05-09 Thread Andreas Jung
--On 9. Mai 2008 11:20:31 +0100 Laurence Rowe [EMAIL PROTECTED] wrote: You need an svn checkout of SQLAlchemy until 0.4.6 is released. Laurence Great, that worked and made all tests pass. Andreas pgpEracgwI4qR.pgp Description: PGP signature ___

Re: [Zope-dev] Re: zope.sqlalchemy

2008-05-07 Thread Michael Bayer
On May 7, 2008, at 7:08 AM, Martijn Faassen wrote: Hi there (especially Christian), I think we can work with explicits saves. In many cases the user won't have to worry about it anyway as the container object will do it for them (besides making the relation), or this 'query container'

Re: [Zope-dev] Re: zope.sqlalchemy

2008-05-07 Thread Michael Bayer
On May 7, 2008, at 1:29 PM, Laurence Rowe wrote: I'm thinking more about having the same classes mapped to different databases at different points in the application. Imagine a departmental address book app. Intstances of the departmental address book are created for each department, each

Re: [Zope-dev] Re: zope.sqlalchemy

2008-05-07 Thread Michael Bayer
On May 7, 2008, at 2:29 PM, Laurence Rowe wrote: When the generic address book application is built you don't know what the departments will be called or indeed how many departments there are. An address book is not be a great example, but I know of intranet portal sites where this is a

Re: [Zope-dev] Re: zope.sqlalchemy

2008-05-06 Thread Michael Bayer
On May 6, 2008, at 12:14 PM, Laurence Rowe wrote: Martijn Faassen wrote: One thing I understood from Christian Theune is that with scoped sessions, explicit session.save() is not always necessary. Since I see it being used here, could you perhaps comment on this? Registering a mapper

Re: [Zope-dev] Re: zope.sqlalchemy

2008-05-06 Thread Christian Theune
Hi, On Tue, May 06, 2008 at 12:53:05PM -0400, Michael Bayer wrote: On May 6, 2008, at 12:14 PM, Laurence Rowe wrote: Martijn Faassen wrote: One thing I understood from Christian Theune is that with scoped sessions, explicit session.save() is not always necessary. Since I see it being

Re: [Zope-dev] Re: zope.sqlalchemy

2008-05-06 Thread Michael Bayer
On May 6, 2008, at 5:24 PM, Martijn Faassen wrote: Hey Michael, Thanks for the input! Michael Bayer wrote: [snip] So I've already not liked save_on_init for a couple of years due to its inherent intrusiveness, and because SA historically does not like being in the business of providing