Trees | Indices | Help |
|
---|
|
object --+ | dict --+ | BaseCookie --+ | SmartCookie
SmartCookie SmartCookie supports arbitrary objects as cookie values. If the object is a string, then it is quoted. If the object is not a string, however, then SmartCookie will use cPickle to serialize the object into a string representation.
Note: Large cookie values add overhead because they must be retransmitted on every HTTP transaction.
Note: HTTP has a 2k limit on the size of a cookie. This class does not check for this limit, so be careful!!!
|
|||
new empty dictionary |
|
||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
real_value, coded_value = value_decode(STRING) Called prior to setting a cookie's value from the network representation. The VALUE is the value read from HTTP header. Override this function to modify the behavior of cookies.
|
real_value, coded_value = value_encode(VALUE) Called prior to setting a cookie's value from the dictionary representation. The VALUE is the value being assigned. Override this function to modify the behavior of cookies.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Tue Jan 29 22:41:40 2008 | http://epydoc.sourceforge.net |