[google-appengine] Re: Cron is 301

2011-05-19 Thread
def redirect(app): Status = 'Status: 301 Moved Permanently' HOST = 'www.aregg.com' if os.environ.get('HTTP_HOST').endswith(HOST) and os.environ.get('HTTPS') == 'off' and os.environ.get('X-AppEngine- Cron') is None: sys.stdout.write(Status + '\nLocation: htt

[google-appengine] Re: Cron is 301

2011-05-19 Thread
Help me. On 5月17日, 下午12时39分, 筱枫 wrote: > My application needs to use 301 to my APP domain. > > if not os.environ.get('HTTP_HOST').endswith(domain) and > os.environ.get('HTTPS') == 'off' and os.environ.get('X-AppEngine- > Cron') is None: &

[google-appengine] Cron is 301

2011-05-16 Thread
My application needs to use 301 to my APP domain. if not os.environ.get('HTTP_HOST').endswith(domain) and os.environ.get('HTTPS') == 'off' and os.environ.get('X-AppEngine- Cron') is None: But why Cron is 301? os.environ.get('X-AppEngine-Cron') is None :Ineffective? -- You received this messa

[google-appengine] B8 vs B4 vs B2 vs B1 , B8 = B4 ?

2011-05-13 Thread
def test(i = 100): t = datetime.datetime.now() while i: i -= 1 '喔喔'.decode('utf-8') print datetime.datetime.now()-t test() B8 time: 0:00:01.520756 B4 time: 0:00:01.524307 B2 time: 0:00:02.342202 B1 time: 0:00:03.492686 B8 = B4 ? -

[google-appengine] A server error has occurred.

2011-03-18 Thread
我的:application: the-world version: 1和version: 2都出了问题 version: 1 --- begin server output --- Another transaction by user qq112864670 is already in progress for this app and major version. That user can undo the transaction with appcfg.py's "rollback" command. --- end server output --- 2011-03-18 1