DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
crazycookie

GAE cookies 和 session 类

  •  
  •   crazycookie · Mar 29, 2011 · 5067 views
    This topic created in 5526 days ago, the information mentioned may be changed or developed.
    找了好久,没有发现简单又好用的Cookie和Session类
    Cookie 类找到的和V2ex github上面一样的
    http://appengine-cookbook.appspot.com/recipe/a-simple-cookie-class/

    Session类 github上面 v2ex 注释中有入下提示:
    # Note - please do not use this for production applications
    Why?

    请推荐下 简单,实用的这几个类
    4 replies    1970-01-01 08:00:00 +08:00
    crazycookie
        1
    crazycookie  
    OP
       Mar 29, 2011
    https://github.com/livid/v2ex/blob/master/v2ex/babel/ext/sessions.py
    第10行
    10 # Note - please do not use this for production applications
    lepture
        2
    lepture  
       Mar 29, 2011
    个人项目使用是没有问题的。。

    而且像v2ex这样子的都在用,你有何不放心的呢?
    dreampuf
        3
    dreampuf  
       Mar 29, 2011
    https://github.com/dound/gae-sessions

    gae-sessions is a sessions library for the Python runtime on Google App Engine for ALL session sizes. It is extremely fast, lightweight (one file), and easy to use.
    crazycookie
        4
    crazycookie  
    OP
       Mar 30, 2011
    @dreampuf gae-sessions 昨天晚上看了一个晚上 还是觉得很复杂
    于是参考了v2ex的v2ex.babel.ext 很喜欢那种代码的style
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2973 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 09:32 · PVG 17:32 · LAX 02:32 · JFK 05:32
    ♥ Do have faith in what you're doing.