[google-appengine] Re: High CPU usage on simple DB query
Hmm, i've rembered, that i've one real simple application. There no django :) app-id: denya simple page handler MyTicketPageHandler(webapp.RequestHandler): get data, show data (using template from ext.webapp) only db request: mytickets = TicketModel.all().filter("author =",curuser).order('- lastmodDate') and, if when there ~30 records, it takes ~1192ms-cpu! So i can see warnings in Logs :-) What i should do, if i need to fetch ~150-300 records from db and show it? > So, what is this? > Is it OK? --~--~-~--~~~---~--~~ 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] High CPU usage on simple DB query
My application name: ctms-medms-test. I've some strange thing with CPU usage. I'am using Django and Appenginepatch. I've simple view: def list_city(request): queryset = ctms_City.all() return object_list(request,queryset,template_name="ctms/ city_list.html", paginate_by=500) And simple template that look like: {% for record in object_list %} {{ record.name }} {% endfor %} Model: class ctms_City(db.Model): name = db.StringProperty(u"Город",required=True) def __unicode__(self): return self.name OK, there ~100 records in ctms_City. And i've got CPU usage ~4000ms- cpu! And CPU usage in proprotion to the number of recrods. I've tried to remove reference to object_list in template (so, no fetched from DB data are displayed), but CPU-usage has not changed. So, i can say, that django-templates is not a cause. So, what is this? Is it OK? --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Got it. And it takes me back just right. Thanks so much Gipsy. IOU, big time. Brian in Atlanta --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
You can find the sample code here http://dpaste.com/107358/ On Fri, Jan 9, 2009 at 11:43 PM, Gipsy Gopinathan wrote: > no that is my appspot > > On Fri, Jan 9, 2009 at 11:41 PM, thebrianschott wrote: > >> >> Yes, that's what I want. Your appspot is not kangchenchunga, is it. >> You just found it for me, right? >> >> That's great. Thanks a bunch. >> >> On Jan 10, 12:35 am, thebrianschott wrote: >> > Wait, I think I know how to do it. Give me a few seconds until I can >> > use my honey's computer and I'll get back to you. >> > >> > Brian >> >> >> > > > -- > cheers > Gipsy > -- cheers Gipsy --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
no that is my appspot On Fri, Jan 9, 2009 at 11:41 PM, thebrianschott wrote: > > Yes, that's what I want. Your appspot is not kangchenchunga, is it. > You just found it for me, right? > > That's great. Thanks a bunch. > > On Jan 10, 12:35 am, thebrianschott wrote: > > Wait, I think I know how to do it. Give me a few seconds until I can > > use my honey's computer and I'll get back to you. > > > > Brian > > > -- cheers Gipsy --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Yes, that's what I want. Your appspot is not kangchenchunga, is it. You just found it for me, right? That's great. Thanks a bunch. On Jan 10, 12:35 am, thebrianschott wrote: > Wait, I think I know how to do it. Give me a few seconds until I can > use my honey's computer and I'll get back to you. > > Brian --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Wait, I think I know how to do it. Give me a few seconds until I can use my honey's computer and I'll get back to you. Brian --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
check http://kangchenchunga.appspot.com/ is this what you want ? On Fri, Jan 9, 2009 at 11:28 PM, thebrianschott wrote: > > Gipsy, > > Could you just run the sample on your webpage and tell me what you > get? > > Thanks, > > Brian > > On Jan 10, 12:19 am, "Gipsy Gopinathan" wrote: > > I think now I understood what you want . You want to provide a link in > your > > home page for your users to login if they want to. And if the user is > logged > > in, the application may behave differently. Is my understanding is right? > > > > If yes. Then i don't understand why you are not able provide the login > url > > generated by the users.create_login_url in your home page handler as a > link > > in the home age ? Am I misssing something? > > > > I think I should be able to send you a sample app for this soon. > > > > On Fri, Jan 9, 2009 at 11:04 PM, thebrianschott >wrote: > > > > > > > > > > > > > Gipsy, > > > > > Let me clarify. Right now a number of non-user people are using my app > > > and I cannot afford to stick in such code while it its being used, > > > even by beta-tester types. I don't want to risk losing them. > > > > > Brian > > > > > On Jan 10, 12:00 am, thebrianschott wrote: > > > > Gipsy, > > > > > > I think it may satisfy my requirement, but how do I learn what that > > > > url is ("the_url" below)? It looks like I need to know that url so I > > > > can put it in as hard-coded link [ Click here if > you > > > > wish to login] on my app's home page. > > > > -- > > cheers > > Gipsy > > > -- cheers Gipsy --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Gipsy, Could you just run the sample on your webpage and tell me what you get? Thanks, Brian On Jan 10, 12:19 am, "Gipsy Gopinathan" wrote: > I think now I understood what you want . You want to provide a link in your > home page for your users to login if they want to. And if the user is logged > in, the application may behave differently. Is my understanding is right? > > If yes. Then i don't understand why you are not able provide the login url > generated by the users.create_login_url in your home page handler as a link > in the home age ? Am I misssing something? > > I think I should be able to send you a sample app for this soon. > > On Fri, Jan 9, 2009 at 11:04 PM, thebrianschott wrote: > > > > > > > Gipsy, > > > Let me clarify. Right now a number of non-user people are using my app > > and I cannot afford to stick in such code while it its being used, > > even by beta-tester types. I don't want to risk losing them. > > > Brian > > > On Jan 10, 12:00 am, thebrianschott wrote: > > > Gipsy, > > > > I think it may satisfy my requirement, but how do I learn what that > > > url is ("the_url" below)? It looks like I need to know that url so I > > > can put it in as hard-coded link [ Click here if you > > > wish to login] on my app's home page. > > -- > cheers > Gipsy --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
I think now I understood what you want . You want to provide a link in your home page for your users to login if they want to. And if the user is logged in, the application may behave differently. Is my understanding is right? If yes. Then i don't understand why you are not able provide the login url generated by the users.create_login_url in your home page handler as a link in the home age ? Am I misssing something? I think I should be able to send you a sample app for this soon. On Fri, Jan 9, 2009 at 11:04 PM, thebrianschott wrote: > > Gipsy, > > Let me clarify. Right now a number of non-user people are using my app > and I cannot afford to stick in such code while it its being used, > even by beta-tester types. I don't want to risk losing them. > > Brian > > On Jan 10, 12:00 am, thebrianschott wrote: > > Gipsy, > > > > I think it may satisfy my requirement, but how do I learn what that > > url is ("the_url" below)? It looks like I need to know that url so I > > can put it in as hard-coded link [ Click here if you > > wish to login] on my app's home page. > > > > > > -- cheers Gipsy --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Gipsy, Let me clarify. Right now a number of non-user people are using my app and I cannot afford to stick in such code while it its being used, even by beta-tester types. I don't want to risk losing them. Brian On Jan 10, 12:00 am, thebrianschott wrote: > Gipsy, > > I think it may satisfy my requirement, but how do I learn what that > url is ("the_url" below)? It looks like I need to know that url so I > can put it in as hard-coded link [ Click here if you > wish to login] on my app's home page. > --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Gipsy, I think it may satisfy my requirement, but how do I learn what that url is ("the_url" below)? It looks like I need to know that url so I can put it in as hard-coded link [ Click here if you wish to login] on my app's home page. On Jan 9, 11:47 pm, "Gipsy Gopinathan" wrote: > Brian, > > If you let your users click the url generated by > users.create_login_url('/xyz') it will take the users to the google' > account login page and after successfull completion of login , google > automatically redirect the user to the url you have provided ('xyz' in this > case). I think this satisfies your requirement. Is it? > Brian --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Brian, If you let your users click the url generated by users.create_login_url('/xyz') it will take the users to the google' account login page and after successfull completion of login , google automatically redirect the user to the url you have provided ('xyz' in this case). I think this satisfies your requirement. Is it? On Fri, Jan 9, 2009 at 10:29 PM, thebrianschott wrote: > > Geoffrey, > > Yes, but that seems to assume that the user MUST login, and only users > who need to login for the result they wish to achieve, need to login. > > If you can tell me a link to where I can send people who get to my > application home page and wish to login, can go, I can enter that link > for them to click and I can tell them to come back to my page (with > the back button?) when they complete login. But I don't know where to > send: what URL link would I give them? > > Thanks, > > Brian in Atlanta > > > -- cheers Gipsy --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Geoffrey, Yes, but that seems to assume that the user MUST login, and only users who need to login for the result they wish to achieve, need to login. If you can tell me a link to where I can send people who get to my application home page and wish to login, can go, I can enter that link for them to click and I can tell them to come back to my page (with the back button?) when they complete login. But I don't know where to send: what URL link would I give them? Thanks, Brian in Atlanta --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Somewhere in your handler for /: if users.get_current_user() is None: self.response.out.write("Click here to login") When a user clicks the resulting link, they'll go to the login page, log in, and get sent back to your page, where the login link won't show anymore. On Jan 9, 10:51 pm, thebrianschott wrote: > Gipsy, > > I don't think that the first option will work because I cannot assume > that the person who arrives needs to be a user. Non-users can also > arrive at my home page and enter a "place" in the text field, but I > want to treat users differently from non-users. > > But I want to give users a chance to login from my home page, because > I don't know what else to tell them to do to login at that point. How > does anyone login at appspot without being invited to do so? Can you > just initiate a login? If so, I can give users instructions for a link > to where they can do so, and tell them when they are through to come > back manually. But I don't know where to tell them to go. > > I don't understand the second option, but I assume it does not achieve > my needs, either, does it? > > Thanks so much for helping on this. > > On Jan 9, 7:28 pm, "Gipsy Gopinathan" wrote: > > > > > Okay. > > > Then from your handler for '/' check if users.get_current_user() is None if > > true then redirect > > (DO NOT write the response back), to the url generated by > > users.create_login_url("/") > > > code will be something like > > ' > > > > ... > > > self.redirect(users.create_login_url("/")) > > > > > Or you can write back the below html snippet > > > """ > onload='location.replace('"""+users.create_login_url("/")+"""')> > ml>""" > > Brian in Atlanta --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Gipsy, I don't think that the first option will work because I cannot assume that the person who arrives needs to be a user. Non-users can also arrive at my home page and enter a "place" in the text field, but I want to treat users differently from non-users. But I want to give users a chance to login from my home page, because I don't know what else to tell them to do to login at that point. How does anyone login at appspot without being invited to do so? Can you just initiate a login? If so, I can give users instructions for a link to where they can do so, and tell them when they are through to come back manually. But I don't know where to tell them to go. I don't understand the second option, but I assume it does not achieve my needs, either, does it? Thanks so much for helping on this. On Jan 9, 7:28 pm, "Gipsy Gopinathan" wrote: > Okay. > > Then from your handler for '/' check if users.get_current_user() is None if > true then redirect > (DO NOT write the response back), to the url generated by > users.create_login_url("/") > > code will be something like > ' > > ... > > self.redirect(users.create_login_url("/")) > > > Or you can write back the below html snippet > > """ onload='location.replace('"""+users.create_login_url("/")+"""')> ml>""" > Brian in Atlanta --~--~-~--~~~---~--~~ 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] Datastore timeouts and retries.
Hi there, Having got my application to a barely working state last week, I tried to demonstrate it to a friend. Before he had even reached the main page of the application, a Datastore timeout had occurred while updating his session record. I talked to a few people about this, and it seems when this occurs it is usually safe to retry the operation a few times. I've been thinking about this issue a little since then, and have reached the conclusion that my application code should not need to be handling this explicitly at all. I considered the following avenues for continuity in the face of a Datastore timeout: * Somehow use memcache as an alternative. This assumes that during some future request, my code would eventually retry the operation and it would succeed, and in the meantime, memcache does not get flushed. Anywhere this kind of data needs accessed, my code would need to explicitly check both memcache and the datastore. Basically this seems like a dumb thing to attempt. * Use some alternative storage via urlfetch. This seems pretty much insane. * Return a friendly error message This seems premature unless we've already retried the operation a few times. * Retry the operation. Leaving the fourth option, which seems to me, should be the default. I've been trying to think of the downsides of wrapping or monkey-patching the Datastore API to always automatically retry, and I'm coming up blank. I can imagine there are cases when such automatic behaviour might not be ideal, and so, perhaps providing an extra parameter to get()/put()/Query.fetch() to disable it would work. Any thoughts? It kinda sucks that user code needs to handle these exceptions when the only real sane thing it can do is retry the operation. As always, I'm probably missing something obvious. :) Thanks, David. -- 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] Unsupported type in GQL query with IN clause
I have a GQL query that works fine when theres only one Merchant Entity, but fails as below when theres more than 1, any ideas? merchantList= [e.key() for e in Merchant.all().fetch(10)] Item.gql('WHERE style = :style and merchant in :merchants ORDER BY __key__',style=theStyle,merchants=merchantList) 846. entities = query.fetch(numItems) File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ ext/db/__init__.py" in fetch 1377. raw = self._get_query().Get(limit, offset) File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ ext/db/__init__.py" in _get_query 1659. return self._proto_query.Bind(self._args, self._kwds) File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ ext/gql/__init__.py" in Bind 256. query.update(enumerated_query) File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ api/datastore.py" in update 1036. self.__setitem__(filter, value) File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ api/datastore.py" in __setitem__ 979. datastore_types.ValidateProperty(' ', value, read_only=True) File "/home/paul/projects/outfitsis/.google_appengine/google/appengine/ api/datastore_types.py" in ValidateProperty 1066. 'Unsupported type for property %s: %s' % (name, v.__class__)) Exception Type: BadValueError at /design/ Exception Value: Unsupported type for property : Running appengine_1.1.7 --~--~-~--~~~---~--~~ 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: Google App Engine Platform
> What if I want to move away from GAE later.. can I host django, > web.py, or webapp frameworks myself? (Does my question make sense?) > Check out this article: http://code.google.com/appengine/articles/pure_django.html --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Okay. Then from your handler for '/' check if users.get_current_user() is None if true then redirect (DO NOT write the response back), to the url generated by users.create_login_url("/") code will be something like ' ... self.redirect(users.create_login_url("/")) Or you can write back the below html snippet "" On Fri, Jan 9, 2009 at 6:04 PM, thebrianschott wrote: > > yes, Gipsy. > > On Jan 9, 6:35 pm, "Gipsy Gopinathan" wrote: > > Brian, > > > > So you want your home page to be the login page and redirect them back to > > the form when login is complete? > > > > > > -- cheers Gipsy --~--~-~--~~~---~--~~ 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] OpenID, is it good?
I have just read something about OpenID. It seems a good solution, in particularly for mobile web apps. I wonder what is the general feedback for it? How is it compare it Google Login? Thanks, M --~--~-~--~~~---~--~~ 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: Google App Engine Platform
Very good question.I think this also is most of startups' concern over using App Engine. http://www.feld.com/wp/archives/2008/04/what-exactly-is-google-app-engine.html For the ListProperty, isn't it similar to ManyToManyField in Django? correct me if I am wrong. M On Fri, Jan 9, 2009 at 11:02 PM, Barry Hunter wrote: > > You might well have to do some work scaling* the SDK, but it is > possible to host a minimally changed App Engine App on differerent > host. > > http://waxy.org/2008/04/exclusive_google_app_engine_ported_to_amazons_ec2/ > > * the SDK isnt intended to handle real traffic, so it wont natively > scale very well. In particular the Datastore API would need to be > modified to access a real database > > 2009/1/9 Eric Frost : > > > > What if I want to move away from GAE later.. can I host django, > > web.py, or webapp frameworks myself? (Does my question make sense?) > > > > Eric > > > > On Jan 9, 1:54 pm, adelevie wrote: > >> GAE forces you to use a framework, php doesn't. GAE lets you cheaply > >> host django, web.py and webapp frameworks. > > > > > > > > > > > -- > Barry > > - www.nearby.org.uk - www.geograph.org.uk - > > > > --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
yes, Gipsy. On Jan 9, 6:35 pm, "Gipsy Gopinathan" wrote: > Brian, > > So you want your home page to be the login page and redirect them back to > the form when login is complete? > --~--~-~--~~~---~--~~ 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: Global Time Synchronisation Guarantees
2009/1/9 Cesium : > > What we need is clarification of the maximum offset of any server from > UTC(NIST). Marzia in this thread has already said they dont offer any guarantees. I'm still unsure how knowing that (say) it shouldnt deviate more than 10 seconds is actully going to help. What will you do with that figure? > Some description of the syncronization algorithm used would also be > nice. > (Large discontinuities in a time scale are evil.) > > I really, really don't like this idea: > "Put your own central server on the web and use urlfetch() to get > timestamp/invoice numbers. " > > NIST is in fact working on a time service using port 80, but it won't > be ready before my application's rollout. > > I'm currently using the GAE server time, and my tests show that it > agrees with UTC(NIST) within the > uncertainty of my measurements. I'd just like an 'official' > clarification. > > Cesium > > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~-~--~~~---~--~~ 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: Global Time Synchronisation Guarantees
What we need is clarification of the maximum offset of any server from UTC(NIST). Some description of the syncronization algorithm used would also be nice. (Large discontinuities in a time scale are evil.) I really, really don't like this idea: "Put your own central server on the web and use urlfetch() to get timestamp/invoice numbers. " NIST is in fact working on a time service using port 80, but it won't be ready before my application's rollout. I'm currently using the GAE server time, and my tests show that it agrees with UTC(NIST) within the uncertainty of my measurements. I'd just like an 'official' clarification. Cesium --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Brian, So you want your home page to be the login page and redirect them back to the form when login is complete? On Fri, Jan 9, 2009 at 5:27 PM, thebrianschott wrote: > > Gipsy, > > No, I want the people who do login to return to this home page. If the > form entry is not empty it would be Ok for them to be sent on "/? > place=" but that is more than I expect. > > Brian in Atlanta > > On Jan 9, 5:57 pm, "Gipsy Gopinathan" wrote: > > I assume that,your requirement is ,when the user submit the form: > > > > > > > > > > > > > > You want them to be taken to the login page if they are not already > logged > > in ? > > > > If my assumption is correct, then as Geoffrey said ,check if > > users.get_current_user() is None and if true re-direct to the login url > > generated by users.create_login_url("/") else do the stuff the handler > > suppose to . > > > > On Fri, Jan 9, 2009 at 3:31 PM, thebrianschott >wrote: > > > > > > > > > > > > > I don't quite get it. I hope if by seeing the existing form on the > > > page and my attempt at following your suggestions, you can spell out > > > more specifically what you mean Geoffrey and Gipsy. > > > > > This is the existing form. > > > > > > > > > > > > > > > > > Is this what your mean? If not, can you correct it, please? > > > Sign in or register. > > a> ) > > > > > On Jan 9, 4:00 pm, Geoffrey Spear wrote: > > > > You just create an ordinary link using the value returned by > > > > users.create_login_url("/") as the link location, and display the > link > > > > only if users.get_current_user() is None. > > > > > [snip] > > > > > On Jan 9, 1:21 pm, "Gipsy Gopinathan" > wrote: > > > > > > > > I guess you can just do a redirect to the url generated by > > > > > > users.create_login_url("/") from your handler when user clinks on > the > > > link > > > > > > in your home page. > > > > > Brian in Atlanta > > > > -- > > cheers > > Gipsy > > > -- cheers Gipsy --~--~-~--~~~---~--~~ 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] Sample Code: Import Yahoo! Pipes Data
Hi, I'm not a developer, but I'm trying to learn Google App Engine (GAE) by working on a simple project to import data output from Yahoo! Pipes and present it as a one page website powered by GAE. Yahoo! Pipes exports data in a number of formate: RSS, XML, JSON. I'm looking for some sample code that would teach me how to request that data, parse it, and display the output in a GAE app. Can someone point me to a sample app that offers this sort of functionality? I'm sure if I look at working code, I could tweak it to fit my own needs. I just haven't seen any sample apps that are based on third party API calls. An example of the type of site I would like to build it here... http://www.retweetradar.com/ That site is just one page that's based on API output from Twitter and the Yahoo! Keyword Extraction API. --~--~-~--~~~---~--~~ 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: Whaddya mean "Verify my account"? Again?!
On Fri, Jan 9, 2009 at 6:06 PM, Marzia Niccolai wrote: > Hi Faber, > > You will need to verify an account when you create the first application > with that account, even if that account has been invited to develop on other > applications. > > Each developer gets to create 10 application, but can develop on all those > they can get invited to :) IIUC, I'm screwed. :-) I used my cell number for my personal AppEngine account. So how do I get verified for my client's account when my SMS number has already been used? Or do I have to have them create the app? > > > - Marzia > > > On Fri, Jan 9, 2009 at 1:35 PM, Faber Fedor wrote: > >> Something is not right between me and AppEngine. >> >> Earlier today I uploaded a new version of a client's AppEngine app. I >> login under my client-based account (fa...@cloudtechllc.com) to do some >> maintenance. I go to our appengine page and I see our two apps. I click on >> one of them and do some work. >> >> I go back to the appengine page to install another application. Under the >> button "Create New Application" it says I have 10 apps left. That should >> read "8". Anyway, I click "Create a New Application" and the system wants >> to verify my account with an SMS message. Of course, it won't accept my >> number since it's already been used to verify my (an) account. >> >> What gives? >> >> -- >> >> Faber Fedor >> Cloud Computing New Jersey >> http://cloudcomputingnj.com >> >> >> > > > > -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Gipsy, No, I want the people who do login to return to this home page. If the form entry is not empty it would be Ok for them to be sent on "/? place=" but that is more than I expect. Brian in Atlanta On Jan 9, 5:57 pm, "Gipsy Gopinathan" wrote: > I assume that,your requirement is ,when the user submit the form: > > > > > > > You want them to be taken to the login page if they are not already logged > in ? > > If my assumption is correct, then as Geoffrey said ,check if > users.get_current_user() is None and if true re-direct to the login url > generated by users.create_login_url("/") else do the stuff the handler > suppose to . > > On Fri, Jan 9, 2009 at 3:31 PM, thebrianschott wrote: > > > > > > > I don't quite get it. I hope if by seeing the existing form on the > > page and my attempt at following your suggestions, you can spell out > > more specifically what you mean Geoffrey and Gipsy. > > > This is the existing form. > > > > > > > > > > > Is this what your mean? If not, can you correct it, please? > > Sign in or register. > a> ) > > > On Jan 9, 4:00 pm, Geoffrey Spear wrote: > > > You just create an ordinary link using the value returned by > > > users.create_login_url("/") as the link location, and display the link > > > only if users.get_current_user() is None. > > > [snip] > > > > On Jan 9, 1:21 pm, "Gipsy Gopinathan" wrote: > > > > > > I guess you can just do a redirect to the url generated by > > > > > users.create_login_url("/") from your handler when user clinks on the > > link > > > > > in your home page. > > > Brian in Atlanta > > -- > cheers > Gipsy --~--~-~--~~~---~--~~ 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: Transaction collisions
If you get a transaction collisions on objects you need to Shard the object. Look at this talk video http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine 2009/1/9 Ryan W : > > I was noticing what appeared to be some entity saves/puts being missed > or ignored by the datastore. I suspected it was due to contention of > many updates for the same entity coming in to fast. So, I put it in a > transaction (incrementing a view count when a page/entity is viewed). > > As soon as I put it in a transaction, I began getting lots of these: > > "Transaction collision for entity group with key > datastore_types.Key.from_path" > > I couldn't find much for this error, but it sounds like these should > be avoided. Is it accurate to say these should be avoided, or are > they pretty harmless? Is it still saving though? > > What are some strategies for reducing contention? Storing hits/counts > in memcache and periodically persisting to the datastore? > > This model is of type searchablemodel, so perhaps that's not helping > things? > > > > --~--~-~--~~~---~--~~ 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: Debug Console
Try this URL http://localhost:8080/?debug When there is a parameter called 'debug' you get an overlay console 2009/1/9 DocDay : > > I've been going through the article "Logging Events in Your > Application" at http://code.google.com/appengine/articles/logging.html > > In the section entitled "Viewing the Log Information in Real Time", a > "debug console" is described. Try as I might, I've been unable to get > this to work. Has anyone had success with this? > > Doc > > > > --~--~-~--~~~---~--~~ 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: 500 server error
On Fri, Jan 9, 2009 at 5:04 PM, adelevie wrote: > I have one app right now http://wepaste.appspot.com. I know how to > create and upload apps. However, today, I cannot even upload a hello > world even though the app works perfectly on dev_appserver. appcfg.py > runs fine but when I visit the URL, I get a 500 server error. which error appears in the log? -- rodrigo --~--~-~--~~~---~--~~ 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: Whaddya mean "Verify my account"? Again?!
Hi Faber, You will need to verify an account when you create the first application with that account, even if that account has been invited to develop on other applications. Each developer gets to create 10 application, but can develop on all those they can get invited to :) - Marzia On Fri, Jan 9, 2009 at 1:35 PM, Faber Fedor wrote: > Something is not right between me and AppEngine. > > Earlier today I uploaded a new version of a client's AppEngine app. I > login under my client-based account (fa...@cloudtechllc.com) to do some > maintenance. I go to our appengine page and I see our two apps. I click on > one of them and do some work. > > I go back to the appengine page to install another application. Under the > button "Create New Application" it says I have 10 apps left. That should > read "8". Anyway, I click "Create a New Application" and the system wants > to verify my account with an SMS message. Of course, it won't accept my > number since it's already been used to verify my (an) account. > > What gives? > > -- > > Faber Fedor > Cloud Computing New Jersey > http://cloudcomputingnj.com > > > > --~--~-~--~~~---~--~~ 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: Google App Engine Platform
You might well have to do some work scaling* the SDK, but it is possible to host a minimally changed App Engine App on differerent host. http://waxy.org/2008/04/exclusive_google_app_engine_ported_to_amazons_ec2/ * the SDK isnt intended to handle real traffic, so it wont natively scale very well. In particular the Datastore API would need to be modified to access a real database 2009/1/9 Eric Frost : > > What if I want to move away from GAE later.. can I host django, > web.py, or webapp frameworks myself? (Does my question make sense?) > > Eric > > On Jan 9, 1:54 pm, adelevie wrote: >> GAE forces you to use a framework, php doesn't. GAE lets you cheaply >> host django, web.py and webapp frameworks. > > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~-~--~~~---~--~~ 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: Sort by Relevance
It would have to be custom, SearchableModel does not support it, as the comments mention here: http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/search/__init__.py I know they are working on an improved full-text search solution, but there is no timeline. Be sure to vote for (star) this entry in the issue tracker: http://code.google.com/p/googleappengine/issues/detail?id=217 On Jan 9, 11:54 am, MajorProgamming wrote: > I know that the MySQL version of FullText search supports sorting by > Relevance. Is there any way to mimic this functionality on App Engine? > [whether through Searchable Entity or through custom methods]? --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
I assume that,your requirement is ,when the user submit the form: You want them to be taken to the login page if they are not already logged in ? If my assumption is correct, then as Geoffrey said ,check if users.get_current_user() is None and if true re-direct to the login url generated by users.create_login_url("/") else do the stuff the handler suppose to . On Fri, Jan 9, 2009 at 3:31 PM, thebrianschott wrote: > > I don't quite get it. I hope if by seeing the existing form on the > page and my attempt at following your suggestions, you can spell out > more specifically what you mean Geoffrey and Gipsy. > > This is the existing form. > > > > > > Is this what your mean? If not, can you correct it, please? > Sign in or register. a> ) > > On Jan 9, 4:00 pm, Geoffrey Spear wrote: > > You just create an ordinary link using the value returned by > > users.create_login_url("/") as the link location, and display the link > > only if users.get_current_user() is None. > > > [snip] > > > On Jan 9, 1:21 pm, "Gipsy Gopinathan" wrote: > > > > > > I guess you can just do a redirect to the url generated by > > > > users.create_login_url("/") from your handler when user clinks on the > link > > > > in your home page. > > Brian in Atlanta > > > -- cheers Gipsy --~--~-~--~~~---~--~~ 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: High CPU for zipimporter django.zip
Ok think I've got it.. I'm now checking the sys.path for the import, now only does it once! if not 'shared/jinja2.zip' in sys.path: sys.path.insert(0, 'shared/jinja2.zip') #print "import" On Jan 9, 10:04 pm, Anthony wrote: > Hi, same problem here with > Jinja:http://groups.google.com/group/google-appengine/browse_thread/thread/... > > I have a main() function, but still does not look like it is caching > (zipimported logs debug message every request), the zipimported is not > in the file with the main() should this still cache? > > The structure of my app is: > > #main.py > from shared import template > > #Hander classes etc .. > class Home(..): > def get(): > template.render() > > def main(): > etc.. > > #shared/template.py > sys.path.insert(0, 'shared/jinja2.zip') > from jinja2 import Environment, FunctionLoader , TemplateNotFound > > def render(): > etc.. > > On Jan 9, 6:02 pm, Marzia Niccolai wrote: > > > Hi Tom, > > > This is likely to happen if you don't have a main() function. > > Seehttp://groups.google.com/group/google-appengine/browse_thread/thread/... > > > For information on how to troubleshoot if your app is being reloaded each > > request. > > > -Marzia > > > On Fri, Jan 9, 2009 at 8:11 AM, Tom wrote: > > > > What am I doing wrong? Every call generates a high CPU call to > > > zipimporter. The times range from 2000 to 4500ms each time. I am > > > using appengine-patch. > > > > # > > > 1. > > > 01-09 08:03AM 07.774 /android/bottle/sync/ 200 1463ms 3886ms-cpu > > > 169kb > > > See details > > > 208.54.90.55 - - [09/Jan/2009:08:03:09 -0800] "POST /android/ > > > bottle/sync/ HTTP/1.1" 200 169607 - - > > > 2. > > > I 01-09 08:03AM 07.898 > > > zipimporter('/base/data/home/apps/winebythebar/ > > > 3.330582746043449707/common/zip-packages/django.zip', '') > > > # > > > 1. > > > I 01-09 07:59AM 10.768 zipimporter('/base/data/home/apps/ > > > winebythebar/3.330582746043449707/common/zip-packages/django.zip', '') > > > See details > > > # > > > 1. > > > 01-09 07:59AM 10.651 /android/user/login/ 200 2078ms 4336ms-cpu > > > 0kb > > > See details > > > 208.54.90.71 - - [09/Jan/2009:07:59:12 -0800] "POST /android/ > > > user/login/ HTTP/1.1" 200 329 - - > > > 2. > > > I 01-09 07:59AM 10.768 > > > zipimporter('/base/data/home/apps/winebythebar/ > > > 3.330582746043449707/common/zip-packages/django.zip', '') > > > # > > > 1. > > > I 01-09 07:55AM 56.741 zipimporter('/base/data/home/apps/ > > > winebythebar/3.330560357815056688/common/zip-packages/django.zip', '') > > > See details > > > # > > > 1. > > > 01-09 07:55AM 56.495 /android/user/login/ 200 2389ms 2019ms-cpu > > > 0kb > > > See details > > > 208.54.90.71 - - [09/Jan/2009:07:55:58 -0800] "POST /android/ > > > user/login/ HTTP/1.1" 200 229 - - > > > 2. > > > I 01-09 07:55AM 56.741 > > > zipimporter('/base/data/home/apps/winebythebar/ > > > 3.330560357815056688/common/zip-packages/django.zip', '') --~--~-~--~~~---~--~~ 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: High CPU for zipimporter django.zip
Hi, same problem here with Jinja: http://groups.google.com/group/google-appengine/browse_thread/thread/400c37cc773b9f46# I have a main() function, but still does not look like it is caching (zipimported logs debug message every request), the zipimported is not in the file with the main() should this still cache? The structure of my app is: #main.py from shared import template #Hander classes etc .. class Home(..): def get(): template.render() def main(): etc.. #shared/template.py sys.path.insert(0, 'shared/jinja2.zip') from jinja2 import Environment, FunctionLoader , TemplateNotFound def render(): etc.. On Jan 9, 6:02 pm, Marzia Niccolai wrote: > Hi Tom, > > This is likely to happen if you don't have a main() function. > Seehttp://groups.google.com/group/google-appengine/browse_thread/thread/... > > For information on how to troubleshoot if your app is being reloaded each > request. > > -Marzia > > On Fri, Jan 9, 2009 at 8:11 AM, Tom wrote: > > > What am I doing wrong? Every call generates a high CPU call to > > zipimporter. The times range from 2000 to 4500ms each time. I am > > using appengine-patch. > > > # > > 1. > > 01-09 08:03AM 07.774 /android/bottle/sync/ 200 1463ms 3886ms-cpu > > 169kb > > See details > > 208.54.90.55 - - [09/Jan/2009:08:03:09 -0800] "POST /android/ > > bottle/sync/ HTTP/1.1" 200 169607 - - > > 2. > > I 01-09 08:03AM 07.898 > > zipimporter('/base/data/home/apps/winebythebar/ > > 3.330582746043449707/common/zip-packages/django.zip', '') > > # > > 1. > > I 01-09 07:59AM 10.768 zipimporter('/base/data/home/apps/ > > winebythebar/3.330582746043449707/common/zip-packages/django.zip', '') > > See details > > # > > 1. > > 01-09 07:59AM 10.651 /android/user/login/ 200 2078ms 4336ms-cpu > > 0kb > > See details > > 208.54.90.71 - - [09/Jan/2009:07:59:12 -0800] "POST /android/ > > user/login/ HTTP/1.1" 200 329 - - > > 2. > > I 01-09 07:59AM 10.768 > > zipimporter('/base/data/home/apps/winebythebar/ > > 3.330582746043449707/common/zip-packages/django.zip', '') > > # > > 1. > > I 01-09 07:55AM 56.741 zipimporter('/base/data/home/apps/ > > winebythebar/3.330560357815056688/common/zip-packages/django.zip', '') > > See details > > # > > 1. > > 01-09 07:55AM 56.495 /android/user/login/ 200 2389ms 2019ms-cpu > > 0kb > > See details > > 208.54.90.71 - - [09/Jan/2009:07:55:58 -0800] "POST /android/ > > user/login/ HTTP/1.1" 200 229 - - > > 2. > > I 01-09 07:55AM 56.741 > > zipimporter('/base/data/home/apps/winebythebar/ > > 3.330560357815056688/common/zip-packages/django.zip', '') --~--~-~--~~~---~--~~ 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] Transaction collisions
I was noticing what appeared to be some entity saves/puts being missed or ignored by the datastore. I suspected it was due to contention of many updates for the same entity coming in to fast. So, I put it in a transaction (incrementing a view count when a page/entity is viewed). As soon as I put it in a transaction, I began getting lots of these: "Transaction collision for entity group with key datastore_types.Key.from_path" I couldn't find much for this error, but it sounds like these should be avoided. Is it accurate to say these should be avoided, or are they pretty harmless? Is it still saving though? What are some strategies for reducing contention? Storing hits/counts in memcache and periodically persisting to the datastore? This model is of type searchablemodel, so perhaps that's not helping things? --~--~-~--~~~---~--~~ 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] Whaddya mean "Verify my account"? Again?!
Something is not right between me and AppEngine. Earlier today I uploaded a new version of a client's AppEngine app. I login under my client-based account (fa...@cloudtechllc.com) to do some maintenance. I go to our appengine page and I see our two apps. I click on one of them and do some work. I go back to the appengine page to install another application. Under the button "Create New Application" it says I have 10 apps left. That should read "8". Anyway, I click "Create a New Application" and the system wants to verify my account with an SMS message. Of course, it won't accept my number since it's already been used to verify my (an) account. What gives? -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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: Static File Questions
example: upload a 2 MB file through a html form, split it serverside into 2 or 3 parts, then store the parts as blobs of max 1 MB each. It's inconvenient yet a method to serve large files with no difference towards the client. On Jan 9, 8:36 pm, MajorProgamming wrote: > I'm not sure I understand you. Which question # were you trying to > answer? > > On Jan 9, 3:26 am, niklasr wrote: > > > Reversibly breaking and remaking larger than 1MB files persistently > > storing max 1 MB chunks, gae http get and post support the larger. The > > gae http transport as it is handles larger files. The 1MB limit only > > limits the entities, not the transport. > > > On Jan 8, 11:59 pm, MajorProgamming wrote: > > > > Just a few questions on static files: > > > > 1. Does serving a static file cost CPU usage? > > > > 2. Does having a large number of static files (let's say like 700) > > > have _any_ effect on performance of page serving [similarly, does > > > having a lot of mappings affect performance]? > > > > 3. When a python script reads a file off the app's filesystem (like a > > > template html file), is that any faster than a get_by_key on the > > > datastore? [i.e. filesystem vs. bigtable performance]? > > > > 4. Will the paid version of Google App Engine allow over 1000 files > > > and/or larger than 1MB files (or entities)? > > > > 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: Trouble with NeedIndexError when calling count()
Thanks for the explanation. I was trying to avoid any __search_text_index indexes as you suggest, to get around the 1 per each number of keywords, so I didn't use any equality or sorts. It usually works fine, and is again today as far as I can tell. It must've been been something with the particular search query being done. I've tried to set it up to capture/log errors better. Hopefully the full text solution is on its way soon. On Jan 9, 10:30 am, ryan wrote: > hi guys! "merge join" queries like these, ie queries that have equals > filters on multiple properties but no inequality filters or sort > orders, *usually* don't require an index. that's described > inhttp://code.google.com/appengine/docs/datastore/queriesandindexes.htm... > . > > however, in cases with unusually shaped data, these queries can > sometimes require an index. these cases are exceedingly rare, but > they're somewhat more common with apphosting.ext.search. > > also, you need an index for each number of keywords that you expect in > a query. for example, if you support three-word search queries, you > need this index: > > - kind: Post > properties: > - name: __searchable_text_index > - name: __searchable_text_index > - name: __searchable_text_index > - name: approved > > more in the ext.search > docstring,http://code.google.com/p/googleappengine/source/browse/trunk/google/a... > . also, unfortunately, these kinds of indices are likely to explode, > as described > inhttp://code.google.com/appengine/docs/datastore/queriesandindexes.htm... > . > > the upshot of all of this, as we've mentioned before, is that > appengine.ext.search is a hack. it's not scalable, mature, or anywhere > near industrial strength, which is why it's not officially supported > or documented. we're well aware that it's not good enough, and we > dearly hope to offer a real full text search solution in the future. i > don't have any details or timeline, though. --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
I don't quite get it. I hope if by seeing the existing form on the page and my attempt at following your suggestions, you can spell out more specifically what you mean Geoffrey and Gipsy. This is the existing form. Is this what your mean? If not, can you correct it, please? Sign in or register. ) On Jan 9, 4:00 pm, Geoffrey Spear wrote: > You just create an ordinary link using the value returned by > users.create_login_url("/") as the link location, and display the link > only if users.get_current_user() is None. > [snip] > > On Jan 9, 1:21 pm, "Gipsy Gopinathan" wrote: > > > > I guess you can just do a redirect to the url generated by > > > users.create_login_url("/") from your handler when user clinks on the link > > > in your home page. Brian in Atlanta --~--~-~--~~~---~--~~ 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: 1 application, multiple datastores
> Ok - I understand (maybe), I don't think it matches what 106 is asking > for though It doesn't support 106, but that wasn't the goal. The goal was to show that one could support application--driven datastore choice with an appropriate amount of security. The call to support 106 would be different, but its existence would not mean that an application using change_to_application_userstore() was any less secure. Both (and others) require different application configuration as well. For sharing a datastore between aps, I'd go through an app that managed said shared datastore, but that's something best left up to the designer - it isn't a platform level decision. > Which of the above are you proposing? I'm still not proposing anything. I'm pointing out that GAE can reasonably support a wide range of application to datastore access patterns. On Jan 7, 5:28 am, hawkett wrote: > > Huh? How can you make a "wrong call" that doesn't have any > > parameters? > > > Here's the application code: > > {operations on application-wide datastore} > > change_to_application_userstore() # note - no parameters > > {operations on user-specific datastore} > > {return to user} > > Ok - I understand (maybe), I don't think it matches what 106 is asking > for though - none of these data stores appear to be accessible between > applications - they all appear to be tied to a single application - or > are you saying the user specific data store is portable between > applications? i.e. my application can access it via db APIs, and so > can yours, provided the user is logged in? > > If you don't intend portability of the user store, I agree that the > risk is different, and much lower, because the partitioning mechanism > does at least exist, and the chance of a bug is *much* lower because > the actual db query is likely to be different. When we were talking > about cross app queries, the db schemas in each data store were liekly > to be the same, which made the risk of data exposure very high. In > the implementation you now describe, the user data store and the > application data store probably have substantially different schemas. > The datastores with the same schema (user) is partitioned. I can see > value in this approach, although it does add complexity. > > Essentially you are recommending strict data partitioning (aka 945) > plus a shared application datastore? > > If you intend for the user data store to be portable between apps, > then I have problems with that approach. I think it should use a > specific data API, and not db level access. There's too much > unwarranted trust involved between the apps - i.e. you have to trust > that I read/write the db properly, as does everyone else - I imagine > over time such a shared database would get very 'dirty'. If you use > an API then it can enforce structure and data integrity through > validation. The portable user datastore (if that is what you are > suggesting) is a good idea, but I think it is something that google > has already implemented to some degree with their social data API - > i.e. a bunch of data attached to your identity. I guess it depends on > your implementation how useful this is. > > To me, the portability of data and data partitioning should be treated > separately. > > The other thing to note is that in order to map users to data > partitions, you need one of two things - > 1. An API that your application can use to do so - accidently map the > wrong user to the wrong data store = data exposure problem. > 2. Some form of platform supplied user provisioing - aka 945 > > Which of the above are you proposing? > > On Jan 6, 2:46 pm, Andy Freeman wrote: > > > > > > I guess one of us will be surprised then :) - I would be surprised if > > > gmail, sites, blogger, picassa, orkut etc. all operated in an open > > > space and avoided data exposure through code implemented in each of > > > those applications. > > > If the separation is by name and ordinary "file" access control, the > > "code implemented" consists of the name of the datastore for the > > application plus some application configuration that has to happen > > regardless. I'm pretty sure that google thinks that their folks can > > open an application-specific datastore name reliably. And, if they > > fail, they're talking to a datastore with the wrong structure. > > > Or, are you thinking that those applications use a different datastore > > per external user? (If "separate datastore per user" is the usage > > pattern, bigtable requires far less concurrency support than the > > report mentions.) > > > > - and does not give DB level access to it. So I think just by > > > observing google's current architecture, it makes sense that they > > > wouldn't break with that tradition at the application level for GAE. > > > And not just because its tradition, but because it is rooted in sound > > > architectural principles > > > What "db level access" are you talking abou
[google-appengine] Re: user login URLs in html/javascript
You just create an ordinary link using the value returned by users.create_login_url("/") as the link location, and display the link only if users.get_current_user() is None. On Jan 9, 3:16 pm, thebrianschott wrote: > Gipsy, > > Thanks, but will that work if not everyone at my home page wants/needs > to login? > > On Jan 9, 1:21 pm, "Gipsy Gopinathan" wrote: > > > I guess you can just do a redirect to the url generated by > > users.create_login_url("/") from your handler when user clinks on the link > > in your home page. --~--~-~--~~~---~--~~ 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: Google App Engine Platform
If you go with django, especially say an appenginepatch version, you more than likely can move off without too much trouble. You'd have to redo your models, and if you use things like ListProperty you may have to make adjustments to how you handle that in your source. Basically, the entire data storage portion of your app would need to go through a major rewrite. I'm hoping in a few months to get the time to try that for an application I'm working on, just to see how much trouble it is and prepare for being able to do it if the need arises. On Jan 9, 2:58 pm, Eric Frost wrote: > What if I want to move away from GAE later.. can I host django, > web.py, or webapp frameworks myself? (Does my question make sense?) > > Eric > > On Jan 9, 1:54 pm, adelevie wrote: > > > GAE forces you to use a framework, php doesn't. GAE lets you cheaply > > host django, web.py and webapp frameworks. --~--~-~--~~~---~--~~ 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: typo in docs
Thanks, I'll fix it. -- Dan On Fri, Jan 9, 2009 at 11:11 AM, adelevie wrote: > > http://code.google.com/appengine/docs/appcfgpy.html > > towards the bottom it says "appcfy.py" where it should be "appcfg.py". > I didn't know where else to post this. > > > --~--~-~--~~~---~--~~ 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] Debug Console
I've been going through the article "Logging Events in Your Application" at http://code.google.com/appengine/articles/logging.html In the section entitled "Viewing the Log Information in Real Time", a "debug console" is described. Try as I might, I've been unable to get this to work. Has anyone had success with this? Doc --~--~-~--~~~---~--~~ 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: URL Fetch API --- Does Google log IP addresses to prevent abuses?
Hi, thank you. Then I can use this command: appcfg.py [options] request_logs On Jan 8, 5:43 pm, Marzia Niccolai wrote: > Hi, > > Logs are kept around for awhile in the admin console, and you can access > different app version logs by changing the version number in your > application's dashboard (the number on in the left hand corner). You can > download your logs by using appcfg.py: > > http://code.google.com/appengine/docs/appcfgpy.html > > -Marzia > > On Wed, Jan 7, 2009 at 9:32 AM, KillIEbrowser wrote: > > > > > ...?? > > > The other side of the question is: > > Can I don't make any log, delegating the checks to the GAE > > administrators Team? > > > What is the responsability of a free developer about its free > > application? > > > (Thanks for the patience) > > > On Jan 6, 2:15 am, KillIEbrowser wrote: > > > Hi, > > > the log will be deleted when I will update a new version of my > > > application. > > > - Can I see the old logs? > > > - Can I export a log? > > > > I'm thinking to make a Table log... > > > > On Jan 5, 7:38 pm, Marzia Niccolai wrote: > > > > > Hi, > > > > > The ip address of requests are also available in the logs. > > > > > -Marzia > > > > > On Sat, Jan 3, 2009 at 1:06 PM, Barry Hunter < > > barrybhun...@googlemail.com>wrote: > > > > > > Do it yourself: > > > > >http://code.google.com/appengine/docs/python/logging.html > > > > > > 2009/1/3 KillIEbrowser : > > > > > > > Now I'm building a new free web App using HTTPS: > > > > > > > "Private URL Fetching" > > > > > > > and I think is useful to see a "URL Fetch Log" into the App Engine > > > > > > Admin. > > > > > > Can you make this feature, please? > > > > > > > On Dec 30 2008, 9:32 pm, "Barry Hunter" < > > barrybhun...@googlemail.com> > > > > > > wrote: > > > > > >> IP addresses of what? > > > > > > >> 2008/12/30 KillIEbrowser : > > > > > > >> > Hi All, > > > > > >> > Does Google log IP addresses to prevent abuses? > > > > > > >> -- > > > > > >> Barry > > > > > > >> -www.nearby.org.uk-www.geograph.org.uk- > > > > > > -- > > > > > Barry > > > > > > -www.nearby.org.uk-www.geograph.org.uk- --~--~-~--~~~---~--~~ 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: three web proxy sites on Google app Engine(proxypy, go2, web-proxy), which is better?
The best is this HTTPS proxy https://mirrorrr.appspot.com/ It is Open Source http://code.google.com/p/mirrorrr/ On Jan 2, 7:40 am, auzhuang wrote: > I found three web proxy sites on Google app : > > http://proxypy.appspot.com/ > > http://go2.appspot.com/ > > http://web-proxy.appspot.com/ > > which is better? Is it open source? --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Gipsy, Thanks, but will that work if not everyone at my home page wants/needs to login? On Jan 9, 1:21 pm, "Gipsy Gopinathan" wrote: > I guess you can just do a redirect to the url generated by > users.create_login_url("/") from your handler when user clinks on the link > in your home page. > --~--~-~--~~~---~--~~ 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: Google App Engine Platform
What if I want to move away from GAE later.. can I host django, web.py, or webapp frameworks myself? (Does my question make sense?) Eric On Jan 9, 1:54 pm, adelevie wrote: > GAE forces you to use a framework, php doesn't. GAE lets you cheaply > host django, web.py and webapp frameworks. --~--~-~--~~~---~--~~ 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: Google App Engine Platform
GAE forces you to use a framework, php doesn't. GAE lets you cheaply host django, web.py and webapp frameworks. On Jan 9, 1:54 pm, Eric Frost wrote: > If I develop an app using the Google App Engine Platform and decide to > change my mind and host it ourselves later, is this possible? > > Are there some few features such as leveraging Google Accounts that > would not be possible? > > How about the database? > > I have a lot of experience with PHP and MySQL on cheaping hosting > accounts with WHM and CPANEL. > > What are the pros / cons of the PHP/MySQL platform vs. the Google App > Engine? > > Thanks, > Eric > > http://www.infomoving.comhttp://www.mapelves.com --~--~-~--~~~---~--~~ 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] Sort by Relevance
I know that the MySQL version of FullText search supports sorting by Relevance. Is there any way to mimic this functionality on App Engine? [whether through Searchable Entity or through custom methods]? --~--~-~--~~~---~--~~ 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: "appcfg.py update" talking with server very slowly, http://appspot.google.com slowly resolves
here it is: C:\Program Files\Google\google_appengine>python appcfg.py --noisy update courses api Loaded authentication cookies from C:\Documents and Settings \1/.appcfg_cookies 2009-01-09 14:49:13,578 INFO appcfg.py:129 Server: appengine.google.com 2009-01-09 14:49:13,592 INFO appcfg.py:572 Checking for updates to the SDK. 2009-01-09 14:49:13,592 DEBUG appcfg.py:141 Creating request for: 'http://appeng ine.google.com/api/updatecheck? release=1.1.7×tamp=1227225249&api_versions=% 5B%271%27%5D' with payload: 2009-01-09 14:49:13,780 INFO appcfg.py:586 The SDK is up to date. 2009-01-09 14:49:13,780 INFO appcfg.py:1281 Reading app configuration. Scanning files on local disk. 2009-01-09 14:49:13,780 INFO appcfg.py:1291 Ignoring file 'app.yaml': File match es ignore regex. 2009-01-09 14:49:13,780 INFO appcfg.py:1299 Processing file 'BeautifulSoup.py' 2009-01-09 14:49:13,796 INFO appcfg.py:1291 Ignoring file 'BeautifulSoup.pyc': F ile matches ignore regex. 2009-01-09 14:49:13,796 INFO appcfg.py:1291 Ignoring file 'index.yaml': File mat ches ignore regex. 2009-01-09 14:49:13,796 INFO appcfg.py:1299 Processing file 'main.py' Initiating update. 2009-01-09 14:49:13,796 DEBUG appcfg.py:141 Creating request for: 'http://appeng ine.google.com/api/appversion/create?version=1&app_id=coursesapi' with payload: api_version: '1' application: coursesapi handlers: - script: main.py url: .* runtime: python version: '1' Cloning 2 application files. 2009-01-09 14:49:14,217 DEBUG appcfg.py:141 Creating request for: 'http://appeng ine.google.com/api/appversion/clonefiles?version=1&app_id=coursesapi' with paylo ad: main.py|18408072_5bde8fd7_76184710_afa485bf_b801d906 BeautifulSoup.py|868ea04e_a490d6c2_a2da00f7_e39676ee_979079cb 2009-01-09 14:49:14,515 INFO appcfg.py:1211 Files to upload: {} Closing update. 2009-01-09 14:49:14,515 DEBUG appcfg.py:141 Creating request for: 'http://appeng ine.google.com/api/appversion/commit?version=1&app_id=coursesapi' with payload: 2009-01-09 14:49:14,905 INFO appcfg.py:1340 Done! Uploading index definitions. 2009-01-09 14:49:14,921 DEBUG appcfg.py:141 Creating request for: 'http://appeng ine.google.com/api/datastore/index/add?version=1&app_id=coursesapi' with payload : {} I don't really know what all this means, but it looks like there are no errors. If you'd like, I'll pm the code of my app if need be. Thanks On Jan 9, 2:22 pm, Marzia Niccolai wrote: > Hi, > > We haven't noticed anything, can you provide more information by running > your appcfg.py update command with the --noisy flag? > > -Marzia > > On Fri, Jan 9, 2009 at 11:13 AM, adelevie wrote: > > > my app wont load at all--at least there wasn't anything wrong with > > my code ;) > > > On Jan 8, 10:05 pm, Andrew Yates wrote: > > > Is there something wrong with the server? It is taking the app engine > > > ten minutes for the server to respond to a simple "hello world" file > > > update. > > --~--~-~--~~~---~--~~ 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] Google App Engine Platform
If I develop an app using the Google App Engine Platform and decide to change my mind and host it ourselves later, is this possible? Are there some few features such as leveraging Google Accounts that would not be possible? How about the database? I have a lot of experience with PHP and MySQL on cheaping hosting accounts with WHM and CPANEL. What are the pros / cons of the PHP/MySQL platform vs. the Google App Engine? Thanks, Eric http://www.infomoving.com http://www.mapelves.com --~--~-~--~~~---~--~~ 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: Static File Questions
I'm not sure I understand you. Which question # were you trying to answer? On Jan 9, 3:26 am, niklasr wrote: > Reversibly breaking and remaking larger than 1MB files persistently > storing max 1 MB chunks, gae http get and post support the larger. The > gae http transport as it is handles larger files. The 1MB limit only > limits the entities, not the transport. > > On Jan 8, 11:59 pm, MajorProgamming wrote: > > > Just a few questions on static files: > > > 1. Does serving a static file cost CPU usage? > > > 2. Does having a large number of static files (let's say like 700) > > have _any_ effect on performance of page serving [similarly, does > > having a lot of mappings affect performance]? > > > 3. When a python script reads a file off the app's filesystem (like a > > template html file), is that any faster than a get_by_key on the > > datastore? [i.e. filesystem vs. bigtable performance]? > > > 4. Will the paid version of Google App Engine allow over 1000 files > > and/or larger than 1MB files (or entities)? > > > 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: Your client does not have permission to get URL /admin/ from this server.
I can't think of any other reason off the top of my head. If you reply to me with the app id I can investigate further. -Marzia On Fri, Jan 9, 2009 at 11:26 AM, DocDay wrote: > > Google Apps emails. > > > On Jan 9, 12:59 pm, Marzia Niccolai wrote: > > Hi Doc, > > > > The fact that the app doesn't use Google Accounts may be relevant. Are > the > > administrator accounts Google Accounts or Google Apps emails? > > > > In order to sign in to your application as an administrator the type of > > account much match the authentication type chosen when you configured > your > > app. (See:http://code.google.com/appengine/articles/auth.htmlfor more > > details.) > > > > -Marzia > > > > > > > > On Thu, Jan 8, 2009 at 11:32 PM, DocDay wrote: > > > > > I'm using the "$PYTHON_LIB/google/appengine/ext/admin" script in > > > several apps exactly as shown in the example here: > > > > >http://code.google.com/appengine/docs/configuringanapp.html#Referring. > .. > > > > > All apps authenticate as expected, except for one. It returns: > > > > > "Your client does not have permission to get URL /admin/ from this > > > server." > > > > > I added a second administrator account to the problem app, but cannot > > > login with that either. How can I get this to work? Interestingly, > > > this is the only app in the bunch that does not use Google Accounts > > > for sign in. Is that relevant? > > > > > Doc- 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: Your client does not have permission to get URL /admin/ from this server.
Google Apps emails. On Jan 9, 12:59 pm, Marzia Niccolai wrote: > Hi Doc, > > The fact that the app doesn't use Google Accounts may be relevant. Are the > administrator accounts Google Accounts or Google Apps emails? > > In order to sign in to your application as an administrator the type of > account much match the authentication type chosen when you configured your > app. (See:http://code.google.com/appengine/articles/auth.htmlfor more > details.) > > -Marzia > > > > On Thu, Jan 8, 2009 at 11:32 PM, DocDay wrote: > > > I'm using the "$PYTHON_LIB/google/appengine/ext/admin" script in > > several apps exactly as shown in the example here: > > >http://code.google.com/appengine/docs/configuringanapp.html#Referring... > > > All apps authenticate as expected, except for one. It returns: > > > "Your client does not have permission to get URL /admin/ from this > > server." > > > I added a second administrator account to the problem app, but cannot > > login with that either. How can I get this to work? Interestingly, > > this is the only app in the bunch that does not use Google Accounts > > for sign in. Is that relevant? > > > Doc- 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: "appcfg.py update" talking with server very slowly, http://appspot.google.com slowly resolves
Hi, We haven't noticed anything, can you provide more information by running your appcfg.py update command with the --noisy flag? -Marzia On Fri, Jan 9, 2009 at 11:13 AM, adelevie wrote: > > my app wont load at all--at least there wasn't anything wrong with > my code ;) > > On Jan 8, 10:05 pm, Andrew Yates wrote: > > Is there something wrong with the server? It is taking the app engine > > ten minutes for the server to respond to a simple "hello world" file > > update. > > > --~--~-~--~~~---~--~~ 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: "appcfg.py update" talking with server very slowly, http://appspot.google.com slowly resolves
my app wont load at all--at least there wasn't anything wrong with my code ;) On Jan 8, 10:05 pm, Andrew Yates wrote: > Is there something wrong with the server? It is taking the app engine > ten minutes for the server to respond to a simple "hello world" file > update. --~--~-~--~~~---~--~~ 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] typo in docs
http://code.google.com/appengine/docs/appcfgpy.html towards the bottom it says "appcfy.py" where it should be "appcfg.py". I didn't know where else to post this. --~--~-~--~~~---~--~~ 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: Admin interface that let's me enter dummy data
I guess I'm stuck with that--it works nicely despite trouble getting the stylesheets to load. This seems like such a simple feature for google to implement, I don't understand why they dont. On Jan 9, 7:51 am, nickcharb wrote: > I found appengine_admin helpful to add dummy data. It's a very nice > interface, and all you have to do is define the models/properties you > want exposed to the forms for view/edit/etc. > > http://code.google.com/p/appengine-admin/ > > Nick > > On Jan 9, 4:38 am, Alexander Kojevnikov > wrote: > > > > Thanks for the response. I just dont see a reason why Google can't > > > allow dummy data to be entered via the built in admin interface. If it > > > can create forms when there is data, why cant it create forms without > > > data? > > > I guess the main reason is that the datastore is schema-less, the > > models can and will change at runtime. Also, the model classes can be > > defined and re-defined in any module of the project, I guess it's a > > non-trivial task to figure out what the final model definition would > > be. > > --~--~-~--~~~---~--~~ 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] 500 server error
I have one app right now http://wepaste.appspot.com. I know how to create and upload apps. However, today, I cannot even upload a hello world even though the app works perfectly on dev_appserver. appcfg.py runs fine but when I visit the URL, I get a 500 server error. --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
I guess you can just do a redirect to the url generated by users.create_login_url("/") from your handler when user clinks on the link in your home page. On Fri, Jan 9, 2009 at 12:12 AM, thebrianschott wrote: > > http://code.google.com/appengine/docs/users/loginurls.html > > At the link above it explains how to send a user off to sign-in or > register in a python script. The code below does what I want, but I > don't know how to do the same thing as an html hyperlink on my > applications "home" page. Not all users need to login to proceed > further into my application, only those who want to create their own > map. > >greeting = ("Sign in or register." % > users.create_login_url("/")) > >self.response.out.write("%s" % greeting) > > Thanks, > > Brian in Atlanta > > Btw if you want to play with my app, it is at > http://carpoolfinder.appspot.com > There is a sort of a sandbox that does not require a sign-in if you > enter "Tester" (without quotes) in the inital text field. > > > > > > -- cheers Gipsy --~--~-~--~~~---~--~~ 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: Front-end UI for GAE datastore
Yes; go to your app's Dashboard and click "Data Viewer". On Jan 9, 9:19 am, "yfa...@gmail.com" wrote: > Hi all, > > Is there any front-end that allows an administrator to view, update, > delete the content of GAE datastore, both at the table and record > level. > > 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: Is the Datastore just too slow for 100+ returned records?
For the record, I regularly pull 100 entities, that are much smaller than yours, for my application in order to page through them. Basically to meet a paging requirement I pull 100, cache that result, then page within it. I do think they size of your entities are part of the problem Though, I did find with the same models I pull 100 of for viewing, I had to drop down to 75 for deletion. Even pulling 75 to delete I tend to run into high CPU and datastore timeouts on many requests. Overall, bulk management within the datastore is very difficult. On Jan 9, 1:22 pm, Tzakie wrote: > > The datastore is > > designed to maintain its performance characteristics over very large data > > sets and heavy traffic, so performance with small data sets and low traffic > > may not always compare to a single-server SQL database under similar > > conditions. in the same sense that it won't compare to a RAM cache of the > > same data. > > I not expecting it to work the same as sql. But I do expect to build a > list > of a couple hundred records. I'm not crazy this is a totally > reasonable thing > for an app to do. Sorry guys the serial return speed of these entity > loaded > queries is an issue. It's not me it's you. And it's just a couple > changes away > from working. Can't change it myself so I'm at your mercy google. > > Can we allow your libraries to spawn threads? SimpleDB solves this by > allowing you to bang it with many threads at once. Even though the > fetch > is slow for the entities since you can do so many in parallel it works > out. > > That way you could: > > Keys=QueryObject.getKeys() > NeededEntities=[] > for Key in Keys: > #if key is not in memcache add to NeededEntities > > DictonaryOfReturnedEntities=Model.fetchMassEntities > (NeededEntities,Threads=30) > > Now I want .fetchMassEntities(NeededEntities,Threads=30) to kick 30 > threads off > and get my entities. Which I will cache. This should be totally > workable for lists > up to 1,000 I would think. It's not a sql vs BigTable think it's a > architecture issue > with the current setup. > > > Part of scaling data is > > determining how quickly updates need to be available, so you can > > pre-calculate and cache results to optimize queries, i.e. make data that > > doesn't need to be instantly dynamic less dynamic. > > If I make a degenerate table model just the info I want to query and > the > key stored is it not just the same number of entity fetches right? I > am I getting > punished by the number or returned entities? or the number of > properties > returned? > > > Incidentally, returning just keys for a query has been on our radar for a > > while, we just haven't gotten to it. I can't promise anything, but it's on > > our list. Feel free to file a feature request in the issue tracker to > > promote it. > > Will do. Thanks for your time Dan. :) --~--~-~--~~~---~--~~ 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: Trouble with NeedIndexError when calling count()
hi guys! "merge join" queries like these, ie queries that have equals filters on multiple properties but no inequality filters or sort orders, *usually* don't require an index. that's described in http://code.google.com/appengine/docs/datastore/queriesandindexes.html#Defining_Indexes_With_index_yaml . however, in cases with unusually shaped data, these queries can sometimes require an index. these cases are exceedingly rare, but they're somewhat more common with apphosting.ext.search. also, you need an index for each number of keywords that you expect in a query. for example, if you support three-word search queries, you need this index: - kind: Post properties: - name: __searchable_text_index - name: __searchable_text_index - name: __searchable_text_index - name: approved more in the ext.search docstring, http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/search/__init__.py . also, unfortunately, these kinds of indices are likely to explode, as described in http://code.google.com/appengine/docs/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes . the upshot of all of this, as we've mentioned before, is that appengine.ext.search is a hack. it's not scalable, mature, or anywhere near industrial strength, which is why it's not officially supported or documented. we're well aware that it's not good enough, and we dearly hope to offer a real full text search solution in the future. i don't have any details or timeline, though. --~--~-~--~~~---~--~~ 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: Is the Datastore just too slow for 100+ returned records?
> The datastore is > designed to maintain its performance characteristics over very large data > sets and heavy traffic, so performance with small data sets and low traffic > may not always compare to a single-server SQL database under similar > conditions. in the same sense that it won't compare to a RAM cache of the > same data. I not expecting it to work the same as sql. But I do expect to build a list of a couple hundred records. I'm not crazy this is a totally reasonable thing for an app to do. Sorry guys the serial return speed of these entity loaded queries is an issue. It's not me it's you. And it's just a couple changes away from working. Can't change it myself so I'm at your mercy google. Can we allow your libraries to spawn threads? SimpleDB solves this by allowing you to bang it with many threads at once. Even though the fetch is slow for the entities since you can do so many in parallel it works out. That way you could: Keys=QueryObject.getKeys() NeededEntities=[] for Key in Keys: #if key is not in memcache add to NeededEntities DictonaryOfReturnedEntities=Model.fetchMassEntities (NeededEntities,Threads=30) Now I want .fetchMassEntities(NeededEntities,Threads=30) to kick 30 threads off and get my entities. Which I will cache. This should be totally workable for lists up to 1,000 I would think. It's not a sql vs BigTable think it's a architecture issue with the current setup. > Part of scaling data is > determining how quickly updates need to be available, so you can > pre-calculate and cache results to optimize queries, i.e. make data that > doesn't need to be instantly dynamic less dynamic. If I make a degenerate table model just the info I want to query and the key stored is it not just the same number of entity fetches right? I am I getting punished by the number or returned entities? or the number of properties returned? > Incidentally, returning just keys for a query has been on our radar for a > while, we just haven't gotten to it. I can't promise anything, but it's on > our list. Feel free to file a feature request in the issue tracker to > promote it. Will do. Thanks for your time Dan. :) --~--~-~--~~~---~--~~ 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: Very urgent
You're on the right track. A web service works very similarly to a web application, except instead of serving UI to a browser, it uses a protocol based on HTTP that describes the structure of requests and responses that make up the interaction between the client and the service. You can use a Python WSGI app on App Engine for a web service. The details depend on which protocol you wish to use. There are several common protocols to choose from, or you could invent your own HTTP-based format if you control both the client and the service. Search the web for information on REST and SOAP, and general information about web services. -- Dan On Fri, Jan 9, 2009 at 6:27 AM, arnie wrote: > > Hi all > I am using google app engine sdk to develop a python web service. I am > totally new to both google app engine sdk and python so struggling > hard to create a simple python web service. > Is creating a wsgi application using google app engine sdk [in python] > with no user interface is a web service? > If No, then can anybody suggest steps to create a simple web service? > If Yes, then a sub question how can i return a collection of data > containing say FirstName, LastName, Age, Address to the client? > Please any body can help > 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: High CPU for zipimporter django.zip
Hi Tom, This is likely to happen if you don't have a main() function. See http://groups.google.com/group/google-appengine/browse_thread/thread/400c37cc773b9f46/fee28ee44c12e57f For information on how to troubleshoot if your app is being reloaded each request. -Marzia On Fri, Jan 9, 2009 at 8:11 AM, Tom wrote: > > What am I doing wrong? Every call generates a high CPU call to > zipimporter. The times range from 2000 to 4500ms each time. I am > using appengine-patch. > > # > 1. > 01-09 08:03AM 07.774 /android/bottle/sync/ 200 1463ms 3886ms-cpu > 169kb > See details > 208.54.90.55 - - [09/Jan/2009:08:03:09 -0800] "POST /android/ > bottle/sync/ HTTP/1.1" 200 169607 - - > 2. > I 01-09 08:03AM 07.898 > zipimporter('/base/data/home/apps/winebythebar/ > 3.330582746043449707/common/zip-packages/django.zip', '') > # > 1. > I 01-09 07:59AM 10.768 zipimporter('/base/data/home/apps/ > winebythebar/3.330582746043449707/common/zip-packages/django.zip', '') > See details > # > 1. > 01-09 07:59AM 10.651 /android/user/login/ 200 2078ms 4336ms-cpu > 0kb > See details > 208.54.90.71 - - [09/Jan/2009:07:59:12 -0800] "POST /android/ > user/login/ HTTP/1.1" 200 329 - - > 2. > I 01-09 07:59AM 10.768 > zipimporter('/base/data/home/apps/winebythebar/ > 3.330582746043449707/common/zip-packages/django.zip', '') > # > 1. > I 01-09 07:55AM 56.741 zipimporter('/base/data/home/apps/ > winebythebar/3.330560357815056688/common/zip-packages/django.zip', '') > See details > # > 1. > 01-09 07:55AM 56.495 /android/user/login/ 200 2389ms 2019ms-cpu > 0kb > See details > 208.54.90.71 - - [09/Jan/2009:07:55:58 -0800] "POST /android/ > user/login/ HTTP/1.1" 200 229 - - > 2. > I 01-09 07:55AM 56.741 > zipimporter('/base/data/home/apps/winebythebar/ > 3.330560357815056688/common/zip-packages/django.zip', '') > > > > > --~--~-~--~~~---~--~~ 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: user login URLs in html/javascript
Ok, I am getting no response, so let me say what my attempt was, based on viewing the source html of a GAE webpage. But this "attempt" does not work, because I get sent to a nonexistent webpage. Notice that the return address is the one for my appspot.com application. https://www.google.com/accounts/LoginAuth?continue=http %3A%2F%2Fcarpoolfinder.appspot.com%2F" method="post" onsubmit="return(gaia_onLoginSubmit());"> http://carpoolfinder.appspot.com"; /> Thanks, Brian in Atlanta --~--~-~--~~~---~--~~ 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: Your client does not have permission to get URL /admin/ from this server.
Hi Doc, The fact that the app doesn't use Google Accounts may be relevant. Are the administrator accounts Google Accounts or Google Apps emails? In order to sign in to your application as an administrator the type of account much match the authentication type chosen when you configured your app. (See: http://code.google.com/appengine/articles/auth.html for more details.) -Marzia On Thu, Jan 8, 2009 at 11:32 PM, DocDay wrote: > > I'm using the "$PYTHON_LIB/google/appengine/ext/admin" script in > several apps exactly as shown in the example here: > > > http://code.google.com/appengine/docs/configuringanapp.html#Referring_to_the_Python_Library_Directory > > All apps authenticate as expected, except for one. It returns: > > "Your client does not have permission to get URL /admin/ from this > server." > > I added a second administrator account to the problem app, but cannot > login with that either. How can I get this to work? Interestingly, > this is the only app in the bunch that does not use Google Accounts > for sign in. Is that relevant? > > Doc > > > > --~--~-~--~~~---~--~~ 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: Is the Datastore just too slow for 100+ returned records?
> I believe this will > make a single trip the datastore rather than once every 20 objects > (which is done to make using intrinsic iteration of a GqlQuery > performant). I'd be curious to see what, if any, gain this yields > with your dataset. Takes exactly the same amount of time. I read through a lot of the google db libraries seeing if I could dig the keys out of the objects. I think fetch just does the same loop for you internally. --~--~-~--~~~---~--~~ 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: Suggests based on user input
I'd suggest pushing the entire list of suggestions to the client when they hit the page, then using something like: http://wiki.github.com/madrobby/scriptaculous/autocompleter-local The list of suggestions could either be static, or stored in the data store. We do this for www.fyood.com which has about 6K suggestions. Adam On Jan 6, 10:46 am, "bowman.jos...@gmail.com" wrote: > If it's going to make a request each time it needs to calculate next > suggestions, you could quickly hit your requests quota. When doing > Ajax style functionality on your appengine site, it's best to keep in > mind you have a finite amount of requests available to your > application per day. > > On Jan 6, 9:58 am, "Barry Hunter" wrote: > > > You could use something like > > thishttp://developer.yahoo.com/yui/autocomplete/ > > > the python script to output csv, or xml based on the datastore query > > should be fairly trival. > > > 2009/1/6 Shay Ben Dov : > > > > Hi Everybody, > > > > Has anyone tried to implement a suggestions based on user input like > > > inGmail when you start to key in the To: field and you get a lists of > > > suggested names read from your contacts. > > > > I wish to implement the same reading suggestions from a datastore > > > table based on user keyed_in input. > > > > Every assistance is appreciated. > > > > Thanks, > > > > Shay Ben Dov > > > -- > > Barry > > > -www.nearby.org.uk-www.geograph.org.uk- --~--~-~--~~~---~--~~ 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: Very urgent
Arnie, I don't know much about anything. But, my question to you is - ' Why is this Very urgent ?' , learning is a slow process. - br On 1/9/09, arnie wrote: > > Hi all > I am using google app engine sdk to develop a python web service. I am > totally new to both google app engine sdk and python so struggling > hard to create a simple python web service. > Is creating a wsgi application using google app engine sdk [in python] > with no user interface is a web service? > If No, then can anybody suggest steps to create a simple web service? > If Yes, then a sub question how can i return a collection of data > containing say FirstName, LastName, Age, Address to the client? > Please any body can help > 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: Error in datastore viewer in the SDK
Hi, This is: http://code.google.com/p/googleappengine/issues/detail?id=280 If you clear your datastore you should be ok. -Marzia On Thu, Jan 8, 2009 at 8:45 PM, WeatherPhilip < philip-goo...@gladstonefamily.net> wrote: > > When I try and view one of my objects that I put into the SDK > datastore, I get the following: > > Traceback (most recent call last): > File "D:\Program Files\Google\google_appengine\google\appengine\ext > \webapp\__init__.py", line 499, in __call__ >handler.get(*groups) > File "D:\Program Files\Google\google_appengine\google\appengine\ext > \admin\__init__.py", line 678, in get >field = data_type.input_field(name, value, sample_values) > File "D:\Program Files\Google\google_appengine\google\appengine\ext > \admin\__init__.py", line 780, in input_field >if len(sample_value) > 255 or sample_value.find('\n') >= 0: > TypeError: object of type 'NoneType' has no len() > > > I'm not enough of a guru to diagnose whether this is my fault > (something wrong that I have done in creating my object), or whether > it is a bug in the datastore viewer. This error happens when I click > on an entry that is displayed after pressing 'List Entities' > > Philip > > > > --~--~-~--~~~---~--~~ 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: Is the Datastore just too slow for 100+ returned records?
Tzakie, As Dan pointed out, GqlQuery isn't actually fetching the data when constructed. Try this instead: CategoryRows = db.GqlQuery(QueryString) results = CategoryRows.fetch(limit) where limit is the max number of rows to fetch. I believe this will make a single trip the datastore rather than once every 20 objects (which is done to make using intrinsic iteration of a GqlQuery performant). I'd be curious to see what, if any, gain this yields with your dataset. --~--~-~--~~~---~--~~ 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: three web proxy sites on Google app Engine(proxypy, go2, web-proxy), which is better?
Black Spider(http://web-proxy.appspot.com) is best. It is base on the open source code *mirrorrr* ,but improves much. On 1月1日, 下午10时40分, auzhuang wrote: > I found three web proxy sites on Google app : > > http://proxypy.appspot.com/ > > http://go2.appspot.com/ > > http://web-proxy.appspot.com/ > > which is better? Is it open source? --~--~-~--~~~---~--~~ 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] Error in datastore viewer in the SDK
When I try and view one of my objects that I put into the SDK datastore, I get the following: Traceback (most recent call last): File "D:\Program Files\Google\google_appengine\google\appengine\ext \webapp\__init__.py", line 499, in __call__ handler.get(*groups) File "D:\Program Files\Google\google_appengine\google\appengine\ext \admin\__init__.py", line 678, in get field = data_type.input_field(name, value, sample_values) File "D:\Program Files\Google\google_appengine\google\appengine\ext \admin\__init__.py", line 780, in input_field if len(sample_value) > 255 or sample_value.find('\n') >= 0: TypeError: object of type 'NoneType' has no len() I'm not enough of a guru to diagnose whether this is my fault (something wrong that I have done in creating my object), or whether it is a bug in the datastore viewer. This error happens when I click on an entry that is displayed after pressing 'List Entities' Philip --~--~-~--~~~---~--~~ 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] "appcfg.py update" talking with server very slowly, http://appspot.google.com slowly resolves
Is there something wrong with the server? It is taking the app engine ten minutes for the server to respond to a simple "hello world" file update. --~--~-~--~~~---~--~~ 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] help me to know about file system virtualization
we are doing project in file system virtualization... but we dont have clear idea about the same.we are going to implement this in linux environment as well as we planned to use the cluster of servers.if you have any idea regarding this please help me ... --~--~-~--~~~---~--~~ 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] Front-end UI for GAE datastore
Hi all, Is there any front-end that allows an administrator to view, update, delete the content of GAE datastore, both at the table and record level. 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] Restrict entire app access by IP? (for stage server)
Hi, is there a way to deny/allow IPs for in-house, private staging servers on App Engine like one could create in Apache in the config or .htaccess settings? If not, what is the best way to create a private, company staging server for testing? --~--~-~--~~~---~--~~ 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] Very urgent
Hi all I am using google app engine sdk to develop a python web service. I am totally new to both google app engine sdk and python so struggling hard to create a simple python web service. Is creating a wsgi application using google app engine sdk [in python] with no user interface is a web service? If No, then can anybody suggest steps to create a simple web service? If Yes, then a sub question how can i return a collection of data containing say FirstName, LastName, Age, Address to the client? Please any body can help 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: Python 3.0 and GAE
To vote for Python 3.0 go here: http://code.google.com/p/googleappengine/issues/detail?id=909 --~--~-~--~~~---~--~~ 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] High CPU for zipimporter django.zip
What am I doing wrong? Every call generates a high CPU call to zipimporter. The times range from 2000 to 4500ms each time. I am using appengine-patch. # 1. 01-09 08:03AM 07.774 /android/bottle/sync/ 200 1463ms 3886ms-cpu 169kb See details 208.54.90.55 - - [09/Jan/2009:08:03:09 -0800] "POST /android/ bottle/sync/ HTTP/1.1" 200 169607 - - 2. I 01-09 08:03AM 07.898 zipimporter('/base/data/home/apps/winebythebar/ 3.330582746043449707/common/zip-packages/django.zip', '') # 1. I 01-09 07:59AM 10.768 zipimporter('/base/data/home/apps/ winebythebar/3.330582746043449707/common/zip-packages/django.zip', '') See details # 1. 01-09 07:59AM 10.651 /android/user/login/ 200 2078ms 4336ms-cpu 0kb See details 208.54.90.71 - - [09/Jan/2009:07:59:12 -0800] "POST /android/ user/login/ HTTP/1.1" 200 329 - - 2. I 01-09 07:59AM 10.768 zipimporter('/base/data/home/apps/winebythebar/ 3.330582746043449707/common/zip-packages/django.zip', '') # 1. I 01-09 07:55AM 56.741 zipimporter('/base/data/home/apps/ winebythebar/3.330560357815056688/common/zip-packages/django.zip', '') See details # 1. 01-09 07:55AM 56.495 /android/user/login/ 200 2389ms 2019ms-cpu 0kb See details 208.54.90.71 - - [09/Jan/2009:07:55:58 -0800] "POST /android/ user/login/ HTTP/1.1" 200 229 - - 2. I 01-09 07:55AM 56.741 zipimporter('/base/data/home/apps/winebythebar/ 3.330560357815056688/common/zip-packages/django.zip', '') --~--~-~--~~~---~--~~ 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: WWW. Help
On Fri, Jan 9, 2009, Ray Malone wrote: > > I've noticed that appspot.com sites are not accessable when you add WWW. > to the name. Any Idea why or is it just my sites? I think it is not supported. There is an open request for this feature in the issue tracker: http://code.google.com/p/googleappengine/issues/detail?id=861. --~--~-~--~~~---~--~~ 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: Trouble with NeedIndexError when calling count()
We saw this error yesterday too, but only for one of our users. The query succeeds for everyone else... (We were doing a fetch instead of a count, but otherwise it seems pretty similar) On Jan 8, 11:48 am, Ryan W wrote: > All of a sudden this morning, I began getting this error in my app, > when doing a search inside of an internal process (searching for > duplicates) and then taking a count() of the results. It was working > fine before. I have this same query on a search page as well, and > it's still fine. The search page does not call count() though. > Perhaps it has something to do with the number of results being > returned, I'll try to instrument to get a apples to apples search > string comparison. Any ideas on this though? > > This is the stack trace: > > File "/base/data/home/apps/...", line 196, in approvePost > if qPosts.count() > 0: > File "/base/python_lib/versions/1/google/appengine/ext/db/ > __init__.py", line 1353, in count > return self._get_query().Count(limit=limit) > File "/base/python_lib/versions/1/google/appengine/api/ > datastore.py", line 960, in Count > raise _ToDatastoreError(err) > File "/base/python_lib/versions/1/google/appengine/api/ > datastore.py", line 1637, in _ToDatastoreError > raise errors[err.application_error](err.error_detail) > NeedIndexError: The built-in indices are not efficient enough for this > query and your data. Please add a composite index for this query. > > This is the offending code: > > qPosts = datamodel.Post.all().search(search_string).filter("approved = > ", True) > if qPosts.count() > 0: > > This is the model: > > class Post(search.SearchableModel): > user = db.ReferenceProperty(User, collection_name='posts') > status_id = db.IntegerProperty(required=True) > entry = db.TextProperty(required=True) > entry_title = db.StringProperty(required=True,multiline=True) > entry_link = db.LinkProperty(required=True) > approved = db.BooleanProperty(required=True, default=False) > reject_reason = db.StringListProperty(default=None) > retweet_status_id = db.IntegerProperty(required=False) > in_reply_to_status_id = db.IntegerProperty(required=False) > short_url = db.LinkProperty(required=False) > hash = db.StringProperty(required=False) > source = db.StringProperty(required=False) > view_count = db.IntegerProperty(required=True, default=0) > reply_count = db.IntegerProperty(required=True, default=0) > like_count = db.IntegerProperty(required=True, default=0) > published = db.DateTimeProperty() > created = db.DateTimeProperty(auto_now_add=True) > > I tried adding this index, but was still getting the error: > > - kind: Post > properties: > - name: __searchable_text_index > - name: approved --~--~-~--~~~---~--~~ 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] WWW. Help
I've noticed that appspot.com sites are not accessable when you add WWW. to the name. Any Idea why or is it just my sites? --~--~-~--~~~---~--~~ 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 to determine top 10 scoring users from last 24 hours?
Amir, This is one of those cases that's tough because App Engine's datastore has no on-the-fly SUM ability. You'd have to write an updating process that makes periodic calls to your server app to process recent results and update the entities used for your 24-hour scoring table. Here's how I'd do it: - Record each event affecting scoring in an entity (call the model ScoreEvent) with a timestamp. The key_name of each ScoreEvent would be the timestamp + user info. On write of this entity, update a 24-hr score entity (call the model Score24) for this particular user. - Periodically do maintenance calls to your server to update the Score24 entities. Each maintenance call would sort ScoreEvents on the key and then fetch all ScoreEvents since the last Score24 maintenance call (use a key to mark your place in the ScoreEvents stream). Querying on keys was added to datastore in Nov: http://code.google.com/appengine/docs/datastore/queriesandindexes.html#Queries_on_Keys So for each Score24 maintenance call, you'd fetch some # of ScoreEvent entities, make a first pass so you combine all events into user deltas, then update the associated user Score24 entities. Then save the last ScoreEvent key that you processed in this maintenance call. On the next maintenance call, use that "last ScoreEvent key" in the query just as if you were paging: query = ScoreEvent.gql('WHERE __key__ > :1 ORDER BY __key__', last_key) So your Score24 entities will reflect each user's score over the last 24 hours with some error due to the frequency of your maintenance calls. Now getting the top X scoring users over the last 24 hours is a query on Score24 entities where you sort on score and fetch the top X entities. Best, Bill Amir Michail wrote: > Hi, > > How can this be done efficiently with the current version of the GAE? > > I suppose you could keep track of all events affecting scoring for the > last 24 hours. Whenever you handle a request -- even one that does > not affect scoring -- you could prune out events older than 24 hours > and add a new one if the player has received more points as a result > of the current request. > > As you take out old events and add in new ones, you also update the > top 10 ranking for the last 24 hours accordingly. > > The problem here is that taking out all the old events can be quite > expensive. As an extreme example, if you don't get any requests for > over 24 hours, then on the next request, you will need to clear out at > a day's worth of scoring events. > > Amir --~--~-~--~~~---~--~~ 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: Proper use of BASE HTML tag
On 9 tammi, 08:33, MajorProgamming wrote: > Is this treated well (and accepted as proper usage) by all standards > and browser? > > Remember to close tags if you're using XML standards. In which case this would be: Cheers, j --~--~-~--~~~---~--~~ 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: email with Django and appenginepatch fails (1,'Uknown Error')
Hi Waldemar, Thanks for the reply. I appreciate it. I should have included this in my original post. I have configured as below(xxx = username/password): # Email server settings EMAIL_HOST = 'smtp.comcast.net' EMAIL_PORT = 25 EMAIL_HOST_USER = 'x' EMAIL_HOST_PASSWORD = '' EMAIL_USE_TLS = False DEFAULT_FROM_EMAIL = 'd...@blindrebel.com' SERVER_EMAIL = 'd...@blindrebel.com' I've tried TLS = True and False both. Also from terminal (i'm using OS X 10.4.11) I can successfully "telnet smtp.comcast.net 25" and manually send a message. Also when using telnet I do not have to login so I've attempt to comment out the EMAIL_HOST_USER and EMAIL_HOST_PASSWORD but it does not fix it. Also in looking at this more, and the output above shows the local var 'name' that is being used by getbyhostaddr(name) is using has my local machine hostname(imac.local). I've even gone into my host file to make sure it has imac.local with my loopback address. Again, thanks for your help. This is driving me mad! Dave On Jan 9, 7:36 am, Waldemar Kornewald wrote: > Hi Dave, > > On Jan 8, 3:36 pm, Dave wrote: > > > I am having a problem that I hope has an easy answer although I've > > looked high and low for an answer. I am using app engine with > > appenginepatch, including Django 1.x. When I attempt to send an email > > I get an 'herror" Exception with Exception Value "(1, uknown host)". > > From the error output, line 111 is what seems to be raising the > > Exception is below: > > Did you configure the email server in your settings.py? See here for a > reference:http://docs.djangoproject.com/en/dev/ref/settings/#email-host > There's also DEFAULT_FROM_EMAIL and SERVER_EMAIL. > > Bye, > Waldemar Kornewald --~--~-~--~~~---~--~~ 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: Proper use of BASE HTML tag
Yes, has been in the standards since at least 2.0 and is supported by every major browser. http://www.eskimo.com/~bloo/indexdot/html/supportkey/a.htm is a good reference for this sort of thing. On Jan 9, 1:33 am, MajorProgamming wrote: > Is this treated well (and accepted as proper usage) by all standards > and browser? > > --~--~-~--~~~---~--~~ 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: urlfetch, ApplicationError: 5
Hello, I am also facing the same problem. I am trying this: http://vinodxx.blogspot.com/2009/01/how-to-avoid-urlfetch-errors-in-google.html On Dec 18 2008, 2:33 pm, Sylvain wrote: > Hi, > > My app is online since 5 months, but since fews days, I've got more > and more ApplicationError: 5 with the urlfetch API. > > ApplicationError 5 is raised with this error : DEADLINE_EXCEEDED, but > the website my app fetches is "fast" and sometimes when I test this > API onhttp://shell.appspot.com/: > > >>> from google.appengine.api import urlfetch > >>> data = urlfetch.fetch(web_site) > > this error is raised at once (no wait). > > Is DEADLINE_EXCEEDED a kind of timeout ? > How long does it wait before raising this error ? > > Regards > > Sylvain --~--~-~--~~~---~--~~ 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: Admin interface that let's me enter dummy data
I found appengine_admin helpful to add dummy data. It's a very nice interface, and all you have to do is define the models/properties you want exposed to the forms for view/edit/etc. http://code.google.com/p/appengine-admin/ Nick On Jan 9, 4:38 am, Alexander Kojevnikov wrote: > > Thanks for the response. I just dont see a reason why Google can't > > allow dummy data to be entered via the built in admin interface. If it > > can create forms when there is data, why cant it create forms without > > data? > > I guess the main reason is that the datastore is schema-less, the > models can and will change at runtime. Also, the model classes can be > defined and re-defined in any module of the project, I guess it's a > non-trivial task to figure out what the final model definition would > be. --~--~-~--~~~---~--~~ 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: email with Django and appenginepatch fails (1,'Uknown Error')
Hi Dave, On Jan 8, 3:36 pm, Dave wrote: > I am having a problem that I hope has an easy answer although I've > looked high and low for an answer. I am using app engine with > appenginepatch, including Django 1.x. When I attempt to send an email > I get an 'herror" Exception with Exception Value "(1, uknown host)". > From the error output, line 111 is what seems to be raising the > Exception is below: Did you configure the email server in your settings.py? See here for a reference: http://docs.djangoproject.com/en/dev/ref/settings/#email-host There's also DEFAULT_FROM_EMAIL and SERVER_EMAIL. Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ 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: Beginner Question - About using App Engine
This article got me started using AJAX and JSON. Works great. http://code.google.com/appengine/articles/rpc.html On Thu, Jan 8, 2009 at 7:08 PM, Faber Fedor wrote: > > > On Thu, Jan 8, 2009 at 5:56 PM, mscwd01 wrote: > >> >> >> In short, i'd like to use App Engine to return xml responses to my >> Android App - instead of using App Engine for the usual browser based >> web application. >> >> Is this allowed? > > > I hope so! I'm planning on doing the same thing! (Except with JSON :-) > > > > -- > > Faber Fedor > Cloud Computing New Jersey > http://cloudcomputingnj.com > > > > > -- http://giscoder.blogspot.com/ --~--~-~--~~~---~--~~ 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: Admin interface that let's me enter dummy data
> Thanks for the response. I just dont see a reason why Google can't > allow dummy data to be entered via the built in admin interface. If it > can create forms when there is data, why cant it create forms without > data? > I guess the main reason is that the datastore is schema-less, the models can and will change at runtime. Also, the model classes can be defined and re-defined in any module of the project, I guess it's a non-trivial task to figure out what the final model definition would be. --~--~-~--~~~---~--~~ 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: Static File Questions
Reversibly breaking and remaking larger than 1MB files persistently storing max 1 MB chunks, gae http get and post support the larger. The gae http transport as it is handles larger files. The 1MB limit only limits the entities, not the transport. On Jan 8, 11:59 pm, MajorProgamming wrote: > Just a few questions on static files: > > 1. Does serving a static file cost CPU usage? > > 2. Does having a large number of static files (let's say like 700) > have _any_ effect on performance of page serving [similarly, does > having a lot of mappings affect performance]? > > 3. When a python script reads a file off the app's filesystem (like a > template html file), is that any faster than a get_by_key on the > datastore? [i.e. filesystem vs. bigtable performance]? > > 4. Will the paid version of Google App Engine allow over 1000 files > and/or larger than 1MB files (or entities)? > > 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 -~--~~~~--~~--~--~---