[google-appengine] Re: Sample code of i18n on GAE+Django

2008-09-09 Thread Pierre
Hi Jiyu, This definitively works !! and Rocks !! ;-) Just tried in real world : - extract - run appcfg.py update webappi18n - browse -- Hello is transformed to Bonjour and that's pretty good ! Voilà ! Thank to you. Pierre On Sep 9, 6:41 am, A.TNG [EMAIL PROTECTED] wrote: Hi, I find

[google-appengine] Re: Query filter based on the Longitude attribute of a db.GeoPt property

2008-09-09 Thread [EMAIL PROTECTED]
I've got a better solution than geohashing. I break down the grid into sub-degree squares by truncating after the first decimal point, and then when I save something that I need to find on the map later, I save metadata with that point indicating the surrounding grid squares. So if I have a

[google-appengine] Re: Problems with Geohash / Inaccuracy / ow to deal with this ?

2008-09-09 Thread [EMAIL PROTECTED]
I've got a better solution than geohashing. I break down the grid into sub-degree squares by truncating after the first decimal point, and then when I save something that I need to find on the map later, I save metadata with that point indicating the surrounding grid squares. So if I have a

[google-appengine] Re: A Very Specific AJAX RPC App Engine Question

2008-09-09 Thread Peter Svensson
I didn't know that GAE / Django supported callbacks, but they're really not needed, since you supply your own handler function in Dojo ('load'). If the json object is properly formatted, it will be returned as text and evaluated by Dojo (since you're using handleAs:'json'). So add a load

[google-appengine] Re: Problem with the operator != GQL

2008-09-09 Thread David Symonds
On Tue, Sep 9, 2008 at 5:41 AM, magocrab [EMAIL PROTECTED] wrote: I can not perform the following query: print db.GqlQuery(SELECT * FROM Profiles WHERE nick != :1, nick).count() The error I get is as follows: //

[google-appengine] Re: Query filter based on the Longitude attribute of a db.GeoPt property

2008-09-09 Thread José Oliver Segura
On Tue, Sep 9, 2008 at 8:57 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've got a better solution than geohashing. I break down the grid into sub-degree squares by truncating after the first decimal point, and then when I save something that I need to find on the map later, I save

[google-appengine] Re: Blob() argument should be str instance, not unicode ???

2008-09-09 Thread Mike Orr
On Tue, Sep 9, 2008 at 1:39 AM, jago [EMAIL PROTECTED] wrote: Hi, I want to store a small image in my appstore. It works well when I read in the images from python. Now I want to store them via a Post from my Java-Client. The Post and everything else works pretty well. Also getting the

[google-appengine] Hidden Security Risks through App Caching

2008-09-09 Thread Cat
Hmm, I noticed that in contrary to ordinary webservers AppEngine preserves global state of one instance. This has huge security implications, as sensitive information could be leaked through class variables: Example pattern: class Page(...): message = '' def render(response): #

[google-appengine] Re: Django 1.0 -- would someone from Google please respond

2008-09-09 Thread Michael Angerman
Paul, Thanks very much for answering my question, I really appreciate it and I am sure many others do as well. Thanks again, Michael I Angerman Albuquerque, New Mexico http://www.zrato.com On Mon, Sep 8, 2008 at 4:14 PM, Paul [EMAIL PROTECTED] wrote: Hi Michael, While we'd like to support

[google-appengine] Re: unterminated string literal

2008-09-09 Thread Donovan
Unless there's already a function in python that I don't know about (I know php has json_encode), you can goto json.org to get a python based json library. It will properly escape string values for you (note that it'll include the quotes) so that you can output them into javascript in your

[google-appengine] Re: Datastore query limitations

2008-09-09 Thread [EMAIL PROTECTED]
Dave, Thank you for this post. Your description of how to handle date ranges led me to a solution on the map lat/long issue that has gotten so much discussion in various threads. I've posted the following in a couple of other threads as well, since it seems to be a real issue. But the solution

[google-appengine] Re: SMS Verification?

2008-09-09 Thread kiratisaathi
The sms verification is not sending sms to my country. I am from Nepal. What can i do? On Aug 22, 1:33 pm, Jorge Vargas [EMAIL PROTECTED] wrote: read thishttp://code.google.com/appengine/kb/sms.htmlone of the questions has a link form, login fill it out and wait for someone on their side to

[google-appengine] Re: lost source code

2008-09-09 Thread Marzia Niccolai
Hi, Currently, there is no method for retrieving source code from a deployed app. If this is a feature you are interested in, please star it on our issue tracker. -Marzia On Tue, Sep 9, 2008 at 6:06 AM, Amelie Mercier [EMAIL PROTECTED]wrote: Hi, Is it possible to retrieve source code of a

[google-appengine] Cookies

2008-09-09 Thread Tom
How can I use cookies with URL fetch? For instance I want to make an app that logs into a site using a username and password given by the user, and store the cookie that is given back from the site, so I can access the rest of the site as if I am logged in as that user. Any Idea?

[google-appengine] Re: Multiple db.ReferenceProperties

2008-09-09 Thread Marzia Niccolai
Hi, I can't seem to replicate the issue you are having. This is the code that I used, working as expected: class MainPage(webapp.RequestHandler): def get(self): user1 = SomeUserClass(someId='1') user2 = SomeUserClass(someId='2') user1.put() user2.put() new_test =

[google-appengine] Re: Error in manual: Example about back-references

2008-09-09 Thread Marzia Niccolai
Hi, Thanks for finding this. The docs will be updated shortly with the correct _set name. -Marzia On Mon, Sep 8, 2008 at 10:42 PM, bkow20 [EMAIL PROTECTED] wrote: Seconded. I noticed the same error, and as a novice, it threw me off for a while. Hopefully this will be changed. On Aug

[google-appengine] Re: Textproperty JSON

2008-09-09 Thread Jeff S (Google)
Hi Sambi, What library are you using to work with the JSON? Could you show us some of your code? Thank you, Jeff On Sep 7, 4:30 pm, Sambi [EMAIL PROTECTED] wrote: Hello all, I have an application in appengine and I am trying to access a textproperty field to my Orkut application using

[google-appengine] Re: Cookies

2008-09-09 Thread Wooble
On Sep 9, 1:19 pm, Tom [EMAIL PROTECTED] wrote: How can I use cookies with URL fetch? For instance I want to make an app that logs into a site using a username and password given by the user, and store the cookie that is given back from the site, so I can access the rest of the site as if I

[google-appengine] Static Files Not Uploading

2008-09-09 Thread Greg Marra
I have an app that was previously working fine, and now some of the static files are not uploading. The static files get served just fine when I run the app locally, and they /used/ to be on the production version of the site, but now the image files are just completely missing from the

[google-appengine] Re: Parsing clean URLs?

2008-09-09 Thread Kevin
I want to thank everyone for their answers. I was able to come up with a good solution based on your feedback! Kev --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send

[google-appengine] Using naked domains (like http://example.com)

2008-09-09 Thread Jeff S (Google)
Hi all, One question that we see a lot on the group is about setting up an app to serve from a naked domain (http://example.com) While this has been difficult but not impossible in the past, we've made some changes and are no longer allowing naked domains to be used for App Engine apps. The

[google-appengine] Re: Upload Post image app engine

2008-09-09 Thread Davide Rognoni
I see the mapping for ('/', MainPage) but where is the mapping for CountriesService, for example: ('/countries', CountriesService) and can you use only get and post in the CountriesService handler? . . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . . On Sep

[google-appengine] Re: Datastore query limitations

2008-09-09 Thread [EMAIL PROTECTED]
True, but there's no reason that you couldn't make an approximation for each range within reason. For my app, which is about finding garage sales, I assume that nobody wants to go more than 50 miles from their starting point. I can certainly imagine applications where the range might be a lot

[google-appengine] Re: Query filter based on the Longitude attribute of a db.GeoPt property

2008-09-09 Thread [EMAIL PROTECTED]
I just came up with this last night, and have only done limited testing. I can guess what you mean by the exploding index problem, but are there any particulars you can give? Does the exploding index problem impact mostly total data storage, time to index, or performance on the GQL queries? Or

[google-appengine] Re: Future: App Engine datacenters in the ocean?

2008-09-09 Thread Jonathan Feinberg
On Sep 8, 4:01 pm, Bill [EMAIL PROTECTED] wrote: This is a fairly cool Google idea:http://blogs.zdnet.com/BTL/?p=9937 Personally, I think my apps would like to be hosted just offshore of Maui. How about you move me to Maui, then host my apps in my house in Medford, MA?

[google-appengine] Re: A Very Specific AJAX RPC App Engine Question

2008-09-09 Thread Davide Rognoni
JSON-P example: script function foo(json) { alert( json[responseData][translatedText] ); } /script script src=http://ajax.googleapis.com/ajax/services/language/ translate?v=1.0q=hello%20worldlangpair=en%7Citcallback=foo/ script // - see the link

[google-appengine] Re: unterminated string literal

2008-09-09 Thread Davide Rognoni
ESCAPEJS http://www.djangoproject.com/documentation/templates/#escapejs . . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . . On Sep 9, 10:38 pm, thepopeofantelope [EMAIL PROTECTED] wrote: I understand that. The line of failure in my original posting was

[google-appengine] Re: lost source code

2008-09-09 Thread Nick Winter
I saw this the other day, which might do it -- however, I think you'd already have to have incorporated the shell into your project in order to do it, since if you upload an empty project with just the shell, then it'll wipe out your other code, right?