[code.view]

[top] / python / PyMOTW / Cookie / Cookie_js_output.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     
     __version__ = "$Id$"
     #end_pymotw_header
     
     import Cookie
     
     c = Cookie.SimpleCookie()
     c['mycookie'] = 'cookie_value'
     c['another_cookie'] = 'second value'
     print c.js_output()
     

[top] / python / PyMOTW / Cookie / Cookie_js_output.py

contact | logmethods.com