In saprovider.py, it appears to be intentional:

    def add(self, table_name=None, values={}, columns_limit=None):
        for key, value in values.iteritems():
            if isinstance(value, FieldStorage):
                values[key] = value.value

        #remove the primary keys which could cause a conflict
        kw = self._remove_primary_keys_if_not_foreign(table_name,
values)

odd behavior, but, intentional.

On May 3, 12:03 pm, "Diez B. Roggisch" <[email protected]> wrote:
> I'd say it's a bug. A function/method shouldn't mess with passed
> mutables unless that's somehow documented or justified.
>
> I presume all that happens is something like this:
>
> id = values.pop("id", None)
> if id is not None:

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to