[google-appengine] Re: Creating web forms in GAE

2008-10-17 Thread [EMAIL PROTECTED]
Thanks, David! I needs time to think, Under integration I was thinking to use python on the server side and GWT - on client side. On Oct 17, 10:56 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > I think: > - Servlets are old (now I'm using Struts2) > - I like Python to build web prototypes, > -

[google-appengine] Re: Python 2.6 Runtime Environment

2008-10-17 Thread Nathan
On Oct 2, 9:20 am, Nathan <[EMAIL PROTECTED]> wrote: > Now that Python 2.6 has reached final release, I am just wondering > what plans/schedule there is for rolling it on on Google App Engine. The answer to my actual question can be found here (Oct 3, 2008): http://www.devxnews.com/article.php/3

[google-appengine] Re: Feature Request?

2008-10-17 Thread Ethan Post
Understood, but I am interested in seeing what sort of hit/miss ratio I get. There are uses and ways to design around data loss (for example, sequential #'s would be expected by the reader, a miss would end up generating a write to the datastore which could be monitored by the sender to trigger a r

[google-appengine] Re: HTTPS Support for appspot.com

2008-10-17 Thread Jeff S
Hi Alexander, Good point about 46 being marked a duplicate of 44. I've "de-duped" it. Cheers, Jeff On Oct 17, 10:41 am, Alexander Konovalenko <[EMAIL PROTECTED]> wrote: > HTTPS support is really great. > > Here is a summary of remaining security issues with App Engine. > > * Support HTTPS for

[google-appengine] Re: how can i get redirected url

2008-10-17 Thread Alexander Kojevnikov
Read last comments in this issue: http://code.google.com/p/googleappengine/issues/detail?id=404 -- www.muspy.com On Oct 18, 2:23 am, reedfly <[EMAIL PROTECTED]> wrote: > i open an url1 with urlfetch,and url is redirected to url2, > how can i get the url2 > > url1->http://graph.heartrails.com/api

[google-appengine] Re: Passing Data Between Request Handlers

2008-10-17 Thread Anthony
You could even use cookies - or a combination of memcache & cookies just incase one is not available. On Oct 17, 10:46 pm, Sylvain <[EMAIL PROTECTED]> wrote: > Use something like this > > def get_data(): >   data = memcache.get("key") >   if data is not None: >     return data >   else: >     dat

[google-appengine] Re: Since 1.1.5 import cgi/urllib/traceback/etc fails (on MacOS)

2008-10-17 Thread Tomas
setting correct PYTHONPATH variable in .bashrc worked for me. I have python from macports, so it was like this, you path might be different: PYTHONPATH="/opt/local/var/macports/software/python25/2.5.1_4+darwin_9/ opt/local/lib/python2.5" On Oct 6, 6:59 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wr

[google-appengine] Re: Definition of "Google's Infrastructure"

2008-10-17 Thread Alexander Konovalenko
On Oct 8, 11:17 am, Jon McAlister <[EMAIL PROTECTED]> wrote: > Regarding the CDN case is markedly different from the datastore case, > since you're just dealing with immutable blobs. This is not the thorny > issue. I think I've got an idea. If there is a major problem that takes all the servers t

[google-appengine] Re: Passing Data Between Request Handlers

2008-10-17 Thread Sylvain
Use something like this def get_data(): data = memcache.get("key") if data is not None: return data else: data = self.query_for_data() memcache.add("key", data, 60) return data or simply : memcache.set(.) On 17 oct, 22:33, adrian <[EMAIL PROTECTED]> wrote: > Yes that

[google-appengine] Re: 1000 mcycles to update a single entity

2008-10-17 Thread Denis
-- I've seen 15000 mcycle be consumed by a request that took less then two seconds to actually get rendered in my browser.-- I'm importing data into my new app. A single requests puts 500 something entities (one entity group, two db.put() to workaround the 500 entities per single put() limitation

[google-appengine] Re: SMS Activation Down

2008-10-17 Thread johnw
now getting "The phone number has been sent too many messages or has already been used to confirm an account." but have not received any text msgs --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine"

[google-appengine] Re: Passing Data Between Request Handlers

2008-10-17 Thread adrian
Yes that did the job. I deleted the key before adding each time since the doc is vague. The doc says add(): "Sets a key's value, if and only if the item is not already in memcache." The word "item" is vague, it should be replaced with "key" or "value". Thanks Sylvain. On Oct 17, 11:57 am, Sy

[google-appengine] Re: Feature Request?

2008-10-17 Thread Wooble
On Oct 17, 12:52 pm, "Ethan Post" <[EMAIL PROTECTED]> wrote: > I guess > I could skip the datastore entirely for some features and use memcache, > which I might do, I just have not had time to play around with that yet. It's almost certainly a bad idea to rely on memcache for a queue; there's n

[google-appengine] Re: counter

2008-10-17 Thread Peter Recore
On Oct 17, 1:32 pm, "Robert J. Carr" <[EMAIL PROTECTED]> wrote: > Anyway ... thanks for the notes, just seems a strange solution when > simple aggregates would make it simple. Sometimes I think the datastore API *should* have generic sharded counter functionality built in, as this would make pro

[google-appengine] Re: Creating web forms in GAE

2008-10-17 Thread Davide Rognoni
I think: - Servlets are old (now I'm using Struts2) - I like Python to build web prototypes, - and Java static typization for big projects. - GWT output is Javascript/HTML (it is simple to put into GAE) - if you are thinking "integration" as GWT made with Python, a good way is Jython (now I'm usin

[google-appengine] Re: counter

2008-10-17 Thread Robert J. Carr
Hey Jeff and Sylvain- Thanks for the info on the shard counter. I've been looking it over and I don't completely understand the code, I understand the idea. However, it is hard for me to believe it is a contention issue because this is a very low traffic download. Something around 1 download e

[google-appengine] Re: key_name length limits?

2008-10-17 Thread Andy Freeman
Thanks. I use a variety of db.Models and wanted some more error checking so I wrote something a bit more general but it's basically the same idea. (Since root instances can have key names instead of ids, I use whatever is there. I include the model names and enough structure so I can see what th

[google-appengine] Re: HTTPS Support for appspot.com

2008-10-17 Thread Alexander Konovalenko
HTTPS support is really great. Here is a summary of remaining security issues with App Engine. * Support HTTPS for arbitrary domains (not just *.appspot.com) This request is being tracked in issue 792: http://code.google.com/p/googleappengine/issues/detail?id=792 * urlfetch doesn't verify HTTPS

[google-appengine] Re: Deploy problem on all my apps today.

2008-10-17 Thread fazy
I have the problem too. app id: xulpix --~--~-~--~~~---~--~~ 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,

[google-appengine] Re: Deploy problem on all my apps today.

2008-10-17 Thread Marzia Niccolai
New applications deployments should now be succeeding. For more information, see the App Engine Downtime Notify group. -Marzia On Fri, Oct 17, 2008 at 9:23 AM, fazy <[EMAIL PROTECTED]> wrote: > > I have the problem too. > app id: xulpix > > > > --~--~-~--~~~---~--~-

[google-appengine] Re: counter

2008-10-17 Thread Jeff S
The reason that you are seeing timeouts, is that you have too many put transactions overlapping one another (contention). When a transaction fails, it is automatically retried. The sample that Sylvain pointed to is an excellent solution to this common design problem. The sharded counter avoids wri

[google-appengine] Re: Datastore storage recommendation...

2008-10-17 Thread Josh Heitzman
Haven't tried it, but I found that a class derived from Model with one attribute of type BlobProperty has the same baseline time as one with an empty StringListProperty. Further both of those are slightly faster then a Model with an single IntegerProperty. This makes sense as I wouldn't expect t

[google-appengine] Re: HTTPS Support for appspot.com

2008-10-17 Thread Satish
Thank you ! On Oct 17, 4:15 pm, conman <[EMAIL PROTECTED]> wrote: > Oh Boy!! > > That are great news!! Thanks for your _excellent_ work! > > Regards, > Constantin > > On 17 Okt., 00:03, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote: > > > One of the most frequently requested features for App Engine

[google-appengine] Re: counter

2008-10-17 Thread Sylvain
Use this : http://paste.blixt.org/1581 >From Google I/O On 17 oct, 08:03, rjcarr <[EMAIL PROTECTED]> wrote: > I have a simple app engine app that offers a download. I catch the > download request and record the time of the download in the data store > before sending the file. I'd also like to

[google-appengine] Re: Passing Data Between Request Handlers

2008-10-17 Thread Sylvain
memcache ? On 17 oct, 16:17, adrian <[EMAIL PROTECTED]> wrote: > A user enters some data in a form, and the Post is processed in one > request handler, and I sometimes want to be able to read it in another > request handler. How do I do that cleanly? > > I have tried globals, but it does not wo

[google-appengine] Re: Feature Request?

2008-10-17 Thread Ethan Post
I understand the concern. This would be just be an option, you would likely not have the same degree of assurance that the item has actually been read without error. Just looking for ways to keep mcycles down which G must be very concerned about based on the low thresholds they have set up for warn

[google-appengine] Re: Deploy problem on all my apps today.

2008-10-17 Thread Marzia Niccolai
Hi, There seems to be an issue with deploying new indexes this morning. Our engineering team is currently looking in to the issue. -Marzia On Fri, Oct 17, 2008 at 9:28 AM, Sylvain <[EMAIL PROTECTED]> wrote: > > Same here. > > App Id = hordes > > On 17 oct, 18:20, "Marzia Niccolai" <[EMAIL PROTE

[google-appengine] Re: Deploy problem on all my apps today.

2008-10-17 Thread Sylvain
Same here. App Id = hordes On 17 oct, 18:20, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote: > Thanks for the report. I'm looking in to trazi. To Tony and Anthony, what > app ids are you seeing this with? > > -Marzia > > On Fri, Oct 17, 2008 at 8:10 AM, Matija <[EMAIL PROTECTED]> wrote: > > > Me

[google-appengine] Re: Feature Request?

2008-10-17 Thread Josh Heitzman
I wouldn't want the item deleted until I had done whatever processing I needed to do with its data to ensure it didn't get lost due to a raised exception or crashed machine. On Oct 17, 9:18 am, "Ethan Post" <[EMAIL PROTECTED]> wrote: > A common task (queueing) is "fetchitem...delete the item once

[google-appengine] Re: Deploy problem on all my apps today.

2008-10-17 Thread Marzia Niccolai
Thanks for the report. I'm looking in to trazi. To Tony and Anthony, what app ids are you seeing this with? -Marzia On Fri, Oct 17, 2008 at 8:10 AM, Matija <[EMAIL PROTECTED]> wrote: > > Me too. > > For Marzia Niccolai my application id is: trazi > > > > --~--~-~--~~~-

[google-appengine] Feature Request?

2008-10-17 Thread Ethan Post
A common task (queueing) is "fetchitem...delete the item once it has been fetched". Right now that requires a get/fetch and a call to db.delete at some point. It would be nice if there was a particular attribute that could be set in the get which would automatically delete the item once it has been

[google-appengine] Re: Is there a way to get mcycles in code?

2008-10-17 Thread Ethan Post
Starred it, thanks. On Thu, Oct 16, 2008 at 4:30 PM, Josh Heitzman <[EMAIL PROTECTED]>wrote: > > Just opened http://code.google.com/p/googleappengine/issues/detail?id=789 > - API to get current mcycle consumption during request processing. > > On Oct 16, 9:04 am, "Ethan Post" <[EMAIL PROTECTED]>

[google-appengine] counter

2008-10-17 Thread rjcarr
I have a simple app engine app that offers a download. I catch the download request and record the time of the download in the data store before sending the file. I'd also like to keep track of the total number of downloads. Obviously, the number of rows in the data store represents the total n

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

2008-10-17 Thread Alexander Orlov
On Sep 22, 4:00 pm, A.TNG <[EMAIL PROTECTED]> wrote: > Originally in Django, locale could be set via session. But GAE cannot > work with session in Django. So I tried to set > settings.LANGUAGE_CODE='zh-cn' directly to make i18n works > dynamically. It works. I have extended the example "webappi1

[google-appengine] Re: datastore exception handling examples

2008-10-17 Thread izaac
I got this simple method it's not finished yet but at least is using the exceptions package from db def post(self): data = GuestBookForm(data=self.request.POST) if data.is_valid(): # what's going on here, GuestBook not callable ? user_sign = data.save

[google-appengine] how can i get redirected url

2008-10-17 Thread reedfly
i open an url1 with urlfetch,and url is redirected to url2, how can i get the url2 url1->http://graph.heartrails.com/api/?text0=text888&value0=100 url2->http://graph.heartrails.com/graph/48zsnapv.png the following is the source ---

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

2008-10-17 Thread Alexander Orlov
On Sep 22, 4:00 pm, A.TNG <[EMAIL PROTECTED]> wrote: > Originally in Django, locale could be set via session. But GAE cannot > work with session in Django. So I tried to set > settings.LANGUAGE_CODE='zh-cn' directly to make i18n works > dynamically. It works. I have done so in webappi18n.zip but

[google-appengine] Re: Modeling mutual references

2008-10-17 Thread Dado
That's not the "point" ;) discussed here... indeed the Book model (see below) do get a pages_set including all pages of that book, the problem discussed here is that the Book model can't declare the "first" property because it references the Page model which is not yet loaded by the interpreter. R

[google-appengine] Re: Deploy problem on all my apps today.

2008-10-17 Thread Matija
Me too. For Marzia Niccolai my application id is: trazi --~--~-~--~~~---~--~~ 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 unsubscrib

[google-appengine] Re: Deploy problem on all my apps today.

2008-10-17 Thread Tony Arkles
I'm seeing this too. On Oct 17, 8:31 am, Anthony <[EMAIL PROTECTED]> wrote: > I'm getting an error when I try to update my apps today it gets as far > as uploading the indexes then fails... > > Initiating update. > Cloning 78 static files. > Cloning 22 application files. > Closing update. > Uploa

[google-appengine] Deploy problem on all my apps today.

2008-10-17 Thread Anthony
I'm getting an error when I try to update my apps today it gets as far as uploading the indexes then fails... Initiating update. Cloning 78 static files. Cloning 22 application files. Closing update. Uploading index definitions. Error 500: --- begin server output --- Server Error (500) A server

[google-appengine] Re: Datastore storage recommendation...

2008-10-17 Thread David koblas
That's at least interesting from an update standpoint. If I read that correctly the biggest overhead is the DS Put operation, so the optimization of moving everything to single entry ID/Key/Value stores would cause problems during updates. Though as a difference I'm using the Entity object di

[google-appengine] Passing Data Between Request Handlers

2008-10-17 Thread adrian
A user enters some data in a form, and the Post is processed in one request handler, and I sometimes want to be able to read it in another request handler. How do I do that cleanly? I have tried globals, but it does not work; I suppose because the request handlers are called from another modul

[google-appengine] Re: Bulkloadclient Loading of related tables data

2008-10-17 Thread Alan
Mahmoud, Oh yes, and I do want to finally populate the production site as well Alan... On Oct 16, 4:13 pm, Mahmoud <[EMAIL PROTECTED]> wrote: > Are you trying to load the data in production or the local datastore? > > I found it much easier to load data using either one of these methods: > 1. W

[google-appengine] Re: Bulkloadclient Loading of related tables data

2008-10-17 Thread Alan
Mahmoud, fixture looks good thanks. About the load script, how is it basically constructed? Alan... On Oct 16, 4:13 pm, Mahmoud <[EMAIL PROTECTED]> wrote: > Are you trying to load the data in production or the local datastore? > > I found it much easier to load data using either one of these m

[google-appengine] Re: key_name length limits?

2008-10-17 Thread Ross Ridge
Andy Freeman wrote: > > I'd assumed that the length of a db.Model instance's db.Key().name() > > was a constant plus a linear function of the depth the entity in its > > entity group.] > > As I wrote above, I should have said length of str(db.Key() instance). > > db.Key's __str__ definition on goo

[google-appengine] Re: Customize login page

2008-10-17 Thread Fred
As a further note - to customize the application name that appears on the log-in screen, go to your application dashboard, click 'Application Settings' and then change the application title. Finally, re-deploy your application and the new name will appears in the log-in screen! On Sep 25, 6:15 am

[google-appengine] Re: Django helper - any further examples?

2008-10-17 Thread Alexander Kojevnikov
Rietveld from GvR: http://code.google.com/p/rietveld/ On Oct 17, 10:31 pm, Blessed Geek <[EMAIL PROTECTED]> wrote: > Google has a Django app engine helper as a skeletal application that > has all the setup required for Django to work with GAE. > > Are there any examples demonstrating use of that

[google-appengine] Re: HTTPS Support for appspot.com

2008-10-17 Thread conman
Oh Boy!! That are great news!! Thanks for your _excellent_ work! Regards, Constantin On 17 Okt., 00:03, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote: > One of the most frequently requested features for App Engine has been HTTPS > serving capabilities.  Today we're excited to announce that App E

[google-appengine] Django helper - any further examples?

2008-10-17 Thread Blessed Geek
Google has a Django app engine helper as a skeletal application that has all the setup required for Django to work with GAE. Are there any examples demonstrating use of that skeletal setup? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[google-appengine] RPC call in Google App Engine can't work with form

2008-10-17 Thread Ngu Soon Hui
Referring to the tutorial in http://code.google.com/appengine/articles/rpc.html. If I change the HTML to Result: Then I will have a get an exception when the below statement in Javascript is called: req.open('GET', '/rpc?' + query, async); The exception is: error