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.
(self, val)
| 479 | """A container class for a set of Morsels.""" |
| 480 | |
| 481 | def value_decode(self, val): |
| 482 | """real_value, coded_value = value_decode(STRING) |
| 483 | Called prior to setting a cookie's value from the network |
| 484 | representation. The VALUE is the value read from HTTP |
| 485 | header. |
| 486 | Override this function to modify the behavior of cookies. |
| 487 | """ |
| 488 | return val, val |
| 489 | |
| 490 | def value_encode(self, val): |
| 491 | """real_value, coded_value = value_encode(VALUE) |