I think

cookie.value.strip('"')).items(

On Apr 26, 3:22 am, Rohan <yourbuddyro...@gmail.com> wrote:
> I am trying to fetch some information from cookie
>
>     cookie = cookies.get("xyz", "")
>     if not cookie: return None
>     args = dict((k, v[-1]) for k, v in
> cgi.parse_qs(cookie.strip('"')).items())
>
> but on running, i am getting AttributeError: 'Morsel' object has no
> attribute 'strip' error
>
> Can someone please help me with this?
>
> Thanks
>
> --
> Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en

Reply via email to