[Zope-dev] Re: could zope.sqlalchemy flush before committing?

2008-07-21 Thread Malthe Borch

Martijn Faassen wrote:

Thanks for the offer. I think this is up to Laurence to decide, I'd
say. I'm aiming my work at the 0.5 series so I'm fine with requiring
0.5.


Me too, but I'd be careful to *require* an unreleased version.

\malthe
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: could zope.sqlalchemy flush before committing?

2008-07-21 Thread Martijn Faassen
Hey,

On Mon, Jul 21, 2008 at 9:55 AM, Malthe Borch [EMAIL PROTECTED] wrote:
 Martijn Faassen wrote:

 Thanks for the offer. I think this is up to Laurence to decide, I'd
 say. I'm aiming my work at the 0.5 series so I'm fine with requiring
 0.5.

 Me too, but I'd be careful to *require* an unreleased version.

Well, I was assuming there'd be a (beta) release at least.
z3c.saconfig has been requiring a released beta version of 0.5.

Regards,

Martijn
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: could zope.sqlalchemy flush before committing?

2008-07-21 Thread Michael Bayer
i should be doing 0.4.7 and 0.5beta3 early this week.   both include  
after_attach().



On Jul 21, 2008, at 4:45 AM, Martijn Faassen wrote:


Hey,

On Mon, Jul 21, 2008 at 9:55 AM, Malthe Borch [EMAIL PROTECTED]  
wrote:

Martijn Faassen wrote:


Thanks for the offer. I think this is up to Laurence to decide, I'd
say. I'm aiming my work at the 0.5 series so I'm fine with requiring
0.5.


Me too, but I'd be careful to *require* an unreleased version.


Well, I was assuming there'd be a (beta) release at least.
z3c.saconfig has been requiring a released beta version of 0.5.

Regards,

Martijn


___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: could zope.sqlalchemy flush before committing?

2008-07-19 Thread Michael Bayer


On Jul 19, 2008, at 6:33 AM, Martijn Faassen wrote:


Laurence Rowe wrote:
This is now fixed in trunk. For the moment I'm depending on  
SQLAlchemy trunk for the new after_attach hook until beta3 is  
released.

Maybe it's time to start depending on 0.5?


No problem with that from my side, though of course I think this  
means beta3 should be released first, right?




The 0.4 series can handle an after_attach() hook just as easily as  
0.5...would this make life easier ?

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: could zope.sqlalchemy flush before committing?

2008-07-19 Thread Martijn Faassen
Hi there,

Thanks for the offer. I think this is up to Laurence to decide, I'd
say. I'm aiming my work at the 0.5 series so I'm fine with requiring
0.5.

Regards,

Martijn
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: could zope.sqlalchemy flush before committing?

2008-07-19 Thread Brandon Craig Rhodes
Laurence Rowe [EMAIL PROTECTED] writes:

 This is now fixed in trunk. For the moment I'm depending on SQLAlchemy
 trunk for the new after_attach hook until beta3 is released.

Could the fix be backported and a new release made?  I have to have this
particular system ready for production next week, and would love to not
have to explain why it was running out of Subversion in production. :-)

-- 
Brandon Craig Rhodes   [EMAIL PROTECTED]   http://rhodesmill.org/brandon

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: could zope.sqlalchemy flush before committing?

2008-07-19 Thread Michael Bayer


On Jul 19, 2008, at 10:29 AM, Brandon Craig Rhodes wrote:


Laurence Rowe [EMAIL PROTECTED] writes:

This is now fixed in trunk. For the moment I'm depending on  
SQLAlchemy

trunk for the new after_attach hook until beta3 is released.


Could the fix be backported and a new release made?  I have to have  
this
particular system ready for production next week, and would love to  
not
have to explain why it was running out of Subversion in  
production. :-)



backported to ... 0.4 ?  sure.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: could zope.sqlalchemy flush before committing?

2008-07-19 Thread Laurence Rowe

Michael Bayer wrote:


On Jul 19, 2008, at 10:29 AM, Brandon Craig Rhodes wrote:


Laurence Rowe [EMAIL PROTECTED] writes:


This is now fixed in trunk. For the moment I'm depending on SQLAlchemy
trunk for the new after_attach hook until beta3 is released.


Could the fix be backported and a new release made?  I have to have this
particular system ready for production next week, and would love to not
have to explain why it was running out of Subversion in production. :-)



backported to ... 0.4 ?  sure.


Yes please. Sounds like this would be helpful to people.

Laurence

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: could zope.sqlalchemy flush before committing?

2008-07-18 Thread Brandon Craig Rhodes
Brandon Craig Rhodes [EMAIL PROTECTED] writes:

 I complained recently about problems with things disappearing from an
 in-memory sqlite database.  It appears that my problems were actually
 symptoms of something else: that, so far as I can see, doing a

transaction.commit()

 when SQLAlchemy is active does *not* first do a session().commit()!

Drat.  I meant, as I hope the code examples that followed made clear,
that doing a transaction.commit() does not do a session().flush().

-- 
Brandon Craig Rhodes   [EMAIL PROTECTED]   http://rhodesmill.org/brandon

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )