kay-frameworkã®åå¼·ä¼ã§ãããKay Framework Dev Loungeãã«åå äºå®ãªã®ã§ãäºåã«å°ãåããã¦ãããã¨æã£ããOSã¯windowsã ã¡ãªã¿ã«kay-frameworkã¨ã¯ãGoogle App Engine(python)ä¸ã§åä½ãããã¬ã¼ã ã¯ã¼ã¯ã ã§ã¯æ©éã¤ã³ã¹ãã¼ã«ã kay-frameworkã¯mercurialã¨ãããã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã§ã½ã¼ã¹ã管çãã¦ããã®ã§ãmercurialã以ä¸ã®urlãããã¦ã³ãã¼ãããã http://mercurial.selenic.com/ windowsçã ã¨ã¤ã³ã¹ãã¼ã©ããã¦ã³ãã¼ããããã®ã§ãå®è¡ãã¤ã³ã¹ãã¼ã«ããã 次ã¯pydevã§mercurialã®ãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ããã pydevã®ãã¡ãã¥ã¼ãâããã«ããâãæ°è¦ã½ããã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«ãã§ä»¥ä¸ã®urlã追å ãããã©ã°ã¤ã³ãã¤ã³
Kay Frameworkã§æºå¸¯ãµã¤ãéçºãæ¯æ´ãããkay-jpmobileã¨ããã¢ããªã±ã¼ã·ã§ã³ãæ¸ãã¦ã¿ããdjango-bpmobileã®Kay移æ¤ççãªãbpmobileã«ã¯ã¾ã£ããåãã§ãã¾ããããçµµæåã¾ãããããç¨åº¦å®è£ ã§ããã®ã§ãã¨ããããå ¬éã ãªãã¸ããªã¯bitbucketã«ããã¾ããMercurialã§ã¯ããã¦clone以å¤ã®æä½ãè¡ã£ãï¼ ã¡ãªã¿ã«ãi-mode端æ«ã§ãCookieã«å¯¾å¿ãã¦ããªããã®ã§ã¯ãã°ã¤ã³ã»ãã°ã¢ã¦ããã§ããªãã¨æãã¾ããåãªãã»ãã·ã§ã³ãªã使ããããã
å æ¥ãApp Engine ã§æä¾ããã¦ãã Blobstore ããwebapp ãã¬ã¼ã ã¯ã¼ã¯ã§ä½¿ã£ã¦ãã¾ããã Google App Engine 㧠Blobstore ã使ã£ã¦ã¿ã - present ã§ããå®éã®ã¢ããªéçºã§ã¯ Kay Framework ã使ã£ã¦ããããã§ã ãã® Kay Framework ã§ããã©ãã¡ãã㨠Blobstore ã使ãããã®ãã³ãã©ãæä¾ãã¦ãã¾ãã試ãã«ãå æ¥ã®ã³ã¼ãã Kay ã§æ¸ãå¤ãã¦ã¿ã¾ããã core/views.py # -*- coding: utf-8 -*- import logging import urllib from google.appengine.api import users from google.appengine.api import memcache from google.appengine.e
Kay-Snippets is snippets collection that shares a useful code for GAE Python framework Kay.é常ããããå¤é¨ãã¼ãç¨ããé¢ä¿ã§åé¡ã¯ãªãã®ã§ããããã©ã³ã¶ã¯ã·ã§ã³ãããå ´åã1対1ã§ãããã¨ãä¿è¨¼ãããå ´åãªã©ã§ãã®æ¹æ³ãæ´»ç¨åºæ¥ããã¨æãã¾ãã DataStore Tips model transaction
http://github.com/digg/stream ã®ã©ã¤ãã©ãªã使ç¨ãã¾ãã ä¾ãã°ã²ã¨ã¤ã®ç»é¢ã«Datastoreã«ä¿åãã20æã®ç»åã使ã£ã¦ããå ´åãé常ã1+20åã®ãªã¯ã¨ã¹ããå¿ è¦ã¨ãªãappengineã®å ´åãªã¯ã¨ã¹ãã®ãªã¼ãã¼ããããæ°ã«ãªãã¾ãã ç´¹ä»ããæ¹æ³ã¯æ®å¿µãªããIEã§ã¯ãã¾ãåä½ããªãã®ã§ãããç»åã表示ããªãä»ã®ç¨éãªã©ã«ã¯å¿ç¨ã§ããããããã¾ããã ä»çµã¿ã¯ã¯ã©ã¤ã¢ã³ãããajaxã§ãªã¯ã¨ã¹ãããµã¼ãã¼å´ã¯content-typeã«multipart/mixedã使ç¨ãããã¨ã§ãè¤æ°ã®ç»åãjavascriptãªã©ãä¸åº¦ã«éä¿¡ããã¯ã©ã¤ã¢ã³ãå´ã§åãåã£ããã¼ã¿ãmime-typeãã¨ã«é 次å¦çãã¦ãã¾ãã # -*- coding: utf-8 -*- from werkzeug import Response from werkzeug imp
以å Google App Engine ã§ã¢ãã«ã JSON ã«å¤æããæ¹æ³ãç´¹ä»ãã¾ããã Google App Engine ã® Model ã JSON ã«å¤æããæ¹æ³ - present ãã®æã¯ãããã simplejson ã®ã«ã¹ã¿ã Encoder ãèªä½ãã¦ãã¾ããããKay Framework ã使ãå ´åã¯ãã£ã¨ç°¡åãªæ¹æ³ãããã¾ãã Kay ã®ãªãã¸ããªã«ç½®ããã¦ããææ°ã®ã½ã¼ã¹ã³ã¼ãã«ã¯ãkay.dbutils.to_dict é¢æ°ã追å ããã¦ãã¾ãããã®é¢æ°ã¯ã¢ãã«ã dict ã«å¤æããããã®ãã®ãKay 㧠JSON ãåºåãããå ´åã¯ããã® to_dict é¢æ°ã使ãã¨æ¥½ã§ãã ãããªæãã # -*- coding: utf-8 -*- """ core.views """ from google.appengine.ext import db from
Nick Johnson ããã® deferred ã«ã¤ãã¦ã®è¨äºã§ã¯ãç°¡åã«ããã¯ã°ã©ã¦ã³ãã¿ã¹ã¯ãå®è¡ããæ¹æ³ãç´¹ä»ããã¦ãã¾ãã Kay ã§ã使ç¨ãããã®ã§å°ç¨ã®ãã³ãã©ãç¨æãã¾ãããchangeset: 8dff0f839164 以éã® Kay ã§ä½æããããã¸ã§ã¯ãã§ããã°ä½ãèããã«ãã®ãã³ãã©ãæå¹ã«ãªã£ã¦ããã¯ãã§ããå ·ä½çã«ã¯ app.yaml ã®å ã ãã main.py ããä¸ã«ä¸è¨ã®ããã« - url: /_ah/queue/deferred script: kay/main.py login: admin - url: /.* script: kay/main.py 追å ãã¾ããããã¸ã§ã¯ããã£ã¬ã¯ããªç´ä¸ã® urls.py ã«ã¯ä¸è¨ã®ããã« def make_url(): return Map([ Rule('/_ah/queue/deferred', end
æããå°æ¬ãã¦æ¢ã¾ãªã Guido ã appstats ã¨ããã½ãããã¢ãã¦ã³ã¹ãã¦ãã¾ãããGAE ã® RPC Call ãå¯è¦åãã¦ããããã¼ã«ã§ããããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ãªã©ã«éå®ãããã§ãã ãã®ãã¼ã«ã¯äºã¤ã®ãã¼ãããåºæ¥ã¦ãã¾ããè¨é²ããé¨å㨠ui é¨åã§ããè¨é²ã®è¨å®ãããã«ã¯äºç¨®é¡ã®è¨å®æ¹æ³ãããã¾ããä¸ã¤ç®ã¯ appstats ã«ç¨æãã¦ãã Django ã® middleware ã使ç¨ããã¨ãããã®ãããä¸ã¤ã¯ WSGI middleware ãè¨å®ããã¨ããæ¹æ³ã§ããã¤ã³ã¹ãã¼ã«ã¯åè ã®æ¹ãå§åçã«ç°¡åãªã®ã§ãDjango ç¨ middleware ã使ãããå¬ãããªãã¨æã試ãã¦ã¿ã¾ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}