new cookie api

Bug #176752 reported by Aaron Swartz
2
Affects Status Importance Assigned to Milestone
web.py
Confirmed
Medium
Anand Chitipothu

Bug Description

the current cookie API is kind of confusing. what if we just provided
a storage-like object so that you could do:

>>> web.cookies.foo
AttributeError: no such attribute 'foo'
>>> web.cookies.foo = 'bar'
>>> web.cookies.foo
'bar'
>>> del web.cookies['foo']
>>> web.cookies.set('foo', 'bar', expires=5)

this would replace web.cookies and web.setcookie

Revision history for this message
Aaron Swartz (aaronsw) wrote :

I can probably implement this if you want

Changed in webpy:
assignee: nobody → anandology
importance: Undecided → Medium
milestone: none → 0.3
status: New → Confirmed
Changed in webpy:
milestone: 0.3 → 0.35
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.