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.
(self, val)
| 488 | return val, val |
| 489 | |
| 490 | def value_encode(self, val): |
| 491 | """real_value, coded_value = value_encode(VALUE) |
| 492 | Called prior to setting a cookie's value from the dictionary |
| 493 | representation. The VALUE is the value being assigned. |
| 494 | Override this function to modify the behavior of cookies. |
| 495 | """ |
| 496 | strval = str(val) |
| 497 | return strval, strval |
| 498 | |
| 499 | def __init__(self, input=None): |
| 500 | if input: |