Re: [sqlalchemy] custom __init__ methods not being invoked

2013-01-07 Thread Michael van Tellingen
See http://docs.sqlalchemy.org/en/latest/orm/mapper_config.html#constructors-and-object-initialization On Mon, Jan 7, 2013 at 4:47 AM, RM ryan.mckil...@gmail.com wrote: I have a class which inherits from Base. My class has a metaclass which inherits from DeclarativeMeta. Among other things,

[sqlalchemy] Array with custom types in SqlAlchemy 0.8b2

2013-01-02 Thread Michael van Tellingen
Hi all, I'm experimenting a bit with postgresql arrays of uuid's. Unfortunately I'm running into a bug or I'm not really understanding it :-) My schema definition is as follow: table = Table('example', metadata, Column('timestamp', DateTime(timezone=False), primary_key=True),

[sqlalchemy] Array with custom types in SqlAlchemy 0.8

2013-01-02 Thread Michael van Tellingen
Hi all, I'm experimenting a bit with postgresql arrays of uuid's. Unfortunately I'm running into a bug or I'm not really understanding it :-) My schema definition is as follow: table = Table('example', metadata, Column('timestamp', DateTime(timezone=False), primary_key=True),

Re: [sqlalchemy] Array with custom types in SqlAlchemy 0.8b2

2013-01-02 Thread Michael van Tellingen
= table.insert().values( timestamp=datetime.datetime.utcnow(), guids=[uuid.uuid4(), uuid.uuid4()]) engine.execute(stmt) the SQL output is the same. On Jan 2, 2013, at 8:02 AM, Michael van Tellingen wrote: Hi all, I'm experimenting a bit with postgresql arrays of uuid's

Re: [sqlalchemy] Array with custom types in SqlAlchemy 0.8b2

2013-01-02 Thread Michael van Tellingen
()) for uuid_val in val ) On Jan 2, 2013, at 12:55 PM, Michael van Tellingen wrote: Thanks for the detailed response! Inserting the values seems to work fine now. Only retrieving them again doesn't work. I've updated the gist at https://gist.github.com/4433940 The problem seems