[Zope] Re: converting string to dict ?
Oleg Broytmann
Oleg Broytmann <phd@phd.fep.ru>
Wed, 11 Apr 2001 17:20:33 +0400 (MSD)
On Wed, 11 Apr 2001, Jason Cunliffe wrote:
> This works ok until I try to manipulate the contents of 'dict' paraemter
> directly via teh PythonScript 'test interface or from a typical DTML Method
> such as:
>
> Error Type: AttributeError
> Error Value: 'string' object has no attribute 'items'
Of course it doesn't work. Here, dict is only a string, and I recommend
you to change your arrangements and don't allow the Web to send you dict or
any other Python data.
Oleg.
----
Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.