[google-appengine] How can I use SetupTools in Python 2.7 runtime?

2011-10-11 Thread Sun Jing
I find the Python 2.7 runtime provides SetupTools, but the document dosen't tell me how to use it. Can I use it to install any Python packages? -- keakon My blog(Chinese): www.keakon.net Blog source code: https:/

[google-appengine] How to store bytecode in Python 2.7?

2011-10-16 Thread Sun Jing
Hi all, As the documentsays, in Python 2.7, no longer restricts access to Python bytecode. But I tried to compile a source code file, it raised an IOError: [Errno 13] Permission denied: > import os

Re: [google-appengine] How to store bytecode in Python 2.7?

2011-10-16 Thread Sun Jing
last 50 > accessed templates but you can customize this if you want. See: > http://jinja.pocoo.org/docs/api/#bytecode-cache > > Cheers, > Brian > > On Sun, Oct 16, 2011 at 6:02 PM, Sun Jing wrote: > > Hi all, > > As the document says, in Python 2.7, no longer restrict

Re: [google-appengine] How to store bytecode in Python 2.7?

2011-10-16 Thread Sun Jing
data > in the datastore, memcache, blobstore, etc. > > With the App Engine Python 2.5 runtime it is *not* possible to execute > arbitrary bytecode. > > Cheers, > Brian > > On Sun, Oct 16, 2011 at 9:30 PM, Sun Jing wrote: > > Hi Brian, > > So it means I can

Re: [google-appengine] Inactive Instances

2011-10-27 Thread Sun Jing
Those idle instance won't be charged. You can check the Billed curve of the Instances chart in your app's Dashboard. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ On Thu, Oct 27, 2011 at 2:37 PM, PanosJee wrote: > Hi everyone, > My

Re: [google-appengine] Best way to disable settings from appengine_config during tests

2011-10-30 Thread Sun Jing
You can try: def webapp_add_wsgi_middleware(app): if not appos.environ['APPLICATION_ID'].startswith('dev~'): app = recording.appstats_wsgi_middleware(app) return app -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ On Sun, Oct 3

Re: [google-appengine] Re: I have to leave App Engine platform, feeling really bad and sad

2011-11-03 Thread Sun Jing
I think there must be a way to optimize, but I agree with you that it's not worth redesigning and rewriting your site. In my case, I spent dozens of hours to reduce about 50% datastore reads of my blog. I could fetch entities with just one line of code before, and it's automatically memcached. But

[google-appengine] Can't reuse app after HRD Migration?

2011-11-11 Thread Sun Jing
I just tried to migrate one of my app to anther. After that I find my app become 404 Not Found, how can I use it again? -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com.

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Sun Jing
I tried to use projection queries: class Article(db.Model): title = db.StringProperty(required=True) # others... print db.Query('Article', projection=('title')).get() > Traceback (most recent call last): > File > "/base/python_runtime/python_lib/versions/1/google/appengine/ext/admin/__init__.p

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Sun Jing
pr 24, 2012 at 9:09 PM, Alfred Fuller wrote: > >> ('title') is not a tuple, you need to use ('title',) or ['title'] instead >> >> >>> print ('title') >> title >> >>> print ('title',) >> ('ti

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Sun Jing
Thank you, it works. I think the document should be updated: https://developers.google.com/appengine/docs/python/datastore/queryclass#Query_get -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appe

Re: [google-appengine] Re: scheduling backups with cron (in Py2.7)

2012-04-24 Thread Sun Jing
There is an article: https://developers.google.com/appengine/articles/scheduled_backups -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group,

Re: [google-appengine] TransientError on Text Search API ?

2012-05-14 Thread Sun Jing
I also got this error sometime if I mixed ascii char and Chinese char (in UTF-8 encode). On Mon, May 14, 2012 at 4:58 PM, Amy Unruh wrote: > Steve, > > Can you provide more info (e.g. example code) showing how you built the > query object that you used for the search? > > -Amy > > On 12 May 201

Re: [google-appengine] Re: Attacked by appid: s~ccdict1 to s~ccdict99

2012-07-01 Thread Sun Jing
Thank you, Stuart. I blocked all the requests from app engine, but I hope there would be a better way. On Sun, Jul 1, 2012 at 7:21 PM, Stuart Langley wrote: > I've forwarded this internally. > > > On Sunday, 1 July 2012 17:12:59 UTC+10, keakon wrote: >> >> Can anyone help me? >> >> They keep att

Re: [google-appengine] Should developers pay for the useless instances? Can we set max instances to 1?

2012-07-11 Thread Sun Jing
I'm using M/S datastore. I think HR may be better, but I don't want to migrate now. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send