I'd like to point out a possible gotcha with reparam() in webpy 0.23.

The "issue" I described in
http://groups.google.com/group/comp.lang.python/browse_thread/thread/58325e367a2646e8
cost me a few hours of debugging today.

Something like the following:
    session = dict(id=1, name="janto")
    db.update("sessions", "id=$id", vars=session, **session)
will unexpectedly add __builtins__ to the session dict. This caused me
some headaches as I reused the session dict later on.

Maybe it's just my coding style, but I suggest making a copy of the
vars dict inside reparam().

Regards
Janto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to