[google-appengine] Re: Getting 'UnicodeDecodeError'. Please help

2008-10-15 Thread Nishu
Thanks, it worked. At least the application is not raising such errors any more. I am novice as far as Python is concerned so can you please give a short explanation for the solution you provided. With this code what I noticed is that the character which was creating problem was not included in

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

2008-10-15 Thread Tim
That would be a nice addition. Currently I've created a pickled property (suggested by a previous post to this group) for properties that don't need to be indexed, but I fear it won't play well with djangoforms / model forms. On Oct 15, 12:04 am, djidjadji [EMAIL PROTECTED] wrote: For this

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

2008-10-15 Thread Josh Heitzman
There are no indexes in index.yaml for these entity kinds and not very many of the properties are being changed at one time (no idea if that matters or not). If updating the implicit indexes is the majority of the cost of doing these updates, then I definitely agree that either-- 1) an attribute

[google-appengine] Re: decision to be an API and not a protocol...

2008-10-15 Thread Jon McAlister
And, by that comment I don't mean to imply that we're not interested in HTTPS :-P, but instead that we're not interested in opening up direct protocol buffer access to our APIs. On Oct 14, 9:17 pm, Jon McAlister [EMAIL PROTECTED] wrote: We are indeed an application hosting infrastructure first

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

2008-10-15 Thread djidjadji
For this entity at least 44 (10+1+2+15+1+15) index updates have to be done in 16 different index tables (10+1+2+1+1+1). Every attribute has its implicit index and you get an implicit index for the 'product' of the property lists. Not to mention the index tables mentioned in the index.yaml file

[google-appengine] Re: Getting 'UnicodeDecodeError'. Please help

2008-10-15 Thread Kang
It is because there are some illegal string in the string you want to process. So with decode(UTF-8,ignore), you can decode it without errors. I think Dive into Python is a good choice. p.s.I am new to Python, too. And I am a Chinese, so I need to always deal with decode error problems.

[google-appengine] Re: How can I get a GAE Account?

2008-10-15 Thread Kang
我邀请你了。 [EMAIL PROTECTED] 写道: 哎,我最近才学的Python,看了GAE的一些视频之后,对GAE很感兴趣,就是申请不到账号,这棵咋搞哦~~,应该是可以邀请别人的吧? On 10月15日, 下午4时00分, Kang [EMAIL PROTECTED] wrote: 我也不知道怎么给你。。因为我也在中国。。[EMAIL PROTECTED]写道:Why nobody pay attention to me? Is there anyone could send a invitation to me? thanks! On

[google-appengine] Re: How can I get a GAE Account?

2008-10-15 Thread [EMAIL PROTECTED]
哦,是邀请共同开发啊~,看来没有邀请注册的~ 哎~,失望哦~~~ 还是要谢谢你啊! On 10月15日, 下午6时19分, Kang [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]:哎,我最近才学的Python,看了GAE的一些视频之后,对GAE很感兴趣,就是申请不到账号,这棵咋搞哦~~,应该是可以邀请别人的吧? On 10月15日, 下午4时00分, Kang[EMAIL PROTECTED]wrote:[EMAIL PROTECTED]:Why nobody pay attention to me? Is there anyone

[google-appengine] Re: Modeling mutual references

2008-10-15 Thread kang
Maybe: class Book(db.Model): title = db.StringProperty() first = db.ReferenceProperty(Page) class Page(db.Model): text = db.TextProperty() next = db.SelfReferenceProperty() book =

[google-appengine] Datastore timeouts

2008-10-15 Thread Chris Marasti-Georg
I have a class that holds advanced information for a frame of bowling. It looks like: class Frame(db.Model): version = db.IntegerProperty(default=1) user = db.UserProperty() game = db.ReferenceProperty(Game, required=True) frame_number = db.IntegerProperty(required=True)

[google-appengine] Creating web forms in GAE

2008-10-15 Thread [EMAIL PROTECTED]
Hi, Can anybody say please, what ways exist in GAE environment to create web forms like in GWT widgets library. Is it possible to use tcl\tk from python? Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[google-appengine] can I have a primery key of my own?

2008-10-15 Thread ajaxer
if i use google datastore api? is it possible to specify my own key field in db.Model? 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] Gql Issue

2008-10-15 Thread tejas
class MyBooks(db.Model): bookid=db.IntegerProperty(name='key') author = db.StringProperty(multiline=True) book_name = db.StringProperty(multiline=True) price = db.IntegerProperty() date = db.DateTimeProperty(auto_now_add=True) class Editbook(webapp.RequestHandler): def post(self):

[google-appengine] Gql integration issue

2008-10-15 Thread Gampeshwar
Hi, We have tried example given in google app engine where only SELECT query is as an example without WHERE clause, if i used to apply where clause the no record are fetching. Also could you please give us the example of UPDATE,DELETE,SEARCH in our google app engine Thanks in advance.

[google-appengine] Re: How can I get a GAE Account?

2008-10-15 Thread robbie
不是邀请注册么? 那各位是怎么注册帐号的?我也是注册不了 On 10月15日, 下午9时00分, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 哦,是邀请共同开发啊~,看来没有邀请注册的~ 哎~,失望哦~~~ 还是要谢谢你啊! On 10月15日, 下午6时19分, Kang [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]:哎,我最近才学的Python,看了GAE的一些视频之后,对GAE很感兴趣,就是申请不到账号,这棵咋搞哦~~,应该是可以邀请别-人的吧? On 10月15日,

[google-appengine] Upload demo to GAE Error, caused by _GetAuthCookie, timed out

2008-10-15 Thread Chao Loo
Hi, I keep getting the following error while trying to upload GAE demo (guestbook). Here is the stack trace: - C:\Program Files\Google\google_appengineappcfg.py update demos\guestbook\ Email: [EMAIL PROTECTED] Password for [EMAIL PROTECTED]: Scanning

[google-appengine] Re: can I have a primery key of my own?

2008-10-15 Thread Sylvain
And what about key_name in the Model class. http://code.google.com/appengine/docs/datastore/modelclass.html Regards On 15 oct, 08:29, ajaxer [EMAIL PROTECTED] wrote: if i use google datastore api? is it possible to specify my own key field in db.Model? thanks.

[google-appengine] Re: How can I get a GAE Account?

2008-10-15 Thread kenneth
申诉,写信给google。过两天他们会开通。 2008/10/15 Kang [EMAIL PROTECTED] 我也不知道怎么给你。。因为我也在中国。。 [EMAIL PROTECTED] 写道: Why nobody pay attention to me? Is there anyone could send a invitation to me? thanks! On 10月14日, 下午11时22分, [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]

[google-appengine] Re: Gql integration issue

2008-10-15 Thread Wooble
On Oct 15, 8:28 am, Gampeshwar [EMAIL PROTECTED] wrote: Also could you please give us the example of UPDATE,DELETE,SEARCH in our google app engine There are no such GQL statements, only SELECT. The datastore is not a traditional RDBMS, and GQL is really only provided as a convenience to

[google-appengine] Re: Gql integration issue

2008-10-15 Thread Gampesh
Thanks for the reply Wooble , But if i wanted to do UPDATE, SEARCH and DELETE operation,could you please guide me on this what should i do for that.. Thanks Gampesh On Wed, Oct 15, 2008 at 7:44 PM, Wooble [EMAIL PROTECTED] wrote: On Oct 15, 8:28 am, Gampeshwar [EMAIL PROTECTED] wrote:

[google-appengine] Re: Newbie question - Request params available to def post(self)

2008-10-15 Thread Alex Vartan
Ok, that makes sense. I guess that must be the reason why some of the example apps (written by bret taylor) use REquestHandler classes that subclass a BaseRequestHandler class that includes the original request object: def generate(self, template_name, template_values={}): values

[google-appengine] Re: 求助关于索引问题 的问题!!!

2008-10-15 Thread chyni
不明白你为啥要去修改index.yaml文件,这个文件里面保存的是数据索引方案,会由appcfg.py程序自动更新的,一般不需要手工修改。 1.你是否把 # AUTOGENERATED 这行去掉了,导致系统在你创建model时不会自动更新索引,你可以恢复自动索引,或手工添加 - kind: Comment properties:   - name: yes   direction: desc 2.model只有在创建了实例以后才在控制台可见 3. 应该是表示这个索引从来没有使用过 holeo wrote: ��⣺

[google-appengine] Re: Gql integration issue

2008-10-15 Thread Gampesh
Thanks for the reply one more thing on this id i used to execute SELECT query then it is working fine but once i gave WHERE clause to the SELECT queary then it wont show any record and not even ERROR. Please help we are new in Google app engine and python as well. Thanks Gampesh On Wed, Oct

[google-appengine] Re: 求助关于索引问题 的问题!!!

2008-10-15 Thread holeo
万分感谢你的帮助! 第一个问题,我没修改过index.yaml,dev模式下查询正常 ,我在index.yaml里面发现存在这个索引 - kind: Comment properties:   - name: yes   direction: desc 可是上传运行提示需要这个索引,后台也没显示生成??? 第三个问题: - kind: Comment properties: - name: True direction: desc comment这个model里面我没写True这个property,index.yaml它自己生成的,是什么???

[google-appengine] Re: How can I get a GAE Account?

2008-10-15 Thread Kang
我也不知道怎么给你。。因为我也在中国。。 [EMAIL PROTECTED] 写道: Why nobody pay attention to me? Is there anyone could send a invitation to me? thanks! On 10月14日, 下午11时22分, "[EMAIL PROTECTED]" [EMAIL PROTECTED] wrote: My country is not in the Supported mobile providers list, but how can I get the

[google-appengine] Re: Gql integration issue

2008-10-15 Thread José Oliver Segura
On Wed, Oct 15, 2008 at 5:21 PM, Gampesh [EMAIL PROTECTED] wrote: Thanks for the reply one more thing on this id i used to execute SELECT query then it is working fine but once i gave WHERE clause to the SELECT queary then it wont show any record and not even ERROR. Maybe you don't

[google-appengine] Re: Static files not cached with GAE

2008-10-15 Thread Mahmoud
What makes you think it is not cached? The headers seem to be set appropriately: HTTP/1.1 200 OK DateWed, 15 Oct 2008 17:03:35 GMT Expires Sun, 19 Oct 2008 22:03:35 GMT Cache-Control public, max-age=363600 Content-Typetext/plain Content-Encodinggzip Server Google Frontend

[google-appengine] Re: Modeling mutual references

2008-10-15 Thread Andy Freeman
Using multiple files for dbModel subclass definitions during development runs into the GAE/python doesn't reload what hasn't changed problem. If db.Model A is defined in fileA, db.Model B is defined in fileB and B has a db.ReferenceProperty to A, B's definition will generate errors when you

[google-appengine] Re: How to access Google Cache?

2008-10-15 Thread Vacilando
Thanks. My intention is to be able to use an intelligent agent to examine other websites' pages - and then flagging pages that contain something important (words, patterns, etc.) On Oct 15, 2:42 am, Sal [EMAIL PROTECTED] wrote: It's not very clear (at least to me) what you're trying to do.

[google-appengine] Is it possible to use Google Apps APIs in Google App Engine

2008-10-15 Thread cm_gui
Hi All I'm a newbie. Is it possible to use Google Apps APIs in Google App Engine? This is what the Google Apps APIs says: http://code.google.com/apis/gdata/articles/python_client_lib.html#library Thank you. Gui Installing the Google Data Library Download the Google data Python library if

[google-appengine] Re: Modeling mutual references

2008-10-15 Thread Andy Freeman
The problem really has nothing to do with how import works. It's an execution order problem. Short version: yes, the problem is that Page doesn't exist when Book is defined. However, it has nothing to do with imports. Long version: Import reads and executes statements from a file and makes

[google-appengine] Re: Frames

2008-10-15 Thread Davide Rognoni
http://www.w3schools.com/tags/tag_frameset.asp On Oct 15, 8:44 pm, Nora [EMAIL PROTECTED] wrote: Hello, I know my question sounds stupid but I am unable to move on with my work until this problem is sorted out. I need to create 2 frames in my web page.  I used the frameset tag.  I can

[google-appengine] Re: Frameset

2008-10-15 Thread Davide Rognoni
http://www.w3schools.com/tags/tag_frameset.asp On Oct 15, 8:37 pm, Noorhan Abbas [EMAIL PROTECTED] wrote: Hello, Did anybody use frames in Google Appengine before?  It is a stupid question but I can display the Google App Engine page and I am unable to display my page in the frame!!! Can

[google-appengine] 'Google App Engine for Dummies' - references and stuff to support GAE

2008-10-15 Thread Garrett Davis
I have been working on a site to help developers, and newcomers, find documentation and other information about the App Engine. It's called 'Google App Engine for Dummies', and it's here: http://gae4dummies.appspot.com/ I think it now has most of the knowledge that this dummy acquired, but

[google-appengine] Re: key_name length limits?

2008-10-15 Thread Marzia Niccolai
Hi Andy, I believe there is a limit on key names of 500 bytes, but I can't seem to find it in the documentation. I think the question I have is there a reason you are not using entity groups? When using entity groups you can use Key.from_path() to construct key objects from the ancestor path:

[google-appengine] Re: Is it possible to use Google Apps APIs in Google App Engine

2008-10-15 Thread Sam G
Yes, it's possible to use Gdata API's (including Google Apps) on Google App Engine. Just take a look at the following article: http://code.google.com/appengine/articles/gdata.html On Oct 15, 10:35 am, cm_gui [EMAIL PROTECTED] wrote: Hi All I'm a newbie. Is it possible to use Google Apps

[google-appengine] Re: Is it possible to use Google Apps APIs in Google App Engine

2008-10-15 Thread cm_gui
Thank you Sam. On Oct 15, 3:02 pm, Sam G [EMAIL PROTECTED] wrote: Yes, it's possible to use Gdata API's (including Google Apps) on Google App Engine. Just take a look at the following article:http://code.google.com/appengine/articles/gdata.html On Oct 15, 10:35 am, cm_gui [EMAIL

[google-appengine] Re: How to change Authentication Options after application has been uploaded

2008-10-15 Thread cm_gui
Thank you all. Register a new app and waste one slot sigh... On Oct 10, 4:34 pm, Jon McAlister [EMAIL PROTECTED] wrote: Correct, you will need to register a new app. On Oct 8, 9:24 pm, pr3d4t0r [EMAIL PROTECTED] wrote: On Oct 8, 9:14 pm, cm_gui [EMAIL PROTECTED] wrote: During

[google-appengine] Re: Newbie question - Request params available to def post(self)

2008-10-15 Thread kang
I am new to Python and GAE. I just give you the way I solved the GET/parameters problems:-)I think I need to read some example codes~ But I don't think your interpretation is correct. It's not a Request/parameters problem. It's a Get/parameter problem. Usually we can see url like /book?id=11. We

[google-appengine] Re: Upload demo to GAE Error, caused by _GetAuthCookie, timed out

2008-10-15 Thread kang
you can ping appspot.com and give us the result. On Wed, Oct 15, 2008 at 9:15 PM, Chao Loo [EMAIL PROTECTED] wrote: Hi, I keep getting the following error while trying to upload GAE demo (guestbook). Here is the stack trace: - C:\Program

[google-appengine] Filtering Doesn't Work.

2008-10-15 Thread poppins
I've tried a few different methods between Foo = Posts().all Foo.filter( column =, value ), gql and a handful of other methods. No matter what I do, I don't seem to get this work work. [code] class EntryHandler(webapp.RequestHandler): def get(self): perm_link_key =

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

2008-10-15 Thread [EMAIL PROTECTED]
Thanks, David! I thought that my first attempt to ask question have failed. And what do you think about Java in GAE ? Davide Rognoni wrote: web forms with widgets in Django http://docs.djangoproject.com/en/dev/ref/forms/widgets/ On Oct 15, 3:38�pm, [EMAIL PROTECTED] [EMAIL PROTECTED]

[google-appengine] Re: How can I get a GAE Account?

2008-10-15 Thread [EMAIL PROTECTED]
申诉成功了,哈哈 剩下的时间就是好好学习python了 On 10月16日, 上午8时58分, kang [EMAIL PROTECTED] wrote: 我是在没有手机验证的时候就注册了的~ 现在做了一个 http:luck.appspot.com 2008/10/15 robbie [EMAIL PROTECTED] 不是邀请注册么? 那各位是怎么注册帐号的?我也是注册不了 On 10月15日, 下午9时00分, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 哦,是邀请共同开发啊~,看来没有邀请注册的~

[google-appengine] Re: key_name length limits?

2008-10-15 Thread Andy Freeman
I'm not using entity groups (in this case) because the entity/db.Model instance that I'm constructing doesn't have a reasonable ancestor. There will be too many of them to put under any of the db.Model instances that I'm using to build the key_name, let alone to put under a single root. The

[google-appengine] 754 mcycles to update an entity (sole in group) with one integer property

2008-10-15 Thread Josh Heitzman
As we didn't see anyone from the GAE team confirm or deny that the excessive mcycle consumption for doing an entity update was due to the number of properties on the entity (see this thread http://groups.google.com/group/google-appengine/browse_thread/thread/2901a4ddd1f671d9 ) I decided to do a

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

2008-10-15 Thread Josh Heitzman
Opened http://code.google.com/p/googleappengine/issues/detail?id=786 regarding this issue. On Oct 15, 12:25 am, Josh Heitzman [EMAIL PROTECTED] wrote: There are no indexes in index.yaml for these entity kinds and not very many of the properties are being changed at one time (no idea if that

[google-appengine] Re: 754 mcycles to update an entity (sole in group) with one integer property

2008-10-15 Thread Josh Heitzman
Oh, and: 756 - one StringListProperty with 1 element with 490 characters. So each of the three trials had just one property was under 800 mcycles regardless of the size of the property. On Oct 15, 9:17 pm, Josh Heitzman [EMAIL PROTECTED] wrote: As we didn't see anyone from the GAE team