On Fri, Jul 23, 2010 at 03:14, Enrico <[email protected]> wrote: > Is it illegal to define Fields on simple types that I've defined or > can I only use Field(Integer), Field(Float), String, Unicode etc? I'm > getting error: > type object has no attribute '_set_parent' > Obviously if I throw in a python list type of indeterminate size, that > might pose a probelm for the DB. But what if I have some simple > composite type like a tuple that has fixed size. Is it still no good? > Must I reduce my custom type to relations on the pre-defined simple > types?
You can use any custom type you wish, but you have to define them using SQLAlchemy's way. See: http://www.sqlalchemy.org/docs/reference/sqlalchemy/types.html#custom-types Hope it helps, -- Gaëtan de Menten -- You received this message because you are subscribed to the Google Groups "SQLElixir" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en.
