Iain Duncan wrote: > I was erroneously trying to re-create mappers on each request when my > abstract model was being created. I had reasons for this that I won't > detail here, but suffice it to say it was a terrible idea because > mappers in SA are globa, so if you make a call to clear_mappers in one > thread you kill them in another concurrently requesting threadl. I need > to make a utility that globally makes my mappers at server startup and > leave them alone.
Yes, you generally do this in something akin to a models.py and the code gets executed at import time. I am curious how you got to a position where you thought you needed to dynamically define mappers. Care to share? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev