[google-appengine] Re: dev server runs deffrent from python shell

2009-09-11 Thread 老桃
by the way, i am saintthor. i did not change my nickname in this group. i do not know why 老桃 appears. On Sep 12, 12:46 pm, wrote: > ok. codes are: > > from google.appengine.ext import webapp > > class UserMng( webapp.RequestHandler ): >     def get( self ): > >         a = [] >         b = ( a

[google-appengine] Re: dev server runs deffrent from python shell

2009-09-11 Thread 老桃
ok. codes are: from google.appengine.ext import webapp class UserMng( webapp.RequestHandler ): def get( self ): a = [] b = ( a ) and 5 print b outputs: [] Status: 200 OK Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Expires: Fri, 01 Jan 1990 00:

[google-appengine] How to clean log?

2009-09-11 Thread tom
I can't any place to clean the log of my app. --~--~-~--~~~---~--~~ 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

[google-appengine] Re: How to use Cookie and Session under App Engine/python

2009-09-11 Thread GregF
On Sep 11, 3:37 pm, BornInMeadowMuffins wrote: > I just want to know what is the exemplary usage of cookie and session, > an easy and simple approach. See http://code.google.com/p/gmemsess/ for a very simple session class. It is a very small class, so you can see exactly how it works by looking

[google-appengine] View this page "Google App Engine Open Source Projects"

2009-09-11 Thread Jason (Google)
Added AEJ Tools Click on http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribe

[google-appengine] Re: Reading File from the local file system inside GAE.

2009-09-11 Thread Tim Hoffman
Actually yout problem is your trying to read a file outside of where your application is. You can't read files from some arbitrary path, it must be inside your project. I assume you projects top level directory is not d: T On Sep 12, 2:58 am, GuruDutta wrote: > Hi Tim, > > Could you please exp

[google-appengine] Re: Dramatic increase in api cpu usage.

2009-09-11 Thread Peter Liu
Thanks for explaining how api cpu usage is calculated. I haven't enable billing yet, so my quota is low, but every time I invoke a background task that do batch commits, the api_cpu is in red, warning me the quota might be reached. Most of the my service calls involve 1+ datastore call, that for

[google-appengine] Re: Server error without any log

2009-09-11 Thread Mike Wesner
Any response from a googler on this? We are seeing this issue also. thanks! On Sep 11, 1:00 pm, Ernesto Ferro wrote: > I'm having the same issue. I've made a REALLY simple site with django > 1.02 (from app engine) trying to find the problem. The only thing that > this app does is return an ht

[google-appengine] Re: bulkloader.py help - BadValueError: Items in the stores list must all be Key instances

2009-09-11 Thread mjbruder
Nick, That worked perfectly. Thank you! One more question. I'm now having some difficulty importing my 'author' property because it says it needs to be a user. I get BadValueError: Property author must be a User. However, if I just set it to user, I get NameError: global name 'user' is not defin

[google-appengine] Re: about install app Engine SDK

2009-09-11 Thread Wooble
python 2.6 isn't supported. Also, how are you trying to run the demo? You need to run dev_appserver.py and connect with a web browser; it sounds like you might be trying to run the .py files containing the handlers. On Sep 10, 5:18 am, chy chen wrote: > How to install app Engine  SDK? > My pyt

[google-appengine] Best Way to delete mass amount of data

2009-09-11 Thread someone1
I have tried asking/researching this before, but I really need a more efficient way to delete mass amounts of data from the datastore. In short, I am only able to remove .1GB for 6.5 hrs of CPU time, and all of that is datastore time. Here is the code: class DeleteKeywords(webapp.RequestHandler)

[google-appengine] Re: Reading File from the local file system inside GAE.

2009-09-11 Thread GuruDutta
Hi Tim, Could you please explain as to what does "shouldn't be located in a path served by a static handler " mean with an example. BTB I have my xml file in D:\TEST Thanks, GuruDutta On Sep 11, 7:55 pm, Tim Hoffman wrote: > hi > > you can read files but it/they shouldn't be located in a path

[google-appengine] root entities, key_names, and transactions

2009-09-11 Thread Robin B
Lets say I am working with root entities, and I want to transactionally insert entities based on key_name. def txn(name): post = Post.get_by_key_name(name) if post is None: post = Post(key_name=name) post.put() return (post, True) else: return (post, Fa

[google-appengine] Re: Dramatic increase in api cpu usage.

2009-09-11 Thread bFlood
hi nick agreed on parallel api cpu calls and how this relates to time but those values jumped dramatically at some point last week with little or no change in userland code. is there an answer to this 3X-5X jump in db write API time? thanks brian On Sep 11, 2:17 pm, "Nick Johnson (Google)" w

[google-appengine] Re: Can't access the dashboard anymore

2009-09-11 Thread Rud
I am having the same problem. Rud On Sep 9, 6:56 pm, Riyadh wrote: > I posted this message in response to another thread but for some > reason it is not shown there. So here we go again :-) > > --- > > Hi everyone, > > A few weeks ago I created my GAE account and set up two applications. > I d

[google-appengine] Re: Failed when I want to donwload a file from my web app

2009-09-11 Thread Joshua Smith
Close, but not quite right. self.response.headers["Content-Type"] = "application/x-download" self.response.headers["Content-Disposition"] = "attachment;filename=d.txt" The first line tells the browser that you want it to download, period. The second line shows you that you do not wan

[google-appengine] Re: Dramatic increase in api cpu usage.

2009-09-11 Thread Nick Johnson (Google)
Hi Peter, On Fri, Sep 11, 2009 at 2:18 AM, Peter Liu wrote: > > I see similar results. The total api cpu time is much higher then > actual time spent on the actual call. I use a profiling api delegate > that logs every api call duration, and the total api cpu reported on > admin console is usual

[google-appengine] Re: Server error without any log

2009-09-11 Thread Ernesto Ferro
I'm having the same issue. I've made a REALLY simple site with django 1.02 (from app engine) trying to find the problem. The only thing that this app does is return an html with render_to_response. Nothing else ant yet it fail by deadline, imports or some disk i/o operations. Does google knows abo

[google-appengine] Re: Source-Code Version Control

2009-09-11 Thread Bo
I will recommend you use git over other VCS like svn, because git is a distributed version control system, you can do everything without a server. If you need a center git hosting, you can try http://gitfarm.appspot.com, a free private git hosting service. It's built on top of App Engine, so you

[google-appengine] Issue of my first app in google app engine

2009-09-11 Thread tom
I alweays got the following error: When I try to save data using JDO in groovy servlet ,I got the following error: org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The class "The class "com.sompackage.Comment" is not persistable. This means that it either hasnt been enhanced, o

[google-appengine] Really simple site with random 500 errors...

2009-09-11 Thread Ernesto Ferro
Hi everyone! Since a few days I'm having some random 500 errors so I made a REALLY simple version of it... and I'm still getting the same behavior... This is the code of the simplified version: urls.py from django.conf import settings from django.conf.urls.defaults import * urlpatterns = patt

[google-appengine] About the data acquisition error of the data store

2009-09-11 Thread kuma8888
When data is drawn out from the data store, the HTTP 500 error is output. Why does this symptom happen? Please answer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group,

[google-appengine] Re: Need to Upload a HUGE number of map tiles to App Engine!

2009-09-11 Thread intmanch
Hi, I've also need to upload images to the app engine. I'll love to have the code of your webservice and the tile uploader program when you have the time to send it of course :) On 10 sep, 14:46, mscwd01 wrote: > I have just finished uploading approximately 20GBs of Nasa SRTM > elevationtile

[google-appengine] Failed when I want to donwload a file from my web app

2009-09-11 Thread dingle
I want to make my web app to provide download a file. A simple example is like that: class MainHandler(webapp.RequestHandler): def get(self): self.response.headers['Content-Type'] = "html/text" self.response.headers['Content-Dispos

[google-appengine] Re: Struct, Spring

2009-09-11 Thread Arun Dasan
Hi Nick, Thanks. Currently I'm using eclipse with com.google.appengine.eclipse.sdkbundle_1.2.2. I developed some application with MVC. I want to build a Struct2 web appilcation. Please guide me. Do you have any documents. Where to place jar files? Thanks in advance. On Wed, Sep 9, 2009 at 6:0

[google-appengine] How to use Cookie and Session under App Engine/python

2009-09-11 Thread BornInMeadowMuffins
I'm new to Google App Engine. I am stuck in cookie and session use. I followed the tutorial here: http://webpython.codepoint.net/cgi_cookie_based_sid However, I somewhat don't understand where his cookie files are stored and how do we retrieve the data. I referred the Python Library(the document),

[google-appengine] Re: Dramatic increase in api cpu usage.

2009-09-11 Thread Peter Liu
I see similar results. The total api cpu time is much higher then actual time spent on the actual call. I use a profiling api delegate that logs every api call duration, and the total api cpu reported on admin console is usually at least 2 times higher. On Sep 9, 2:05 pm, Lec wrote: > I cannot c

[google-appengine] Re: unique ids

2009-09-11 Thread Nick Johnson (Google)
On Fri, Sep 11, 2009 at 6:27 PM, Robin B wrote: > > > IDs are unique per kind and per parent, not global. > > So for example: > > post = Post(parent=None, title='foo').put() > post.put() > comment = Comment(parent=None, message='bar').put() > comment.put() > > Then post.key().id() and comment.ke

[google-appengine] Re: unique ids

2009-09-11 Thread Robin B
> IDs are unique per kind and per parent, not global. So for example: post = Post(parent=None, title='foo').put() post.put() comment = Comment(parent=None, message='bar').put() comment.put() Then post.key().id() and comment.key().id() could potentially be equal because they are not global acro

[google-appengine] Re: expando and indexes

2009-09-11 Thread Nick Johnson (Google)
On Fri, Sep 11, 2009 at 6:17 PM, Robin B wrote: > > So you are saying expando entities are limited to a few thousand > properties (5000?) is there an exact limit? > Correct. > > If I have 1M expando entities, and each entity has 1 property that is > unique, it will create 1M index _entries_, n

[google-appengine] Re: expando and indexes

2009-09-11 Thread Robin B
So you are saying expando entities are limited to a few thousand properties (5000?) is there an exact limit? If I have 1M expando entities, and each entity has 1 property that is unique, it will create 1M index _entries_, not 1M indexes, correct? Thanks, Robin On Sep 11, 4:13 am, "Nick Johnson

[google-appengine] Re: Server error without any log

2009-09-11 Thread johnP
I'm using Django via AppEnginePatch - and today am seeign a horrible episode of multiple deadline-exceeded errors as the app is trying to initialize... johnP On Sep 11, 9:35 am, Jason C wrote: > Here is an example that occurred this morning. We use the Google- > supplied Django 1.0, and are

[google-appengine] Re: Server error without any log

2009-09-11 Thread Jason C
Here is an example that occurred this morning. We use the Google- supplied Django 1.0, and are using r91 of http://code.google.com/p/google-app-engine-django/, which presumably is a reasonably common App Engine / Django deployment. The request that caused this exception was pegged at 28956ms. :

[google-appengine] Re: Google App Engine Program Policies

2009-09-11 Thread Tom Wu
Thanks Nick, Since the GAE is difficult to implement compare to the regular SQL. But it guide us to a wise directioon. We understand the big-table behind the gae must be well protected. Some site like craigslist is far away from the free quota. It'll charge on our bill. Now the free quota is ex

[google-appengine] Re: Server error without any log

2009-09-11 Thread Jason C
We see the same behaviour. The DeadlineExceededError crops up in arbitrary locations, often within Django modules. Further, we've seen occasions where the application instance seems to get a "poorly initialized Django" and then view lookups (e.g., with reverse()) always fail. The application inst

[google-appengine] Re: dev server runs deffrent from python shell

2009-09-11 Thread Nick Johnson (Google)
Hi saintthor, Can you please provide a complete example that reproduces this on the dev server? -Nick Johnson On Fri, Sep 11, 2009 at 5:06 PM, saintthor wrote: > > in python shell v2.5.2 run: > > a = [] > b = ( a ) and 5 > > then b is 5. > > run same code in dev server, b is [] > > > -- Nick

[google-appengine] Re: Google App Engine Program Policies

2009-09-11 Thread Nick Johnson (Google)
Hi Tom, I'm not a lawyer; nor do I speak in any sort of binding fashion for Google in this respect. That said, my entirely lay-person interpretation is that sites like craigslist would be perfectly fine. The terms of service are designed to prevent abuse, and something like craigslist certainly isn

[google-appengine] dev server runs deffrent from python shell

2009-09-11 Thread saintthor
in python shell v2.5.2 run: a = [] b = ( a ) and 5 then b is 5. run same code in dev server, b is [] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to g

[google-appengine] Re: Google App Engine Program Policies

2009-09-11 Thread Tom Wu
Hi Nick, Is http://www.craigslist.org/ ok in gae ? Best Regards Tom Wu 2009/9/11 Barry Hunter > > 2009/9/11 Tom Wu : > > Hi All, > > > > According to the > > > > Google App Engine Program Policies > > > > Prohibited Content > > > > k. Pages comprised primarily of advertising; > > > > > >

[google-appengine] Re: Google App Engine Program Policies

2009-09-11 Thread Ross M Karchner
Maybe an interesting theoretical: Couldn't a classifieds app (say, something like Craigslist) be considered "Pages comprised primarily of advertising;" On Fri, Sep 11, 2009 at 11:42 AM, Nick Johnson (Google) wrote: > Hi Tom, > Advertisements are not banned in App Engine - only pages comprised

[google-appengine] Re: Google App Engine Program Policies

2009-09-11 Thread Barry Hunter
2009/9/11 Tom Wu : > Hi All, > > According to the > > Google App Engine Program Policies > > Prohibited Content > > k. Pages comprised primarily of advertising; > > > Why ban the advertisement content in gae ? They haven't! But a page comprised 'primarily' of advertising - is really designed for

[google-appengine] Re: Google App Engine Program Policies

2009-09-11 Thread Nick Johnson (Google)
Hi Tom, Advertisements are not banned in App Engine - only pages comprised primarily of advertising (eg, with no significant non-advertising content). -Nick Johnson On Fri, Sep 11, 2009 at 4:34 PM, Tom Wu wrote: > Hi All, > > According to the Google App Engine Program > Policies

[google-appengine] Google App Engine Program Policies

2009-09-11 Thread Tom Wu
Hi All, According to the Google App Engine Program PoliciesProhibited Content*k. Pages comprised primarily of advertising;* Why ban the advertisement content in gae ? Best Regards Tom Wu --~--~-~--~~~

[google-appengine] Re: Will Google kick me out if I run this app ?

2009-09-11 Thread Brandon N. Wirtz
http://code.google.com/appengine/program_policies.html The Content displayed and/or processed through your Application or other web site utilizing the Service shall not contain any of the following types of content: Content that infringes a third party's rights (e.g., copyright) according to app

[google-appengine] Re: Reading File from the local file system inside GAE.

2009-09-11 Thread Tim Hoffman
hi you can read files but it/they shouldn't be located in a path served by a static handler. have a look at where you have put it. T On Sep 11, 10:30 pm, GuruDutta wrote: > Hi All, > > I am trying to read an XML file from the local file system. I have an > app which runs on the GAE and all m

[google-appengine] Reading File from the local file system inside GAE.

2009-09-11 Thread GuruDutta
Hi All, I am trying to read an XML file from the local file system. I have an app which runs on the GAE and all my code is in python and Jquery. Now I tried 2 ways of reading this file. 1. I tried to parse the xml file within my server code but it gave me an EACESS error stating it cannot access

[google-appengine] Tornadoweb.org

2009-09-11 Thread Sylvain
Facebook (ex FriendFeed) has just released the open source of their web server. http://www.tornadoweb.org/ But it seems that we can only use the frameworks within GAE (WSGIApplication). http://github.com/facebook/tornado/tree/9e24ae162d024e4049b8811d7ca19e319c20021d/website There are many very

[google-appengine] Re: Can't access the dashboard anymore

2009-09-11 Thread Riyadh
Hello again, I don't want to sound impatient but I really need to access the Dashboard :-/ Any help is appreciated! Thanks R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to thi

[google-appengine] Re: 30 Max simultaneous requests (maxThreads)?

2009-09-11 Thread Nick Johnson (Google)
Hi Adligo, On Thu, Sep 10, 2009 at 6:15 PM, Adligo wrote: > > Hi All, > > Ok this is all very interesting, and in a nut shell GAE isn't true > J2EE impl. So now I am wondering; Is there a way to tell if my servlet is running on GAE? > As far as I'm aware, the J2EE specification doesn't prov

[google-appengine] Re: bulkloader.py help - BadValueError: Items in the stores list must all be Key instances

2009-09-11 Thread Nick Johnson (Google)
Hi mjbruder, The easiest way to do this would be to define the conversion function for exporting 'stores' as follows: lambda x: ":".join(str(y) for y in x) And the conversion function for imports as follows: lambda x: [db.Key(y) for y in x.split(":")] -Nick Johnson On Thu, Sep 10, 2009 at 3:43

[google-appengine] Re: Increasing Task Queue Quota Limit

2009-09-11 Thread Nick Johnson (Google)
On Fri, Sep 11, 2009 at 12:21 AM, Jason C wrote: > > Some of our architectural designs are contemplating daily taskqueue > jobs in the millions. > > What sort of reaction does this bring from Google? Is this within the > realm of possibility (current quota limitations aside), or completely > not

[google-appengine] Re: expando and indexes

2009-09-11 Thread Nick Johnson (Google)
On Fri, Sep 11, 2009 at 7:58 AM, Robin B wrote: > > With expando, if I have 1M unique field names, does that create 1M > unique indexes? > It will create 1M index _entries_, yes (except that it's limited to a few thousand, see below). > Are there any potential adverse effects to using expando

[google-appengine] Re: unique ids

2009-09-11 Thread Nick Johnson (Google)
Hi Robin, IDs are unique per kind and per parent, not global. -Nick Johnson On Fri, Sep 11, 2009 at 8:39 AM, Robin B wrote: > > I noticed that unique auto ids seem to span across kinds. Is there > any trick to getting unique auto ids per kind? > > Thanks, > > Robin > > > -- Nick Johnson, De

[google-appengine] Will Google kick me out if I run this app ?

2009-09-11 Thread astrid.thuec...@googlemail.com
Will Google kick me out if I run this app: http://torrentfreak.com/run-a-free-bittorrent-tracker-on-google-090910/ Does Google clearly state what is allowed and what is disallowed on appengine? Link anyone? --~--~-~--~~~---~--~~ You received this message becaus

[google-appengine] Re: unique ids

2009-09-11 Thread Sylvain
You have to do it yourself with a global counter Example with a blog : http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine Regards. On 11 sep, 09:39, Robin B wrote: > I noticed that unique auto ids seem to span across kinds.  Is there > any trick to gett

[google-appengine] unique ids

2009-09-11 Thread Robin B
I noticed that unique auto ids seem to span across kinds. Is there any trick to getting unique auto ids per kind? Thanks, Robin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to

[google-appengine] Re: xmpp.parseMessage(request) has a problem with non-latin characters?

2009-09-11 Thread Ivan Frolov
I've checked the request. Here's the fragment. --=_Part_16732_4260695.1252651666846 Content-Type: text/plain; charset="UTF-8" Content-Disposition: form-data; name="from" *...@***.**/Work067E4040 --=_Part_16732_4260695.1252651666846 Content-Type: text/plain; charset="UTF-8" Content-Dispos