[google-appengine] urlfetch with Google Docs returns empty content

2008-10-13 Thread kaapuni
I'm trying to download a document from my Google documents via urlfetch. I use the sample code for AuthSub authentication and from the Google Docs API documentation for Python. I get a link to the content from the API call which I can cpoypaste into the address bar of my browser and voila - I see

[google-appengine] Re: Polymorphism: one-to-many relation how to store and retrieve efficiently

2008-10-13 Thread yejun
If shape details are needed in db query, I think you may just save a pickle dump of the shape object as a blob field. On Oct 13, 6:45 am, djidjadji [EMAIL PROTECTED] wrote: And you need multiple queries to get all the Shapes that belong to the Page. When we make a new Shape subclass we have to

[google-appengine] Re: Implement AJAX in App Engine

2008-10-13 Thread David Symonds
On Sun, Oct 12, 2008 at 7:06 PM, Shay Ben Dov [EMAIL PROTECTED] wrote: I wonder is there a way to implement AJAX in an application like the easy way it is done in Rails: you write 1 line in the header to include Javascript, defaults and other then you issue a simple command in your HTML

[google-appengine] Re: datastore .order question

2008-10-13 Thread David Wilson (entertainment cloud)
ok, i wanted to be sure about this, as pulling all the records and just returning one would have been a performance disaster for my app. my question was raised because i was a little surprised to read that offset queries still pull all the 'upto' offset out of the store. does the same apply to

[google-appengine] Re: No module named os

2008-10-13 Thread Ilia Lobsanov
Uninstalling (trashing GoogleAppEngineLauncher from /Applications) and reinstalling resolved my problem. Thank you. ilia. On Oct 6, 1:13 pm, Josh Heitzman [EMAIL PROTECTED] wrote: Can't speak for Mac or this specific SDK, but on Windows when I upgraded to an earlier SDK release, I couldn't

[google-appengine] Re: Polymorphism: one-to-many relation how to store and retrieve efficiently

2008-10-13 Thread djidjadji
And you need multiple queries to get all the Shapes that belong to the Page. When we make a new Shape subclass we have to update the retrieval in the Page too. I just read about the entity-index-limit at http://code.google.com/appengine/docs/datastore/queriesandindexes.html When a Page has a lot

[google-appengine] appenginepatch 0.8 released!

2008-10-13 Thread Waldemar Kornewald
Hi, we've released a new appenginepatch version. This time we have easy to use zip packages integration and a new sample project that comes with a zip-packaged Django version. We've also fixed a few bugs and added a workaround for a bug in App Engine which finally allows to use lazy translation

[google-appengine] Re: Does the datastore cache?

2008-10-13 Thread Sylvain
Probably this bug (accepted) http://code.google.com/p/googleappengine/issues/detail?id=732 On 13 oct, 10:41, Josh Heitzman [EMAIL PROTECTED] wrote: Just tried my app and I'm seeing changes show up immediately as expected. I was having some issue with page caching until I added: meta

[google-appengine] Re: Downloading my application

2008-10-13 Thread Arun Shanker Prasad
i think the static files are themselves kept in the datastore.. and served. I dont think app.yaml and index.yaml are uploaded with your app in the traditional sense, they are used to identify ur app and create index defs during the appcfg.py call.. On Oct 13, 10:33 am, Gmail [EMAIL PROTECTED]

[google-appengine] Re: Polymorphism: one-to-many relation how to store and retrieve efficiently

2008-10-13 Thread yejun
Using parent = or ancestor is probably faster because the locality of datastore. On Oct 13, 4:30 am, djidjadji [EMAIL PROTECTED] wrote: Hello, I'm looking for a way to store and retrieve a polymorphic one-to-many relation. The test case I used is for a drawing on a page to contain

[google-appengine] Cant Upload my app files to the AppEngine

2008-10-13 Thread Blackbird
Hi, This is a wierd problem that i've been facing... I cant upload my app to my AppEngine account using the appcfg.py script. The issue is, when i'm running the command through the DOS command prompt, its giving a time out exception or a host unreachable exception. However, i can access

[google-appengine] No response?

2008-10-13 Thread sternr
I've just uploaded my first application, and no matter what request I try, I get error 500, And in the request log (the error log is empty) I get: MY.IP.ADDRESS - - [13/10/2008:03:14:30 -0700] GET / HTTP/1.1 0 0 - - What is http code 0? why am I getting it? HELP?! --sternr

[google-appengine] 3000 mcycles and This request used a amount of CPU and may soon exceed its quota

2008-10-13 Thread Matija
Hi, I have some init stage imports to app-engine application and combining with some ajax calls I was able to use maximum of 3000 mcycles per request. When there is request that consumes more the 1000 mcycles I have warning 'This request used a amount of CPU and may soon exceed its quota.' in my

[google-appengine] BaseModel IndexError: list index out of range

2008-10-13 Thread ghostrocket
Hi All - This is driving me crazy, any help is greatly appreciated. The following: class MyModel(BaseModel): title = db.StringProperty(required=True) and stuff =MyModel(title=mytitle) yields IndexError: list index out of range but extending db.Model instead of BaseModel works just

[google-appengine] Re: Is GAE Horribly Broken?

2008-10-13 Thread Marzia Niccolai
Hi, If you want to reply to me with the app ids with which you are experiencing this issue, I would be happy to look in to it. Thanks, Marzia On Sun, Oct 12, 2008 at 10:04 AM, gg [EMAIL PROTECTED] wrote: Ok, so from previous threads it is always the poster who is thought to be at fault for

[google-appengine] datastore .order question

2008-10-13 Thread David Wilson (entertainment cloud)
Hi, class Thing(db.Model): value = db.IntegerProperty(required=True) datastore has 10 Things with value 1..10 Question: How many records does the query Thing.all().order('-value').get() pull from the datastore? --~--~-~--~~~---~--~~ You received this

[google-appengine] Re: Does the datastore cache?

2008-10-13 Thread Josh Heitzman
Just tried my app and I'm seeing changes show up immediately as expected. I was having some issue with page caching until I added: meta http-equiv=Cache-Control content=no-cache / to the head element of my pages. If you can reproduce the problem yourself, you can check your logs right

[google-appengine] Re: BaseModel IndexError: list index out of range

2008-10-13 Thread ghostrocket
this is the issue: line 51 of appengine_dango/models.py is: self.app_label = model_module.__name__.split('.')[-2] i'm not sure why we need the .split('.')[-2] but my model_module is not returning a string with a '.' in it. any idea if this is a bug or did i misconfigure something? On Oct 13,

[google-appengine] Re: Longer timeouts - but not cpu

2008-10-13 Thread Jeff S
Hi Joel, I don't recall seeing an issue listing like this, so feel free to add it to the issue tracker: http://code.google.com/p/googleappengine/issues/list Thank you, Jeff On Oct 9, 7:13 am, Joel [EMAIL PROTECTED] wrote: Similar to the problem of wanting resource intensive requests... I

[google-appengine] Re: 3000 mcycles and This request used a amount of CPU and may soon exceed its quota

2008-10-13 Thread Josh Heitzman
I've been wondering the same thing. When they start letting us pay for this, will our apps still have to stay under some arbitrary average number of CPU cycles? On Oct 13, 3:21 am, Matija [EMAIL PROTECTED] wrote: Hi, I have some init stage imports to app-engine application and combining

[google-appengine] Re: datastore .order question

2008-10-13 Thread yejun
It will only pull unnecessary data when you use offset parameter in fetch(limit,offset=0). Because when you set an offset, the datastore still need to iterate all previous data before that offset. On Oct 13, 1:25 pm, David Wilson (entertainment cloud) [EMAIL PROTECTED] wrote: when you say the

[google-appengine] Re: Error Log?!

2008-10-13 Thread Marzia Niccolai
Hi, With out more information, my first advice would be to check the settings in your app.yaml. It seems most possible that the URL you are hitting isn't properly mapped to a system resource. If you are still having issues, please post your app.yaml and some description of the code/static

[google-appengine] Why my website is speeder using www. than without ?!?

2008-10-13 Thread manatlan
Since some times, my website seems really down ... when i use http://manatlan.com ... it can make 5 minutes to response. and when i use http://www.manatlan.com : it's in a fraction of seconds (good way). This trouble is since one or two months. I can't find the trouble. I've got a gae id, which

[google-appengine] Re: Downloading my application

2008-10-13 Thread Davide Rognoni
Yes, so Downloading my application will be a new feature. On Oct 13, 1:55 pm, Arun Shanker Prasad [EMAIL PROTECTED] wrote: i think the static files are themselves kept in the datastore.. and served. I dont think app.yaml and index.yaml are uploaded with your app in the traditional sense, they

[google-appengine] Re: Why my website is speeder using www. than without ?!?

2008-10-13 Thread manatlan
and better : If i go there : http://www.manatlan.com/test/ (which is a simple redirect to /), browser try to bring me to https://www.manatlan.com/ ?!? really strange On 13 oct, 20:44, manatlan [EMAIL PROTECTED] wrote: Since some times, my website seems really down ... when i

[google-appengine] Re: Why python?

2008-10-13 Thread Davide Rognoni
python, java, c#, c++, c trends http://www.google.com/trends?q=python%2C+java%2C+c%23%2C+c%2B%2B%2C+cctab=0geo=alldate=allsort=0 On Oct 13, 4:08 pm, luismgz [EMAIL PROTECTED] wrote: My Kung-Fu is better than yours! On Oct 10, 3:50 am, Leo(雷傲) [EMAIL PROTECTED] wrote: I hate python's

[google-appengine] Re: Implement AJAX in App Engine

2008-10-13 Thread Davide Rognoni
Ajax Requests http://docs.jquery.com/Ajax setInterval(func, interval, [args]) Calls the specified func (or a JavaScript statement) repeatedly per the interval interval, in milliseconds (ie: 1000=every 1 second). func must be surrounded in quotations, as if it was a string. Use the optional args

[google-appengine] Re: datastore .order question

2008-10-13 Thread David Wilson (entertainment cloud)
good news all round :) thanks for clearing that up everyone. On Oct 13, 7:05 pm, yejun [EMAIL PROTECTED] wrote: It will only pull unnecessary data when you use offset parameter in fetch(limit,offset=0). Because when you set an offset, the datastore still need to iterate all previous data

[google-appengine] Members: 4994

2008-10-13 Thread Davide Rognoni
- 5 - 4 - 3 - 2 - 1 5000 :-) --~--~-~--~~~---~--~~ 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

[google-appengine] ModelChoiceField

2008-10-13 Thread [EMAIL PROTECTED]
So below I have a snippet of my model form code. I was wondering does anyone know the correct format for the choices attribute of the ModelChoiceField class. channel = djangoforms.ModelChoiceField(Channel,query=Channel.all().filter('publish_status = ',True).filter('user =

[google-appengine] Re: Why my website is speeder using www. than without ?!?

2008-10-13 Thread manatlan
I don't understand well (and it's like that since the beginning, and that trouble was not here) how can i correct this ? On 13 oct, 20:58, yejun [EMAIL PROTECTED] wrote: That's because manatlan.com is mapped only 2 static ips,www.manatlan.com is mapped to entire ghs google servers. On Oct

[google-appengine] Faster choices code

2008-10-13 Thread Andy Freeman
google/appengine/db/__init__.py starting at line 401 is: if self.choices: match = False for choice in self.choices: if choice == value: match = True if not match: raise BadValueError('Property %s is %r; must be one of %r' %

[google-appengine] Re: Why my website is speeder using www. than without ?!?

2008-10-13 Thread Barry Hunter
Google have decided they can no longer support 'naked' domains, ie without a www - mainly becuase naked domains cant work well with cname records. And the technology they used to work around that limitation itself has issues. http://code.google.com/appengine/kb/commontasks.html#naked_domain

[google-appengine] Re: Uploading app behind proxy

2008-10-13 Thread Rob
DId you try seting the proxy environment variable before starting appcfg.py set http_proxy=http://www-proxy.us..com:80 On Oct 12, 10:49 am, uo [EMAIL PROTECTED] wrote: And i cant make use ofhttp://code.activestate.com/recipes/456195/  because it uses sockets

[google-appengine] Re: reading a file

2008-10-13 Thread manuelaraoz
thanks! I have it working now :D --~--~-~--~~~---~--~~ 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

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

2008-10-13 Thread Nishu
Hello, I am trying to develop a screen scraping application using the google Webapp framework. The application parses the html output of some other page to extract the required data and then forms a string out of these data. Sometimes the application works well but at times the application