[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 taogf1...@gmail.com 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'] # this is the

[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

[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

[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

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

2009-04-19 Thread
CHeck this:

[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 danstic...@gmail.com wrote: I have an app that's giving me a Number Indexes Exceeds Quota message. My understanding is that vacuumed indexes are not automatically

[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: meta http-equiv=Content-Type content=text/html; charset=gb2312 It's a page generated by Excel. The response header content-type only return

[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 satish...@gmail.com 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

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

2009-04-04 Thread
will 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, 秦锋 feng.w@gmail.com wrote

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

2009-04-04 Thread
...@gmail.com wrote: You need to do both. Memcache doesn't persist. 2009/4/4 秦锋 feng.w@gmail.com Thanks! Does it means I have to put entity back to db or pickle it back to memcache after changed something? Otherwise changes will be lost, I guess. On 4月4日, 下午9时31分, Tim Hoffman

[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\fqinping cndata4u.appspot.com Pinging appspot-china.l.google.com [72.14.235.141] with 32 bytes

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

2009-04-04 Thread
, Django framework comes bundled with simplejson and its included in the GAE SDK. Thanks, Arun Shanker Prasad. On Apr 4, 6:55 pm, 秦锋 feng.w@gmail.com wrote: My site uses GAE as background Data source and GWT as front UI, which sends request and expects get JSON format data table back

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

2009-04-04 Thread
the indexes from your index.yaml and run appcfg.py vaccum_indexes. On Fri, Apr 3, 2009 at 5:32 PM, 秦锋 feng.w@gmail.com wrote: My models: class Tag(db.Model):  name = db.StringProperty()  refCount = db.IntegerProperty(default = 0) class Record(db.Model):  date = db.DateTimeProperty

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

2009-04-03 Thread
here, can I delete index as Unused in history? On 4月3日, 下午8时50分, Alkis Evlogimenos ('Αλκης Ευλογημένος) evlogime...@gmail.com wrote: What do your models look like? On Fri, Apr 3, 2009 at 2:00 PM, 秦锋 feng.w@gmail.com wrote: My App: cndata4u.appspot.com Now I have imported about 2500

[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 ==

[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: preTraceback (most recent call last): File quot;C:\Program Files\Google\google_appengine\google \appengine \ext\webapp\__init__.pyquot;, line 498, in __call__

[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 divine...@gmail.com 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

[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 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