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

GAE下如何获取当前应用下的所有model?

  •  
  •   nttdocomo · Dec 13, 2011 · 5489 views
    This topic created in 5267 days ago, the information mentioned may be changed or developed.
    如题?有现成的方法吗?没有的话我自己写一个了!
    2 replies    1970-01-01 08:00:00 +08:00
    keakon
        1
    keakon  
       Dec 13, 2011
    用这个API,不过不是实时更新的
    https://code.google.com/appengine/docs/python/datastore/stats.html

    from google.appengine.ext.db import stats

    for kind in stats.KindStat.all():
    print kind.kind_name
    nttdocomo
        2
    nttdocomo  
    OP
       Dec 14, 2011
    不过这个方法官方说会比一般的方法使用的限额要高。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   900 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:44 · PVG 05:44 · LAX 14:44 · JFK 17:44
    ♥ Do have faith in what you're doing.