> Wow! That's a long and a very wrong way of doing things. This is
> Python! Do not evaluate strings - just manipulate objects.
Thanks very much for the advice, I thought there must be a nicer way to
do it. I ended up using apply() with the class name and the keyword
dictionary.
I've put the changed code at http://www.clever.co.nz/FormValues.py if
you're interested.
I tried _lazyUpdate = True and it does half of what I need (i.e. defers
updates to the database until syncUpdate() is called). Is there a
similar mechanism for deferring inserts? I hope so, then I can get rid
of this ugly code for good!
Cheers
Peter
|