[google-appengine] Re: is it a bug of python 2.5?----remove elements from list in for cycle

2009-06-01 Thread
a = set(a) a.discard("b") a = list(a) On 6月1日, 下午8时48分, DiveIntoGAE wrote: > >>> a=["b","c","t","y","b","b","b","b"] > >>> a > > ['b', 'c', 't', 'y', 'b', 'b', 'b', 'b']>>> for i in a: > > a.remove("b") # why can't i remove all the "b" from list a? > > >>> a > > ['c', 't', 'y', 'b']

[google-appengine] How to use get_request_cpu_usage?

2009-05-30 Thread
Introduction on this api is so simple for me and I don't know how to check if this number exceeded top line? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email

[google-appengine] Add active/deactive option in CRON job settings

2009-05-28 Thread
For me, cron is a good mechanism to maintain the data on schedule, but for application requirement, sometimes I want to disable/enable some jobs under specific situation. Now the only choice is to maintain a large txt file with all jobs and copy part of them into cron.yaml and then upload. Is it p

[google-appengine] Save JSON data as csv files

2009-05-05 Thread
Hello: I have use gviz_api to generate JSON data at GAE server side and render them in html pages under Django. Now I want to provide a "save as" link to save all JSON data into a .csv file, how to proceed? Thanks! --~--~-~--~~~---~--~~ You received this message be

[google-appengine] DataStore Space cost inspecter

2009-05-03 Thread
Currently GAE has no tool for checking datastore space cost, in details, disk spaces costs for every index, kind, etc. I think it's useful for developer to optimize the data structure since there ONE GB limit. Any idea? --~--~-~--~~~---~--~~ You received this messa

[google-appengine] Re: Retrieving Large Query Sets Containing Inequality Operators

2009-04-19 Thread
CHeck this: http://google-appengine.googlegroups.com/web/efficient_paging_using_key_instead_of_a_dedicated_unique_property.txt?gda=7FbhWXcAAACSStSWrftt07H4FK2Rtvurv5Qi9dmYyYZMEnTZCjCsYQQgER4RQV57mxjvIzAWBZmQ3TeCdbqm30Qz_AwgYlIpRbcWRj3jGGBm-fgbnPJIYc4-hXRRmo3Xgj6KgtSLBeZ45alvcyXc30EbEX-RNDZveV4duv6

[google-appengine] Re: Need Index Quota Reset

2009-04-14 Thread
1. Delete index in your index.yaml 2. use "appcfg.py vacuum ..." to delete your index at server side. On 4月14日, 上午11时57分, Devel63 wrote: > I have an app that's giving me a Number Indexes Exceeds Quota message. > > My understanding is that vacuumed indexes are not automatically > credited back. >

[google-appengine] URLFetch can't parse the content-type header

2009-04-12 Thread
I tried to fetch following url and check the content-type: http://www.pbc.gov.cn/diaochatongji/tongjishuju/gofile.asp?file=2009S07.htm The html seems: It's a page generated by Excel. The response header "content-type" only return "text/html", but charset is missed. What's wrong with this page?

[google-appengine] Re: Bulkuploader error - No implementation for kind \'%s\'' % kind

2009-04-06 Thread
main.py is in PYTHONPATH? What's your command looks like? On 4月7日, 上午6时28分, satish wrote: > I am trying to use bulkuploader for the first time using the procedure > outlined at this page (http://code.google.com/appengine/docs/python/ > tools/uploadingdata.html) but I am receiving the following e

[google-appengine] Re: 308K CSV file cost 20% GAE data space!

2009-04-04 Thread
rom your index.yaml and run appcfg.py vaccum_indexes. > > > > > > On Fri, Apr 3, 2009 at 5:32 PM, 秦锋 wrote: > > > My models: > > class Tag(db.Model): > >  name = db.StringProperty() > >  refCount = db.IntegerProperty(default = 0) > > > class

[google-appengine] Re: How can I pass more parameters between GWT and GAE by JSON?

2009-04-04 Thread
question was how to parse JSON in python, Django framework > comes bundled with simplejson and its included in the GAE SDK. > > Thanks, > Arun Shanker Prasad. > > On Apr 4, 6:55 pm, 秦锋 wrote: > > > > > My site uses GAE as background Data source and GWT as front UI, which

[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-04 Thread
appspot.com is accessiable in China now, and I found appspot.com has a china specific host? Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\fqin>ping cndata4u.appspot.com Pinging appspot-china.l.google.com [72.14.235.141] with 32 bytes o

[google-appengine] Re: Memcache return different object for same key?

2009-04-04 Thread
; On 4 avr, 16:15, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > > wrote: > > You need to do both. Memcache doesn't persist. > > > 2009/4/4 秦锋 > > > > Thanks! > > > Does it means I have to put entity back to db or pickle it back to > > >

[google-appengine] Re: Memcache return different object for same key?

2009-04-04 Thread
ill find the same value inside it though. > > What happens is the object is being pickled when you stick it into > memcache, when you get it the object it > is unpickled and essentially a new instance is created from the data > stored. > > T > > On Apr 4, 7:14 pm, 秦锋 w

[google-appengine] How can I pass more parameters between GWT and GAE by JSON?

2009-04-04 Thread
My site uses GAE as background Data source and GWT as front UI, which sends request and expects get JSON format data table back to Visualization Chart. As we known, JSON has specific format definition, thus how can I pass extra parameters in on JSON response? such as paging data(bookmark)? --~--~-

[google-appengine] Memcache return different object for same key?

2009-04-04 Thread
Following is my code in interactive console in local SDK admin web page: from google.appengine.api import memcache from google.appengine.ext import db r = db.Model() memcache.set("Mytest", r) i = 0 while i<10: print memcache.get("Mytest") i+=1 When I run it, I got different instances for t

[google-appengine] Re: 308K CSV file cost 20% GAE data space!

2009-04-04 Thread
Yes, it seems that list property searching will cost index space too much. On 4月4日, 下午5时18分, Alkis Evlogimenos ('Αλκης Ευλογημένος) wrote: > Remove the indexes from your index.yaml and run appcfg.py vaccum_indexes. > > > > > > On Fri, Apr 3, 2009 at 5:32 PM,

[google-appengine] Re: How to iterate all records when > 1000?

2009-04-03 Thread
an mentioned "derived queries" he meant, use new queries that > > will pick up where the last query left off (also called paging as you > > noted). Joe Gregorio wrote an article on it which might also help: > > >http://code.google.com/appengine/articles/paging.html >

[google-appengine] Re: 308K CSV file cost 20% GAE data space!

2009-04-03 Thread
4月3日, 下午8时50分, Alkis Evlogimenos ('Αλκης Ευλογημένος) wrote: > What do your models look like? > > On Fri, Apr 3, 2009 at 2:00 PM, 秦锋 wrote: > > > My App: cndata4u.appspot.com > > Now I have imported about 2500 records there, and with only THREE > > entities. B

[google-appengine] Re: 308K CSV file cost 20% GAE data space!

2009-04-03 Thread
: date I'm a newbie here, can I delete index as "Unused in history"? On 4月3日, 下午8时50分, Alkis Evlogimenos ('Αλκης Ευλογημένος) wrote: > What do your models look like? > > On Fri, Apr 3, 2009 at 2:00 PM, 秦锋 wrote: > > > My App: cndata4u.appspot.com > > No

[google-appengine] 308K CSV file cost 20% GAE data space!

2009-04-03 Thread
My App: cndata4u.appspot.com Now I have imported about 2500 records there, and with only THREE entities. But I have found that these data have occurred 20% data store, about 200M! My original CSV files have only 308K! Any idea? --~--~-~--~~~---~--~~ You received th

[google-appengine] How to iterate all records when > 1000?

2009-04-02 Thread
Hi all: I'm tried to read all records and find tags of them, since my records are larger than 1000(>4000 actually), and I know fetch has 1000 limit, thus I tried iterator, but got failure either. Following is my code: class UpdateTag(webapp.RequestHandler): def get(self): if 0 == len(self.r

[google-appengine] Re: Google App Engine and China access

2009-04-01 Thread
Domain binded could not be reached due to ghs.google.com is blocked. I strongly want Google to deploy ghs.google.cn! On 4月2日, 上午11时11分, Andy wrote: > Every now and then I see posts on App Engine being blocked by China. > > Several workarounds have been suggested, which seem to work some of > th

[google-appengine] HTMLParser error?

2009-03-25 Thread
When I'm using HTMLParser to access a link below: http://www.stats.gov.cn/tjsj/ndsj/2007/html/C0301c.htm SDK keeps reporting: Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\google \appengine \ext\webapp\__init__.py", line 498, in __call__ handler.get(*gr

[google-appengine] Re: StingListProperty and bulkLoad

2009-03-13 Thread
you could write text in CSV file like this: [str1, str2, str3] this will be parsed into stringlist. On 1月17日, 下午10时58分, "jackson.h.mil...@gmail.com" wrote: > Documentation onbulkLoadis sparse. I have found a couple of blog > posts that have been helpful and I have my bulkLoaders running. > >

[google-appengine] Re: App Engine is Blocked by Chinse gov

2009-03-13 Thread
You could try this in your hosts file: 209.85.171.141 yourapp.appspot.com On 3月13日, 下午11时42分, Haoyu Bai wrote: > Hi, > > Could any from China confirm this? I can't access any subdomain of > appspot.com now, for examplehttp://socghop.appspot.com > > Traceroute show it is blocked at 202.112.61.2