Re: [sqlalchemy] Tea Rota

2012-01-13 Thread Ian Kelly
On Thu, Jan 12, 2012 at 3:14 PM, Calum MacLeod pan...@sky.com wrote:     if date not in duties:     duty = Duty(date=date)     duties[date] = duty     if name not in volunteers:     volunteer = Volunteer(fore=fore, surn=surn, name=name)     volunteers[name] = volunteer    

Re: [sqlalchemy] Tea Rota

2012-01-13 Thread Calum MacLeod
Thanks, Ian, I appreciate your advice and have removed the first conditional (if name not in duties). Have now changed that to: duty = Duty(date=date) duties[date] = duty if name not in volunteers: volunteer = Volunteer(fore=fore, surn=surn, name=name)

Re: [sqlalchemy] Tea Rota

2012-01-13 Thread werner
Hi Calum, On 01/13/2012 01:31 PM, Calum MacLeod wrote: Thanks, Ian, I appreciate your advice and have removed the first conditional (if name not in duties). Have now changed that to: duty = Duty(date=date) duties[date] = duty if name not in volunteers: volunteer =

Re: [sqlalchemy] Tea Rota

2012-01-13 Thread Calum MacLeod
Dear Werner, Thanks for completing the puzzle for me! I followed your code precisely and it worked as you would have expected. So now I have the @hybrid property in my class definition too. (The reason that I ended up previously with fore,surn and name was that I was not sure of how the line

[sqlalchemy] [sqlamp] version 0.6 is out

2012-01-13 Thread anton
Hi all, I'm happy to announce the availability of sqlamp 0.6. This release introduces the support of moving nodes and adds compatibility with python 3.2 and SQLAlchemy 0.7.x. See full changelog at http://sqlamp.angri.ru/ sqlamp is an implementation of materialized path for SQLAlchemy. It is