On Feb 2, 2011, at 4:50 PM, A.M. wrote:

> Hello,
> 
> I am using autoload to load some of my application metadata for views, 
> however, since some information cannot be extracted from the view (such as 
> the primary key) and  because one UserDefinedType I am using cannot be 
> recognized using reflection, I am passing certain column information into the 
> Table __init__ method:
> 
> Table(viewname,
>       metadata,
>       Column('id',Integer,primary_key=True),
>       Column('acl',ACLItemArrayType,nullable=False),
>       autoload=True)
> 
> Unfortunately, I still get "Did not recognize type 'aclitem' of column 'acl'" 
> because the column information is still trying to be reflected. Would it make 
> sense for there to exist an option to exclude column names as part of table 
> reflection and exclude those columns which are specified as part of Table()?

Also, it might be useful to register UserDefinedTypes with an inspector to 
autoload UserDefinedTypes through an additional reverse get_col_spec method.

Cheers,
M

-- 
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.

Reply via email to