Re: [sqlalchemy] mortar_rdb 1.2.0 released!

2011-07-17 Thread Michael Bayer

On Jul 17, 2011, at 5:13 AM, Chris Withers wrote:

> On 17/07/2011 10:12, Wichert Akkerman wrote:
>> On 2011-7-17 11:07, Chris Withers wrote:
>>> On 30/06/2011 09:30, Wichert Akkerman wrote:
 On 06/30/2011 10:14 AM, Chris Withers wrote:
> - Specify sqlalchemy 0.6 as a requirement, until
> zope.sqlalchemy is ported, mortar_rdb shouldn't be
> used with :mod:`sqlalchemy` 0.7.
 
 What is missing? zope.sqlalchemy seems to work fine with sqlalchemy 0.7
 as far as I've seen.
>>> 
>>> It uses an old-fashioned SessionExtension, it needs to be ported over to
>>> the new events stuff that arrived in 0.7.
>> 
>> That might be a nice change, but the 'old-fashioned SessionExtension'
>> still works, so I see no reason not to use it.
> 
> Michael,
> 
> Is there a migration guide for moving from SessionExtension to the new events 
> stuff anyway? (with example for the feeble of mind, like me ;-) )

migration guide  well we're talking about callables either attached to an 
Extension class, or, just wherever.

So its  1. delete the line with "SessionExtension"/"MapperExtension"/etc.   
2. dedent all the methods below it to module level callables  3. remove the 
"self," from all the callables 4. apply the event.listens_for decorator and/or 
event.listen function to the desired target(s).  5. remove the usage of the 
"extension" keyword from the Session/Mapper/attribute/engine/etc.

Or, replace 1., 2. and 3. with 1. instantiate the 
SessionExtension/MapperExtension/ etc. whatever, then just use event.listen() 
with each of the attributes.

Easy !

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.



Re: [sqlalchemy] mortar_rdb 1.2.0 released!

2011-07-17 Thread Chris Withers

On 17/07/2011 10:12, Wichert Akkerman wrote:

On 2011-7-17 11:07, Chris Withers wrote:

On 30/06/2011 09:30, Wichert Akkerman wrote:

On 06/30/2011 10:14 AM, Chris Withers wrote:

- Specify sqlalchemy 0.6 as a requirement, until
zope.sqlalchemy is ported, mortar_rdb shouldn't be
used with :mod:`sqlalchemy` 0.7.


What is missing? zope.sqlalchemy seems to work fine with sqlalchemy 0.7
as far as I've seen.


It uses an old-fashioned SessionExtension, it needs to be ported over to
the new events stuff that arrived in 0.7.


That might be a nice change, but the 'old-fashioned SessionExtension'
still works, so I see no reason not to use it.


Michael,

Is there a migration guide for moving from SessionExtension to the new 
events stuff anyway? (with example for the feeble of mind, like me ;-) )


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.



Re: [sqlalchemy] mortar_rdb 1.2.0 released!

2011-07-17 Thread Wichert Akkerman

On 2011-7-17 11:07, Chris Withers wrote:

On 30/06/2011 09:30, Wichert Akkerman wrote:

On 06/30/2011 10:14 AM, Chris Withers wrote:

- Specify sqlalchemy 0.6 as a requirement, until
zope.sqlalchemy is ported, mortar_rdb shouldn't be
used with :mod:`sqlalchemy` 0.7.


What is missing? zope.sqlalchemy seems to work fine with sqlalchemy 0.7
as far as I've seen.


It uses an old-fashioned SessionExtension, it needs to be ported over to
the new events stuff that arrived in 0.7.


That might be a nice change, but the 'old-fashioned SessionExtension' 
still works, so I see no reason not to use it.


Wichert.


--
Wichert AkkermanIt is simple to make things.
http://www.wiggy.net/  It is hard to make things simple.

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.



Re: [sqlalchemy] mortar_rdb 1.2.0 released!

2011-07-17 Thread Chris Withers

On 30/06/2011 09:30, Wichert Akkerman wrote:

On 06/30/2011 10:14 AM, Chris Withers wrote:

- Specify sqlalchemy 0.6 as a requirement, until
zope.sqlalchemy is ported, mortar_rdb shouldn't be
used with :mod:`sqlalchemy` 0.7.


What is missing? zope.sqlalchemy seems to work fine with sqlalchemy 0.7
as far as I've seen.


It uses an old-fashioned SessionExtension, it needs to be ported over to 
the new events stuff that arrived in 0.7.


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.



Re: [sqlalchemy] mortar_rdb 1.2.0 released!

2011-06-30 Thread Wichert Akkerman

On 06/30/2011 10:14 AM, Chris Withers wrote:

- Specify sqlalchemy 0.6 as a requirement, until
  zope.sqlalchemy is ported, mortar_rdb shouldn't be
  used with :mod:`sqlalchemy` 0.7.


What is missing? zope.sqlalchemy seems to work fine with sqlalchemy 0.7 
as far as I've seen.


WIchert.

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.



[sqlalchemy] mortar_rdb 1.2.0 released!

2011-06-30 Thread Chris Withers

Hi All,

I'm pleased to announce a new release of mortar_rdb.

This package ties together SQLAlchemy, sqlalchemy-migrate and
the component architecture to make it easy to develop projects
using SQLAlchemy through their complete lifecycle.

Changes in this release were:

- Pass None as the default for echo rather than False on the
  advice of Daniel Holth.

- When using mortar_rdb.registerSession, allow exlicit
  disabling of two-phase commit.

- No longer log passwords during session registration.

- Specify sqlalchemy 0.6 as a requirement, until
  zope.sqlalchemy is ported, mortar_rdb shouldn't be
  used with :mod:`sqlalchemy` 0.7.

If you'd like to see what mortar_rdb can do for you, please have a read 
of the narrative usage docs, which give a quick run through of the 
lifespan of a project developers using mortar_rdb:


http://packages.python.org/mortar_rdb/use.html

Full package details including mailing list, irc and bug tracker details 
can be found here:


http://www.simplistix.co.uk/software/python/mortar_rdb

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.