[google-appengine] memcache won't be flushed after app is redeployed

2009-03-28 Thread Coonay
the data strore is cleaned ,then i redeploy my app,next access my app via chrome,i found there are stale date in the memcache ,and i make sure these data has been deleted using the data viewer, My question is : won't the memcache be flushed after app is redeployed?(appcfg.py update myapp) Ps:how

[google-appengine] Re: sorting database entities by two properties

2009-03-28 Thread David Symonds
On Sun, Mar 29, 2009 at 3:01 PM, manuelaraoz wrote: > class Person(db.Model): > >age = IntegerProperty() >height_in_cm = IntegerProperty() > > how can I sort first by age, but if I have two people with the same > age, to sort them by height_in_cm You could create a synthetic property th

[google-appengine] Re: sorting database entities by two properties

2009-03-28 Thread gops
you need to do one sort in datastore , while other in memory. (google don't allow both simultaneously..). there should be less people with same height than there are with same age. ( this could be subjective...if your database span over all the ages , there are 5 year old to 80 year old . a span

[google-appengine] Re: One Page at a Time

2009-03-28 Thread niklas
Hello, GAE REST predefines pagination with sorting with no additional code needed. It only lacks a link or button named 'next'. It enables user selectable sort order and pagination from the http get query for the first 10 elements sorted by for example date modified: content(type='Entity')?order=m

[google-appengine] sorting database entities by two properties

2009-03-28 Thread manuelaraoz
Hi there! I want to know if this can be done efficiently: I need to sort some database's entities first by one property, and if there's a tie, to sort them by other property for example, lets have the following: class Person(db.Model): age = IntegerProperty() height_in_cm = IntegerProp

[google-appengine] Re: Internal server error during update

2009-03-28 Thread Wiiboy
If I switch to a new version, it uploads ok. But when I go to tell it that it is the default, I get a server error. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, se

[google-appengine] Re: Internal server error during update

2009-03-28 Thread Wiiboy
Ok, now it says: Your application has exceeded a quota: App Config Service Config App Call Count But what is that quota? According to "Quota Details", I have deployed 103 times in the past day. --~--~-~--~~~---~--~~ You received this message because you are subscr

[google-appengine] Internal server error during update

2009-03-28 Thread Wiiboy
Hi, I'm running Django and app-engine-patch 1.0. When I enter appcfg.py update ../app it responds with: Scanning files on local disk. Scanned 500 files. Initiating update. 2009-03-28 17:14:23,647 ERROR appcfg.py:1235 An unexpected error occurred. Aborting. Traceback (most recent call last): Fil

[google-appengine] Re: Does TOS allow multiple versions of one app that do different things?

2009-03-28 Thread Robert
Thanks Andy. I tried a "second" handler as I'd sketched out earlier in the thread, i.e. without it being the "main.py". I then later made that handler the "main.py", but did not see any differences in performance. Would indeed be nice for someone from Google to chime in Robert On Mar 28, 6:

[google-appengine] Re: Google Geocoding not working

2009-03-28 Thread Donnie Demuth
Hi Ehmo, did you find the solution for this? I'm running into the same problem. I know the key is correct but the geo-coding service is throwing the 601. Are you still using the proxy or did you ditch the app engine completely? On Feb 17, 4:54 am, ehmo wrote: > I did register it for API key b

[google-appengine] Re: users.get_current_user() returns previous logged out domain user

2009-03-28 Thread gops
can you make sure using firebug--or something-- that your browser actually make the request ... i had this problem before and i had to add random number at the end of the url to make it request again... can anyone tell , which should be the ideal response in terms of "Expire date" , "Cache contr

[google-appengine] Re: users.get_current_user() returns previous logged out domain user

2009-03-28 Thread Peter Cooper
Parth, I would clear all cookies and then try logoff/logon again. If that doesn't work, then do a work around. I haven't done any gadget connection work between Sites and GAE, but I would be surprised if Google created persistent session stores of logon information between a gadget and GAE. Logon

[google-appengine] Re: PolyModel needs to be rethought

2009-03-28 Thread Andy Freeman
> The problem with this is that if you have an inheritance > hierarchy in which your outermost descendant(s) extend several fields, > you've loaded your base entities with a mass of irrelevant fields > containing an unusual (i've never seen that before). I'm pretty sure that the base entities (t

[google-appengine] New to google app engine stuff...

2009-03-28 Thread Aaron
Hi, I just got hired in some job to basicly update and make changes to their website. So I already coded the changes in html and css. I currently need to get a hold on the server sided scripts. I am used to using php. Now they told me they are using google to host the website. This was news to m

[google-appengine] Re: Does TOS allow multiple versions of one app that do different things?

2009-03-28 Thread Andy Freeman
It's not clear that the app cache expects only one main() per app. I think that the documentation says that it will cache a main() for each handler. http://code.google.com/appengine/docs/python/tools/configuration.html#Script_Handlers says that that an application can have multiple handlers. ht

[google-appengine] Re: Sending Email

2009-03-28 Thread Wiiboy
On Mar 28, 6:07 am, David Wilson wrote: > AFAIK AppEngine strips the display name part, annoyingly. This was > true a few months ago anyway. Yup, still does, for me anyway. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[google-appengine] Re: Does TOS allow multiple versions of one app that do different things?

2009-03-28 Thread Andy Freeman
The class/__new__ trick isn't the only way to implement a proxy - a function works just as well. If the handlers for several pages are in the same file, one can use a single proxy for all of them. Replace import file1 and ('/pathn', PathnPage) with ('/pathn', File1Proxy('PathnPage')) and def Fi

[google-appengine] Re: does GAE use just-in-time (JIT) compiler?

2009-03-28 Thread Luis Gonzalez
Psyco is a c module, so no. It is not supported in GAE. That's the reason why most extension modules are not supported. Only pure python modules are. By the way, there's a new project started by Google engineers to speed up python. It aims to be at least 5x faster and, amongst other goals, to be

[google-appengine] Re: Sending Email

2009-03-28 Thread David Wilson
AFAIK AppEngine strips the display name part, annoyingly. This was true a few months ago anyway. David. 2009/3/28 Alkis Evlogimenos ('Αλκης Ευλογημένος) : > Try "SchooGoo " > > On Sat, Mar 28, 2009 at 5:46 AM, Wiiboy wrote: >> >> My domain is schoolgoo.com >> So I set up the user schoo...@scho

[google-appengine] Re: Bad Gateway errors at the worst of times

2009-03-28 Thread Tom M.
http://groups.google.com/group/google-appengine/browse_thread/thread/391a6ecc2febfc22/f43d82010fb1b598 Is it suggested that I hit the winebythebar.appspot.com domain instead of www.winebythebar.com? On Mar 28, 8:51 am, Tom wrote: > I get sporadic Bad Gateway errors that seem to come in clumps.

[google-appengine] Bad Gateway errors at the worst of times

2009-03-28 Thread Tom
I get sporadic Bad Gateway errors that seem to come in clumps. (One "clump" was bad enough that at least a few users of my Android phone app have uninstalled.) What sort of details do I need to get in order to figure out the cause? I see no info in the GAE server logs. (I assume because the reque

[google-appengine] Re: New Limits for Several App Engine Operations

2009-03-28 Thread David Symonds
On Sat, Mar 28, 2009 at 12:08 PM, ben wrote: > So far I haven't deployed any apps onto Google's servers. Does > dev_appserver.py enforce the same limits as the "real deal"? On the whole, no. It doesn't raise any datastore timeouts or anything like that, since it's not an accurate simulation wi

[google-appengine] Re: Sending Email

2009-03-28 Thread 'Αλκης Ευλογημένος
Try "SchooGoo " On Sat, Mar 28, 2009 at 5:46 AM, Wiiboy wrote: > > My domain is schoolgoo.com > So I set up the user schoo...@schoolgoo.com. I send it as > schoo...@schoolgoo.com (It gives an error if I use > schoo...@schoolgoo.com). The sender then shows up as 'schoogoo'. I > guess that's Ok,

[google-appengine] Re: Is any geo database provide by google ?

2009-03-28 Thread Barry Hunter
No. But they provide a verity of APIs http://code.google.com/more/#products-geo-earth http://code.google.com/apis/ajaxsearch/local.html On 28/03/2009, service G2100 wrote: > Is any geo database provide by google ? > > like http://world-gazetteer.com/ > > > Best Begards > Tom Wu > > > > > --

[google-appengine] Re: Can C++ code be wrapped up on GAE?

2009-03-28 Thread GregF
As mentioned above, you can't run C++ on GAE. If you can easily convert your C++ to python (or java - it seems that will be supported soon), you can run it on GAE. This may be a better idea than it seems - I wouldn't expose a C++ app to the internet without doing rigorous security testing to make

[google-appengine] Re: Mass removal of data from an app

2009-03-28 Thread Paul Kinlan
Hi Bill, Nope :) I will look into it now, it is looks to be a lot cleaner way than what I am doing now which is a cron scheduled task that calls a delete http handler. Thanks for the tip. Paul. 2009/3/28 Bill > > Paul, > > Have you tried out the remote_api as a way of deleting your entities?

[google-appengine] Re: Mass removal of data from an app

2009-03-28 Thread Bill
Paul, Have you tried out the remote_api as a way of deleting your entities? Here's an article in case you missed it: http://code.google.com/appengine/articles/remote_api.html -Bill On Mar 28, 2:22 am, Paul Kinlan wrote: > Hi, > > I have about 10GB of used storage in an application > (http://w

[google-appengine] Mass removal of data from an app

2009-03-28 Thread Paul Kinlan
Hi, I have about 10GB of used storage in an application ( http://www.thethumbthing.com, app_id websnapshot). It was given as part of a quota increase, I am trying to remove most of the data so that I am under the quota limit when the application reverts to billing mode and so that I can plan the