[sqlalchemy] Re: Announcing Elixir!

2007-02-13 Thread Robert Gravina


On Feb 13, 2007, at 4:35 AM, Jonathan LaCour wrote:


 Today, we are pleased to announce the release of Elixir
 (http://elixir.ematia.de), a declarative mapper for SQLAlchemy.

Great work! I'm new to SQLAlchemy, but after defining my model for my  
first project I thought that it was unnecessarily complex (I  don't  
mean that it was hard, just that were was a lot of work to define  
models for simple objects). I seemed like a potential maintenance  
problem to have an attribute defined on an object, again in a table  
definition. Not only that, but you've provided a way to easily define  
many-to-many relationships without having to define special tables!  
Score one for abstraction, and I'm sure it won't get in the way of  
using SQLAlchemy as is if need be.

I, for one, will be using Elixir!

Robert


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---



[sqlalchemy] Re: list of strings/unicode strings

2007-02-08 Thread Robert Gravina


On Feb 7, 2007, at 9:43 PM, Sébastien LELONG wrote:

 Is there anyway I can specify the list of tags like this, instead?

 book.tags = [upython, uprogramming]

 Well you could use a PickleType column in your book table... Of  
 course, you'll
 loose functionnalities you could have using a real Tag object. The  
 problem is
 how you consider a tag in your model...


Thanks! I didn't know about PickleType... the data will be pickled  
but also should maintain ordering of the list!

Cheers,

Robert


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---



[sqlalchemy] Re: list of strings/unicode strings

2007-02-08 Thread Robert Gravina


On Feb 8, 2007, at 5:38 AM, Christopher Arndt wrote:


 Cliff Wells schrieb:
 You could use another table for maintaining the tags and a  
 property for
 maintaining them, like Lee does here:

 http://www.splee.co.uk/2006/10/28/simpleblog-part-3-many-to-many- 
 relationships/

 Here's another good tutorial:

 How To Implement Tagging With TurboGears and SQLAlchemy: http:// 
 tinyurl.com/2n5vlu


Thanks! I'm not actually interested in reusing the the strings as  
tags, just on persisting a list of strings; I used tags in that  
example but it's just a list of strings. Sebastians pickle approach  
would be the simplest, with the disadvantage (perhaps) being that the  
data is pickled. With these other approaches I'd still have to  
maintain ordering of the list, which I suppose wouldn't be that hard  
to do.

Thanks all for your fast and useful responses.

Robert


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---