[google-appengine] Re: Server 500 error after uploading
Look at the logs for your production app. I believe this error can occur when including the bulkloader module in any of your files. Remove that and you should be OK. I now only have the bulkloader module included in files that I run locally (say for upload/download). On May 27, 9:37 am, J j.si...@earlystageit.com wrote: I just uploaded the application charityaxis. Trying to access it usinghttp://charityaxis.appspot.comgives a 500 error and I can't figure out why. Double-checked everything and compared the settings to other apps I have already running in appengine -- nothing jumps out. I uploaded twice, once from Eclipse, once from the command line. The uploads were successful, that's what appcfg said anyway. Application ID: charityaxis. Python environment. Thanks in advance. --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Add active/deactive option in CRON job settings
add # to deactive 2009/5/29 风笑雪 kea...@gmail.com Modify your cron job's handler, add a variable to identify whether need run this job. You can store it in memcache and datastore, so that it can be edited in console. 2009/5/29 秦锋 feng.w@gmail.com For me, cron is a good mechanism to maintain the data on schedule, but for application requirement, sometimes I want to disable/enable some jobs under specific situation. Now the only choice is to maintain a large txt file with all jobs and copy part of them into cron.yaml and then upload. Is it possible to add an option active/deactive so that I don't change cron.yaml quite a lot all the time? --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Getting 403 over quota errors but dashboard all green
Was at version 1 (only version) and version 2 didn't fix it but version 3 did the trick! Odd, seems to be related to http://code.google.com/p/googleappengine/issues/detail?id=690 On May 28, 11:58 pm, bwh...@dappervision.com e133tc1p...@gmail.com wrote: These are the quotas shown (note that they are on the dashboard, the quota page says everything is great). Your application is exceeding a quota: App Config Service Delete App Version Call Count Your application is exceeding a quota: App Config Service Config App Call Count I am only using 1 version for this app so the version call count is odd. Also the message changes regularly from 403's to 500's. On May 28, 11:26 pm, bwh...@dappervision.com e133tc1p...@gmail.com wrote: Same on mosai no space caserv3.appspot.com Too Many Versions (403) The application already has the maximum number of versions. Also with billing and I also need my app to work. Hope this gets fixed soon. On May 28, 8:36 pm, Jim jdeib...@gmail.com wrote: My app (linkscocom.appspot.com) is getting mostly 403 errors but the dashboard shows 15% on CPU, 3% on incoming, 4% on outgoing and nothing much on the others. I do have billing enabled. There's absolutely nothing that I can see that should be causing a problem. I need my app to work. Suggestions on how to get somebody from Google to look at the situation? Thanks. --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/create
Started getting this error today... I have a working account and have 5 versions loaded already... so it can't be related to account activation. My storage is full... I'm aware of that, and I was hoping to setup a job to clean it up... but can't do that without uploading new code. thanks, Royans --- Unable to upload: java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/create?app_id=rktversion=5; 400 Bad Request Error when loading application configuration: Unable to assign value '\' to attribute 'url': Value '\' does not match expression '^(?!\^)/|\.|(\(.).*(?!\$).$' at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:140) at com.google.appengine.tools.admin.ServerConnection.post (ServerConnection.java:78) at com.google.appengine.tools.admin.AppVersionUpload.send (AppVersionUpload.java:345) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:159) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:68) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:49) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy (AppEngineBridgeImpl.java:271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace (DeployProjectJob.java:148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] How do I check for remainder in templates?
Hi, I want to create a row in my table for with 5 products in each row I tried to use the modulus with the forloop.counter but it doesn't seem to work {% for product in product_list %} {% ifequal forloop.counter%5 0 %}tr {% endifequal %} td{{ product.title }}/td {% ifequal forloop.counter%5 0 %}/tr {% endifequal %} {% endfor %} What is the best way to do this? Thanks in advance Jon --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Site pages static vs dynamic
You can use AJAX. When visitors loaded this page, the browser can automatic send an AJAX get request, and fill the login/logout div. Also you can try to use their cookies. So your pages can be static html with JavaScript. 2009/5/29 狼外婆 heavyzh...@gmail.com The login/logout URL is dynamic, while your static files are, hm, static. So the short answer is that you cannot embed the dynamic URL in your static files. You can provide a template, which contains the login/logout URL and an iframe to wrap your static file. Regards. On May 28, 2:52 am, jonbutler88 jonbutle...@googlemail.com wrote: Hi all, Just started using app engine yesterday, and so far very impressed. Im used to PHP, so the different structure takes some getting used to, but its coming along nicely. I've run into some problems with my site's structure, and was wondering what the web app way of solving this was. I have my home page which is a template, populated by my main python script. I also have several other 95% static pages, which at the moment are being served statically. My problem is that on my home page I have a test to see if a user is logged in. If the user isn't logged in they get a login url, else they get a logout url. On my static pages however, there seems to be no way to implement this. This is the only dynamic value I need on the whole page, do I need to make a new python file or is there a way around this? Thanks in advance, Jon --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Why should I use self.response.out.write?
Thanks, I am worried because I am trying to optimize my app to be almost as fast as the php version. usualy it takes 250ms for an ajax request(firebug) in the php version and 500ms in the python version so python is two times slower than the php version. but I guess it's because I have to store the files in the datastore and not in real directories. well thanks anyway. On 29 מאי, 04:32, David Wilson d...@botanicus.net wrote: Just assume that any string/list/hash/integer-related operations in Python are likely faster than you'll ever need them to be. The overhead for buffering the response is going to be tiny regardless of your application, since at most you're only talking about handling strings of up to 10mb (which is the request size limit). If there is anything with AppEngine you need to be careful of, it is use of Datastore, where reading/writing large numbers of entities will cost a lot of performance. Reducing your Datastore use by a single db.get() is equal to thousands of calls to self.response.out.write() $ python /usr/lib/python2.5/timeit.py -v -s 'from cStringIO import StringIO; out = StringIO()' 'out.write(123)' 1 loops - 0.00373 secs 10 loops - 0.0383 secs 100 loops - 0.365 secs raw times: 0.358 0.358 0.357 100 loops, best of 3: 0.357 usec per loop $ ae Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type help, copyright, credits or license for more information. (AppEngineShell) import time t1 = time.time() ; db.get(db.Key.from_path('Foo', 1234)) ; print (time.time()-t1)*1000 12.839233 David. 2009/5/29 Shedokan shedok...@gmail.com: Thanks, but does self.response.out affects speed very much? I couldn't benchmark it, strange... On 28 מאי, 22:25, David Wilson d...@botanicus.net wrote: Using self.response.out will also delay sending your entire response until it is sure to succeed. If you start generating output using 'print', and then e.g. a Datastore request times out, or a bug in your code is triggered, you have no chance to display a friendly error message. Instead the user will get a half-rendered page with a stack trace embedded in it, or worse. David. 2009/5/28 Shedokan shedok...@gmail.com: so I can't print binary data like Images? On 28 מאי, 21:03, 风笑雪 kea...@gmail.com wrote: Print is also OK, but you need handle header by yourself, and it can only output text.http://code.google.com/intl/en/appengine/docs/python/gettingstarted/h... print 'Content-Type: text/plain' print '' print 'Hello, world!' 2009/5/29 Shedokan shedok...@gmail.com I am wondering why should I use self.response.out.write and not print everything. because I am making this app where I have to output from a lot ofdifferent functions and I am passing the object 'self' everywhere. thanks. -- It is better to be wrong than to be vague. — Freeman Dyson -- It is better to be wrong than to be vague. — Freeman Dyson --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] City/State/Country from Lat/Long
How can we obtain City/State/Country from a given set of Laitutdue and Longitude using google maps service. I am be able to get the reverse that is getting Laitutde and Longitude based on a given address but no idea regarding the first case Thanks Arnie --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Why should I use self.response.out.write?
Use lots of memcache. On May 29, 7:51 am, Shedokan shedok...@gmail.com wrote: Thanks, I am worried because I am trying to optimize my app to be almost as fast as the php version. usualy it takes 250ms for an ajax request(firebug) in the php version and 500ms in the python version so python is two times slower than the php version. but I guess it's because I have to store the files in the datastore and not in real directories. well thanks anyway. On 29 מאי, 04:32, David Wilson d...@botanicus.net wrote: Just assume that any string/list/hash/integer-related operations in Python are likely faster than you'll ever need them to be. The overhead for buffering the response is going to be tiny regardless of your application, since at most you're only talking about handling strings of up to 10mb (which is the request size limit). If there is anything with AppEngine you need to be careful of, it is use of Datastore, where reading/writing large numbers of entities will cost a lot of performance. Reducing your Datastore use by a single db.get() is equal to thousands of calls to self.response.out.write() $ python /usr/lib/python2.5/timeit.py -v -s 'from cStringIO import StringIO; out = StringIO()' 'out.write(123)' 1 loops - 0.00373 secs 10 loops - 0.0383 secs 100 loops - 0.365 secs raw times: 0.358 0.358 0.357 100 loops, best of 3: 0.357 usec per loop $ ae Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type help, copyright, credits or license for more information. (AppEngineShell) import time t1 = time.time() ; db.get(db.Key.from_path('Foo', 1234)) ; print (time.time()-t1)*1000 12.839233 David. 2009/5/29 Shedokan shedok...@gmail.com: Thanks, but does self.response.out affects speed very much? I couldn't benchmark it, strange... On 28 מאי, 22:25, David Wilson d...@botanicus.net wrote: Using self.response.out will also delay sending your entire response until it is sure to succeed. If you start generating output using 'print', and then e.g. a Datastore request times out, or a bug in your code is triggered, you have no chance to display a friendly error message. Instead the user will get a half-rendered page with a stack trace embedded in it, or worse. David. 2009/5/28 Shedokan shedok...@gmail.com: so I can't print binary data like Images? On 28 מאי, 21:03, 风笑雪 kea...@gmail.com wrote: Print is also OK, but you need handle header by yourself, and it can only output text.http://code.google.com/intl/en/appengine/docs/python/gettingstarted/h... print 'Content-Type: text/plain' print '' print 'Hello, world!' 2009/5/29 Shedokan shedok...@gmail.com I am wondering why should I use self.response.out.write and not print everything. because I am making this app where I have to output from a lot ofdifferent functions and I am passing the object 'self' everywhere. thanks. -- It is better to be wrong than to be vague. — Freeman Dyson -- It is better to be wrong than to be vague. — Freeman Dyson --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Not working app-engine-patch-sample-1.0 sample application
Hi All, can any one tell that in this link * http://code.google.com/p/app-engine-patch/ *one sample application( *app-engine-patch-sample-1.0*) , I have downloaded and run the application but in that registration for after enter all the field and submit the but is saying that *In order to activate your account please check your email and click on the activation link.* but I haven't received any mail to activate my account, If any one helps means its useful for my coding, kindly help me on this, its urgent for me Thanks in Advance Regards SK --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] 403 (quota) error but way under quota - problem continues
I have confirmation from somebody at Google that everything looks good on your side, meaning that I'm well under the quotas. I am continuing to have issues with pages saying 403, application over quota for no apparent reason. This is really not funny.I've got nothing in my app engine logs to show that there's a problem. So there's no way for me to tell how often it's happening. --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: How do I check for remainder in templates?
On May 29, 6:26 am, ogterran wrote: Hi, I want to create a row in my table for with 5 products in each row I tried to use the modulus with the forloop.counter but it doesn't seem to work {% for product in product_list %} {% ifequal forloop.counter%5 0 %}tr {% endifequal %} td{{ product.title }}/td {% ifequal forloop.counter%5 0 %}/tr {% endifequal %} {% endfor %} This won't help with Django templates, but I can't avoid pointing out that Jinja2 has by default a loop variable inside for [1]. You'd do something like: {% for product in product_list %} {% if loop.index == 5 %}tr {% endif %} td{{ product.title }}/td {% if loop.index == 5 %}/tr {% endif %} {% endfor %} It is a pretty useful feature. Sorry for the plug. :-/ -- rodrigo [1] http://jinja.pocoo.org/2/documentation/templates#list-of-control-structures --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Why should I use self.response.out.write?
Hey Shedokan, Are you fetching your files from Datastore in a batch, or one at a time? data = [] for filename in ['a', 'b', 'c']: data.append(SomeModel.get_by_key_name(filename)) Is significantly slower than: keys = [ db.Key.from_path('SomeModel', fn) for fn in [ 'a', 'b', 'c' ] ] data = db.get(keys) 2009/5/29 Shedokan shedok...@gmail.com: Thanks, I am worried because I am trying to optimize my app to be almost as fast as the php version. usualy it takes 250ms for an ajax request(firebug) in the php version and 500ms in the python version so python is two times slower than the php version. but I guess it's because I have to store the files in the datastore and not in real directories. well thanks anyway. On 29 מאי, 04:32, David Wilson d...@botanicus.net wrote: Just assume that any string/list/hash/integer-related operations in Python are likely faster than you'll ever need them to be. The overhead for buffering the response is going to be tiny regardless of your application, since at most you're only talking about handling strings of up to 10mb (which is the request size limit). If there is anything with AppEngine you need to be careful of, it is use of Datastore, where reading/writing large numbers of entities will cost a lot of performance. Reducing your Datastore use by a single db.get() is equal to thousands of calls to self.response.out.write() $ python /usr/lib/python2.5/timeit.py -v -s 'from cStringIO import StringIO; out = StringIO()' 'out.write(123)' 1 loops - 0.00373 secs 10 loops - 0.0383 secs 100 loops - 0.365 secs raw times: 0.358 0.358 0.357 100 loops, best of 3: 0.357 usec per loop $ ae Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type help, copyright, credits or license for more information. (AppEngineShell) import time t1 = time.time() ; db.get(db.Key.from_path('Foo', 1234)) ; print (time.time()-t1)*1000 12.839233 David. 2009/5/29 Shedokan shedok...@gmail.com: Thanks, but does self.response.out affects speed very much? I couldn't benchmark it, strange... On 28 מאי, 22:25, David Wilson d...@botanicus.net wrote: Using self.response.out will also delay sending your entire response until it is sure to succeed. If you start generating output using 'print', and then e.g. a Datastore request times out, or a bug in your code is triggered, you have no chance to display a friendly error message. Instead the user will get a half-rendered page with a stack trace embedded in it, or worse. David. 2009/5/28 Shedokan shedok...@gmail.com: so I can't print binary data like Images? On 28 מאי, 21:03, 风笑雪 kea...@gmail.com wrote: Print is also OK, but you need handle header by yourself, and it can only output text.http://code.google.com/intl/en/appengine/docs/python/gettingstarted/h... print 'Content-Type: text/plain' print '' print 'Hello, world!' 2009/5/29 Shedokan shedok...@gmail.com I am wondering why should I use self.response.out.write and not print everything. because I am making this app where I have to output from a lot ofdifferent functions and I am passing the object 'self' everywhere. thanks. -- It is better to be wrong than to be vague. — Freeman Dyson -- It is better to be wrong than to be vague. — Freeman Dyson -- It is better to be wrong than to be vague. — Freeman Dyson --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Not working app-engine-patch-sample-1.0 sample application
You will need to provide a way for appengine to email to your e-mail account if you want to be able to have it send e-mail to you. This is done by providing the information about your SMTP server in the settings.py or by passing the --enable_sendmail or --smtp_host, --smtp_port, --smtp_user, and --smtp_password options to manage.py runserver. --enable_sendmail will only work if you have sendmail on your machine obviously. Setting the email options in your settings.py looks like it does in django: EMAIL_HOST=localhost EMAIL_PORT=25 EMAIL_HOST_USER= EMAIL_PASSWORD= I'm really not sure how well setting the smtp options work as I use the sendmail option locally. I do know there was an issue with setting the SMTP options on linux. http://code.google.com/p/googleappengine/issues/detail?id=626q=smtpcolspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component On Fri, May 29, 2009 at 10:11 PM, S K sksk...@gmail.com wrote: Hi All, can any one tell that in this link * http://code.google.com/p/app-engine-patch/ *one sample application( *app-engine-patch-sample-1.0*) , I have downloaded and run the application but in that registration for after enter all the field and submit the but is saying that *In order to activate your account please check your email and click on the activation link.* but I haven't received any mail to activate my account, If any one helps means its useful for my coding, kindly help me on this, its urgent for me Thanks in Advance Regards SK -- === 株式会社ビープラウド イアン・ルイス 〒150-0012 東京都渋谷区広尾1-11-2アイオス広尾ビル604 email: ianmle...@beproud.jp TEL:03-5795-2707 FAX:03-5795-2708 http://www.beproud.jp/ === --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: time and date sync service in google cluster
Hi cryb, Obviously we do our best to ensure system time is accurate on all our machines. However, it's simply impossible to keep a large number of machines sufficiently well in sync that you can rely on montonicity (that values will only increase with time) across the service based solely on a wall-clock. If your app needs strictly increasing time for its operation, wall clock time alone will not provide that. -Nick Johnson On Thu, May 28, 2009 at 7:39 AM, cryb cbuti...@gmail.com wrote: Hello. Although it should be obvious, the Google cluster should provide a time and date synchronization service for all its nodes. I've done some search on the internet and I went through appengine docs, but I didn't find any reference that states this. I know that this should be common sense, but I just want to make sure. So my question is: does google cluster guarantees time and date sync among its nodes? I ask this because I need it for expiration primitives that won't work properly if such a service is not in place. Thanks. --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] looking for a GOOG logo I can use on my site
Something similar to what Facebook offers (the connect button). I see the folks at typepad are using this: http://static.typepad.com/.shared/images/profile/openid_buttons/google.gif Does GOOG get mad if I use it? If I shrink it? Does GOOG offer images that have been okayed by the branding folks? Jeff --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Full text search with whoosh, experiences?
Just curious what ppl's experiences are with using whoosh with GAE to perform full text searching. Looks like someone already built an integration layer of whoosh with the appengine: http://github.com/tallstreet/Whoosh-AppEngine/tree/master --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] App Engine registration problem with SMS verification code
I went here and requested that Google send me an SMS verification code (US, Verizon phone) to register: http://appengine.google.com/permissions/smssend The web page gave me an error message, but I received the SMS anyway. Where do I now input my SMS verification code? I can't find the form. Your help docs say: You can verify your account by signing into the Administration Console. but I cannot find this anywhere. Harry --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] create_login_url equivalent on the client or a way to use the current URL with the hash with GAE login?
I am creating an AJAX application, not referring to using AJAX for updates, but using AJAX for all page loads. This means that I am tracking the current page using the standard technique of URL hashes to track the current page and bookmark-ability. Example: http://myapp/index#welcome_page users.create_login_url requires that I pass it a URL. The problem with this is that hashes are not sent to the server. So I have to do this hokey approach: secure page requested - server sends down page w/ JavaScript - send the url+hash to the server - create login url with hashed version - redirect user to url This stinks. I tried using an IFRAME to host the google login, but I found that McAfee and other virus scanners on Winblows block IFRAMES as a security risk. If I were to try to use window.open calls then pop- up blockers could stop that. Is there another way, perhaps some way to embed the login page in one of my pages or a way to build the login URL on the client so I can at least save one server call? Thanks --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Why should I use self.response.out.write?
TO make things faster I made two Classes: this one for the basic file or folder info: class Object(db.Model): name = db.StringProperty(multiline=False) path = db.StringProperty(multiline=False) type = db.StringProperty(multiline=False) info = db.StringProperty(multiline=False) created = db.DateTimeProperty(auto_now_add=True) changed = db.DateTimeProperty(auto_now_add=True) and this one for the content of the file: class ObjectContent(db.Model): name = db.StringProperty(multiline=False) path = db.StringProperty(multiline=False) contents = db.BlobProperty() That way when I'm getting only the files info i don't have to get all of it's content. And I am getting files like this: db.GqlQuery('SELECT * FROM Object WHERE name= :1 AND path= : 2',name,path) and I list all files in a folder like this: db.GqlQuery('SELECT * FROM Object WHERE path= :1',path) if only I could select parts of the file and not all of the info like SQL: SELECT name, PATH from ... On 29 מאי, 17:19, David Wilson d...@botanicus.net wrote: Hey Shedokan, Are you fetching your files from Datastore in a batch, or one at a time? data = [] for filename in ['a', 'b', 'c']: data.append(SomeModel.get_by_key_name(filename)) Is significantly slower than: keys = [ db.Key.from_path('SomeModel', fn) for fn in [ 'a', 'b', 'c' ] ] data = db.get(keys) 2009/5/29 Shedokan shedok...@gmail.com: Thanks, I am worried because I am trying to optimize my app to be almost as fast as the php version. usualy it takes 250ms for an ajax request(firebug) in the php version and 500ms in the python version so python is two times slower than the php version. but I guess it's because I have to store the files in the datastore and not in real directories. well thanks anyway. On 29 מאי, 04:32, David Wilson d...@botanicus.net wrote: Just assume that any string/list/hash/integer-related operations in Python are likely faster than you'll ever need them to be. The overhead for buffering the response is going to be tiny regardless of your application, since at most you're only talking about handling strings of up to 10mb (which is the request size limit). If there is anything with AppEngine you need to be careful of, it is use of Datastore, where reading/writing large numbers of entities will cost a lot of performance. Reducing your Datastore use by a single db.get() is equal to thousands of calls to self.response.out.write() $ python /usr/lib/python2.5/timeit.py -v -s 'from cStringIO import StringIO; out = StringIO()' 'out.write(123)' 1 loops - 0.00373 secs 10 loops - 0.0383 secs 100 loops - 0.365 secs raw times: 0.358 0.358 0.357 100 loops, best of 3: 0.357 usec per loop $ ae Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type help, copyright, credits or license for more information. (AppEngineShell) import time t1 = time.time() ; db.get(db.Key.from_path('Foo', 1234)) ; print (time.time()-t1)*1000 12.839233 David. 2009/5/29 Shedokan shedok...@gmail.com: Thanks, but does self.response.out affects speed very much? I couldn't benchmark it, strange... On 28 מאי, 22:25, David Wilson d...@botanicus.net wrote: Using self.response.out will also delay sending your entire response until it is sure to succeed. If you start generating output using 'print', and then e.g. a Datastore request times out, or a bug in your code is triggered, you have no chance to display a friendly error message. Instead the user will get a half-rendered page with a stack trace embedded in it, or worse. David. 2009/5/28 Shedokan shedok...@gmail.com: so I can't print binary data like Images? On 28 מאי, 21:03, 风笑雪 kea...@gmail.com wrote: Print is also OK, but you need handle header by yourself, and it can only output text.http://code.google.com/intl/en/appengine/docs/python/gettingstarted/h... print 'Content-Type: text/plain' print '' print 'Hello, world!' 2009/5/29 Shedokan shedok...@gmail.com I am wondering why should I use self.response.out.write and not print everything. because I am making this app where I have to output from a lot ofdifferent functions and I am passing the object 'self' everywhere. thanks. -- It is better to be wrong than to be vague. — Freeman Dyson -- It is better to be wrong than to be vague. — Freeman Dyson -- It is better to be wrong than to be vague. — Freeman Dyson --~--~-~--~~~---~--~~ 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 email to
[google-appengine] Re: App Engine registration problem with SMS verification code
Hi Harry, Have you tried signing in at http://appengine.google.com/ ? -Nick Johnson On Thu, May 28, 2009 at 3:26 PM, akubot aku...@gmail.com wrote: I went here and requested that Google send me an SMS verification code (US, Verizon phone) to register: http://appengine.google.com/permissions/smssend The web page gave me an error message, but I received the SMS anyway. Where do I now input my SMS verification code? I can't find the form. Your help docs say: You can verify your account by signing into the Administration Console. but I cannot find this anywhere. Harry --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Full text search with whoosh, experiences?
Hi Andrew, I've looked at it briefly, but I haven't used it. My main concern is that apparrently Whoosh currently only supports file-based indexing; modules like Whoosh-AppEngine simply write and read the file contents to and from the datastore. In addition to the 1MB per file limit, I'm skeptical performance will be acceptable for large corpii - but only testing will tell for sure. -Nick Johnson On Fri, May 29, 2009 at 8:08 AM, Andrew R andrew.rw.robin...@gmail.com wrote: Just curious what ppl's experiences are with using whoosh with GAE to perform full text searching. Looks like someone already built an integration layer of whoosh with the appengine: http://github.com/tallstreet/Whoosh-AppEngine/tree/master --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Kinda hard to Get Started
When its not there: http://code.google.com/appengine/docs/gettingstarted/ I get a 404.. --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: I messed up my Google Account used for GAE
Hi Herbert, Is the email account you are using associated with Google Apps? If so, you'll need to sign in to the App Engine admin console at appengine.google.com/a/example.com . Cheers, Jeff On Thu, May 28, 2009 at 5:48 AM, Herbert Groot Jebbink h.groot.jebb...@infoprofs.nl wrote: Dear Google App Engine support :-) I messed up my Google Account that I used for GAE. Deleted it and connected it to an other gmail/google account as an secondary email addres. - After log-in in GAE, it knows me as an existing GAE account (it does not ask for a phone number to send a SMS) - But I don't see my old applications. - There is an button Create application but it does'nt work, (maybe it works, but the next page is again this Create Application page, I do not get the the My Applications page. - The app itself is still running. I have removed it from the other google/gmail account and created it again as a stand-alone Google account, but that did not solve the problem. GAE app: infoprofsspeeltuin Google Account: (the one I use for this posting) Kind regards, Herbert --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: index still not removed after 4 days
Hi reco, These indicies should now be in the error state. Apologies for the inconvenience, Jeff On Thu, May 28, 2009 at 1:07 PM, reco r...@nex9.com wrote: hi there, i vacuumed the indexes since i could not deploy my app anymore.. i did this back on monday. the indexes still show up. google please fix that. app id: purple-imageapp thanx --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: inconsistent index after building
Hi Ben, We have a known bug that pops up occasionally for some apps and results in the behaviour you're seeing. If you let me know what your appid is, I can get it fixed for you. -Nick Johnson On Tue, May 26, 2009 at 11:20 PM, Ben Nevile ben.nev...@gmail.com wrote: hey there, the other night I added a couple of indexes to an model that has hundreds of thousands of entities. I was pleasantly surprised when I woke up the next morning to find the magic serving beside the new indexes! hooray! this afternoon I was debugging some code and I discovered that the created indices are pretty spotty. they're downright bad actually. it appears as though many many entities were not inserted into the new index. I don't have an accurate estimate of what percentage, but if I had to guess I would say north of 20%. not so good. Here's one of the indices I added: - kind: FacebookUser properties: - name: authorized - name: expired_fotm - name: last_nudged_at authorized and expired_fotm are boolean, and last_nudged_at is datetime. so I'm sweeping through now and db.put()ting the whole collection of these guys to get them added to the index. hopefully this will fix things. but isn't that what is supposed to happen already when adding an index? Ben --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Kinda hard to Get Started
It would help if you say where you got this link. On Fri, May 29, 2009 at 9:28 PM, ryanaslett ryanasl...@ryanaslett.comwrote: When its not there: http://code.google.com/appengine/docs/gettingstarted/ I get a 404.. -- Alkis --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Kinda hard to Get Started
http://code.google.com/appengine/docs/python/gettingstarted/ http://code.google.com/appengine/docs/java/gettingstarted/ On May 29, 3:28 pm, ryanaslett ryanasl...@ryanaslett.com wrote: When its not there: http://code.google.com/appengine/docs/gettingstarted/ I get a 404.. --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] ReferenceProperty put() does not update the existing entity
When I use the code below, a new message with the same Person ReferenceProperty (and same handle) results in a new db instance, rather than updating the existing entity as I think it should according to the following link. Isn't it supposed to just update the existing instance, without creating another? http://code.google.com/appengine/docs/python/datastore/creatinggettinganddeletingdata.html Thanks, Brian in Atlanta ***code excerpt below class Person(db.Model): user = db.UserProperty() address = db.EmailProperty() skillName = db.StringProperty() class Message(db.Model): owner = db.ReferenceProperty(Person) comment = db.TextProperty() handle = db.StringProperty() class SendMessage(webapp.RequestHandler): def post(self): skillName_id = self.request.get('skillName') handle = self.request.get('handle') comment = self.request.get('comment') key = db.Key.from_path(Person, skillName_id) person = Person.get(key) message = Message(handle=handle,owner=person.key()) message.comment = comment message.handle = handle message.put() --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Kinda hard to Get Started
Thanks for the links.. sorry I should have put that on there as well: http://appengine.google.com/start Which is the page I landed on after I put in my SMS access code.. On Fri, May 29, 2009 at 4:33 PM, Wooble geoffsp...@gmail.com wrote: http://code.google.com/appengine/docs/python/gettingstarted/ http://code.google.com/appengine/docs/java/gettingstarted/ On May 29, 3:28 pm, ryanaslett ryanasl...@ryanaslett.com wrote: When its not there: http://code.google.com/appengine/docs/gettingstarted/ I get a 404.. --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: ReferenceProperty put() does not update the existing entity
No, of course not. You can have multiple Message entities that all have the same owner. If you want to update an existing entity, get it, modify it, and put it again, or use a key_name. On May 29, 9:20 pm, thebrianschott schott.br...@gmail.com wrote: When I use the code below, a new message with the same Person ReferenceProperty (and same handle) results in a new db instance, rather than updating the existing entity as I think it should according to the following link. Isn't it supposed to just update the existing instance, without creating another? http://code.google.com/appengine/docs/python/datastore/creatinggettin... Thanks, Brian in Atlanta ***code excerpt below class Person(db.Model): user = db.UserProperty() address = db.EmailProperty() skillName = db.StringProperty() class Message(db.Model): owner = db.ReferenceProperty(Person) comment = db.TextProperty() handle = db.StringProperty() class SendMessage(webapp.RequestHandler): def post(self): skillName_id = self.request.get('skillName') handle = self.request.get('handle') comment = self.request.get('comment') key = db.Key.from_path(Person, skillName_id) person = Person.get(key) message = Message(handle=handle,owner=person.key()) message.comment = comment message.handle = handle message.put() --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: ReferenceProperty put() does not update the existing entity
Woobie, I don't understand the difference between using a key, like I think my example shows I am doing, and a key_name. Can you direct me further, please? On May 29, 10:46 pm, Wooble geoffsp...@gmail.com wrote: No, of course not. You can have multiple Message entities that all have the same owner. If you want to update an existing entity, get it, modify it, and put it again, or use a key_name. On May 29, 9:20 pm, thebrianschott schott.br...@gmail.com wrote: When I use the code below, a new message with the same Person ReferenceProperty (and same handle) results in a new db instance, rather than updating the existing entity as I think it should according to the following link. Isn't it supposed to just update the existing instance, without creating another? http://code.google.com/appengine/docs/python/datastore/creatinggettin... Thanks, Brian in Atlanta ***code excerpt below class Person(db.Model): user = db.UserProperty() address = db.EmailProperty() skillName = db.StringProperty() class Message(db.Model): owner = db.ReferenceProperty(Person) comment = db.TextProperty() handle = db.StringProperty() class SendMessage(webapp.RequestHandler): def post(self): skillName_id = self.request.get('skillName') handle = self.request.get('handle') comment = self.request.get('comment') key = db.Key.from_path(Person, skillName_id) person = Person.get(key) message = Message(handle=handle,owner=person.key()) message.comment = comment message.handle = handle message.put() --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: ReferenceProperty put() does not update the existing entity
message = Message(handle=handle,owner=person.key()) That line always creates a new Message instance. Why do you think that it should do anything else? (The only way to get copies of existing instances is with get() and queries.) On May 29, 8:05 pm, thebrianschott schott.br...@gmail.com wrote: Woobie, I don't understand the difference between using a key, like I think my example shows I am doing, and a key_name. Can you direct me further, please? On May 29, 10:46 pm, Wooble geoffsp...@gmail.com wrote: No, of course not. You can have multiple Message entities that all have the same owner. If you want to update an existing entity, get it, modify it, and put it again, or use a key_name. On May 29, 9:20 pm, thebrianschott schott.br...@gmail.com wrote: When I use the code below, a new message with the same Person ReferenceProperty (and same handle) results in a new db instance, rather than updating the existing entity as I think it should according to the following link. Isn't it supposed to just update the existing instance, without creating another? http://code.google.com/appengine/docs/python/datastore/creatinggettin... Thanks, Brian in Atlanta ***code excerpt below class Person(db.Model): user = db.UserProperty() address = db.EmailProperty() skillName = db.StringProperty() class Message(db.Model): owner = db.ReferenceProperty(Person) comment = db.TextProperty() handle = db.StringProperty() class SendMessage(webapp.RequestHandler): def post(self): skillName_id = self.request.get('skillName') handle = self.request.get('handle') comment = self.request.get('comment') key = db.Key.from_path(Person, skillName_id) person = Person.get(key) message = Message(handle=handle,owner=person.key()) message.comment = comment message.handle = handle message.put()- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: ReferenceProperty put() does not update the existing entity
Woobie, I tried the following code using key_name and I still get more copies of the entity. What am I missing? (see my next reply post, too, please) Brian in Atlanta code I put into the interactive console. class Person(db.Model): user = db.UserProperty() address = db.EmailProperty() skillName = db.StringProperty() class Message(db.Model): owner = db.ReferenceProperty(Person) comment = db.TextProperty() handle = db.StringProperty() person = Person(key_name=contraBSchott) person.put() skillName_id = contraBSchott handle = Killer comment = Peace person = Person(key_name=contraBSchott) message = Message(handle=handle,owner=person.key()) message.comment = comment message.handle = handle message.put() query = Message.all() for result in query: print result.comment --~--~-~--~~~---~--~~ 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 email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---