Hello,

It looks like:

dict = {'email':''u...@email.com', 'name':'dude', 'accesskey': [some
hash string]}

I tried insertion with other table and other dict and it worked. So I
figured that, as you properly guessed, it must be the problem relating
the dict that I am trying to insert.

But what puzzles me is that if the dict is the source of the problem,
why wouldn't db.table.bulk_insert([dict]) fail?

On 9월8일, 오후11시20분, Bruno Rocha <rochacbr...@gmail.com> wrote:
> How your dict looks like?
>
> http://zerp.ly/rochacbruno
> Em 08/09/2011 11:10, "seongjoo" <seongjoo....@gmail.com> escreveu:
>
>
>
>
>
>
>
> > Hello,
>
> > I am using web2py 1.98.2.
>
> > The problem is that below instruction fails with error message:
> > "TypeError: insert() keywords must be strings"
>
> > db.table.insert(**dictionary)
>
> > While db(query).update(**dictionary) works find.
>
> > For now, I have to use as a workaround as below.
>
> > bulk_insert( [dictionary] )
>
> > What would be wrong?

Reply via email to