[Metakit] more expectation clashes

Eric S. Johansson esj at harvee.org
Wed May 4 20:11:58 CEST 2005


Eric S. Johansson wrote:
> since the view append takes keyword arguments, I expected it would 
> handle **dictionary arguments like this:
> 
>         data_set = {}
>         for i in fields:
>                 data_set[i]=query[i].encode('ascii')
>         syslog.syslog(str(data_set))
>         view.append(data_set)
> 
> which is part of my conversion code to do with converting unicode to 
> something metakit can cope with.
> 
> looks like it's time for set/getattr.

whoops, my mistake. it works fine if you don't forget a commit in a cgi 
script.

-- 
http://www.wired.com/wired/archive/13.03/view.html?pg=5

The result of the duopoly that currently defines "competition" is that
prices and service suck. We're the world's leader in Internet
technology - except that we're not.


More information about the Metakit mailing list