One other point, I was trying out the dogpile cache example and ran into (after 
I stuck a ".encode('utf-8')" into the key mangler since I'm using Python-3 and 
pylibmc):

_pickle.PicklingError: Can't pickle <class 'sqlalchemy.ext.automap.Person'>: 
attribute lookup sqlalchemy.ext.automap.Person failed

This was fixed by a hack

    sqlalchemy.ext.automap.__dict__[cls.__name__] = cls

run over all the automap-created classes.  It might be I'm only having to do 
this because I'm doing something wrong elsewhere, but I just thought I'd 
mention it in case it comes up for someone.



On 2014.2.2, at 14:22, Adrian Robert <adrian.b.rob...@gmail.com> wrote:

> Thanks, that works beautifully.
> 
> I had noticed name_for_scalar_relationship parameter but I guess wasn't 
> confident enough that I understood what was going on to try it.  :-[
> 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "sqlalchemy" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sqlalchemy/p6YkPuCs_Ks/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to