[google-appengine] API calls/minute quotas

2009-01-27 Thread Blixt
Hi there! From what I understand, there are invisible quotas that limit how many API requests you can do every x time. Here's an example of an exception raised when this quota is exceeded: The API call images.Transform() required more quota than is available. How should these be handled? It

[google-appengine] Re: How-To Do Paging on App Engine

2009-01-27 Thread conman
yes, you are right, this is even better :) Tx for the tip! Constantin On 26 Jan., 19:32, ryan ryanb+appeng...@google.com wrote: agreed, that would definitely help prevent multiple created values. using a guid generator would be even better. having said that, paging on created properties

[google-appengine] Re: Django, including a file

2009-01-27 Thread Larry
Good point. =) Here is my page that is being rendered without the template included: http://silicon.appspot.com/readdoc?id=12619 Here's the template (contained in / and /templates): http://silicon.appspot.com/readdoc?id=12620 And finally, here is my app.yaml file:

[google-appengine] Re: How to append to BlobProperty

2009-01-27 Thread Will
Here you go, -- class UploadStorage(db.Model): def __init__(self, field_name, file_name, content_type, content_length, charset): self.content = db.BlobProperty(required=True) self.last_change = db.DateTimeProperty(required=True, auto_now=True)

[google-appengine] Re: How to append to BlobProperty

2009-01-27 Thread Alexander Kojevnikov
Rewrite your UploadStorage class to declare the module properties in the class body, not in the __init__ method. App Engine forwards access to property definitions to the actual property values, creation of the properties in __init__ is probably not compatible with it. For example, when you

[google-appengine] Re: Form support on a PDA/Smart Phone

2009-01-27 Thread Kajikawa Jeremy
I personally see no reason why a smartphone would remain unsupported... you only need to write the site to cater for the phones limitations. This appears straight forward to simply choosing a different style of output, as long as the smartphone is able to talk HTTP to the host and GET/POST or

[google-appengine] Re: How to append to BlobProperty

2009-01-27 Thread Alexander Kojevnikov
When creating an UploadStorage entity, you should initialise the content property: my_entity = UploadStorage(content='') or: my_entity = UploadStorage() my_entity.content = '' # or whatever your initial value is I know, it a bit confusing. When you define the property in the class,

[google-appengine] Re: How to append to BlobProperty

2009-01-27 Thread TLH
from google.appengine.ext import db class Foo(db.Model): b = db.BlobProperty() def butWhy(self, s): self.b = self.b + s f = Foo( b = Append to a Blob? ) f.butWhy( You can, but why?) print f.b # Append to a Blob? You can, but why? I suspect you should be using a Text property.

[google-appengine] internal error when deploying a new non-default version

2009-01-27 Thread konryd
Almost every time I deploy a new version of my app and try to access it using http://[version].latest.myappnamae.appspot.com I get internal error, unless I make it default. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[google-appengine] Re: Complex tagging of items

2009-01-27 Thread Seronja
Here's where old good relational databases theory comes in. How will I do it: Create a model ``Tags'': class Tags(db.Model): tag_name = db.StringProperty() Create a model ``Items'': class Items(db.Model): item_name = db.StringProperty() And create a model ``ItemTags'' class

[google-appengine] Re: API calls/minute quotas

2009-01-27 Thread Marzia Niccolai
Hi, If you are hitting this quota limit, please just apply for an increase: http://code.google.com/support/bin/request.py?contact_type=AppEngineContact Every resource on the system has some quota associated with it, for things like Image Transforms, it's high enough that the majority of

[google-appengine] Suggestion for anyone using session classes that rely on the datastore

2009-01-27 Thread bowman.jos...@gmail.com
I've started work on version 1.1.3 of gaeutilities which is going to add a flag to not save new sessions by default, as well as adding a save method. I've got the first bit of functionality live on a site that every hour has a script that connects and adds anywhere from 80-150 items to my

[google-appengine] Are query/fetch LIMITs a suggestion or a guarantee?

2009-01-27 Thread Andy Freeman
When is it safe to assume that a fetch that returns less than LIMIT items has returned all matching items? (Clearly if a fetch returns LIMIT items, there may be more matching items.) returns is important - I'm assuming that the fetch isn't running into cpu quotas. For example, is there a limit

[google-appengine] Re: Django, including a file

2009-01-27 Thread Larry
Thanks! I have found my problem... When I render the templates I first load the Template and then for each page render I create a Context object and do: self.response.out.write(templateObject.render(contextObject)) When I change this back to:

[google-appengine] Cloud hosted IDE

2009-01-27 Thread adelevie
Does anyone else agree that a web-based IDE for GAE would be awesome? Thoughts? How can this be done? I'm thinking Google could whip out a pretty neat solution--maybe using a Google Docs-like text editor and an ajaxy file system. --~--~-~--~~~---~--~~ You received

[google-appengine] Re: Serving static files

2009-01-27 Thread James Ashley
That did the trick. Thank you [both] On Jan 26, 2:50 am, Blixt andreasbl...@gmail.com wrote: Looks to me like there's three spaces in front of static_dir: static. Try removing one of the spaces so that there are only two. Regards, Andreas On Jan 26, 5:41 am, James Ashley

[google-appengine] Re: Cloud hosted IDE

2009-01-27 Thread Peter Cooper
I get the impression that what adelevie was after was an app that lives on appspot.com with .py, .yaml, etc., in datastore, that would be accessible from the cloud with the proper authentication, but would be an IDE for GAE only. No more dev_appserver.py or appcfg.py or the accoutrements

[google-appengine] Basic Question concerning def get(self) and def post(self)

2009-01-27 Thread 0815pascal
Hello, I'm new to google app engine and also new to python. I don't understand why you have to code it like this: class MainPage(webapp.RequestHandler): def get(self): I thought that def would define a function. But if I label it different then get or post it doesn't work. Can somebody give

[google-appengine] Re: Cloud hosted IDE

2009-01-27 Thread Peter Cooper
Yes, I looked at New Zoho and I certainly did not mean to imply disparagement of the product. I believe in diversity and to prove it I admit I once used pico and pine. Cloud based IDE would be nice for a scenario where there were coders, test engineers, and managers all in different locations

[google-appengine] Re: API calls/minute quotas

2009-01-27 Thread boson
On Jan 27, 12:04 am, Blixt andreasbl...@gmail.com wrote: I hope these quotas will be visible in the future so that they can be monitored, and that there will be options to extend these quotas. FYI there is a page in the App Engine admin console that shows all your quota and gives

[google-appengine] Debug with pdb + Django + app-engine-patch ?

2009-01-27 Thread boson
I can't get pdb to work with Django + app-engine-patch. When I do this in my code: import pdb pdb.set_trace() I get a stack trace printed to the console with a BdbQuit exception, but the (Pdb) prompt itself is written to the HTML output with the HTML for the Debug error page immediately

[google-appengine] Re: GAE datastore insertion rate

2009-01-27 Thread djidjadji
Why do you put all nodes for a device in one entity group (same parent node)? Entity groups should be kept small (in most cases) because you lock all members of the group if you do a put() on one of them. Only use entity groups if you need some transaction function to do the update on some of the

[google-appengine] Re: GAE datastore insertion rate

2009-01-27 Thread iDavid
Thank you for your suggestions, I really appreciate them. My load test is sending data exactly as the physical devices in the field would do. Each device will send 4 Notes per POST, once a minute (a note every 15 seconds). I did not know about the batch-put, I will make the necessary code

[google-appengine] Re: Cloud hosted IDE

2009-01-27 Thread adelevie
I do know of a company that may offer a similar service, but for Ruby: http://devver.net/ . They are part of the TechStars incubator, I believe. On Jan 27, 5:58 pm, ryan ryanb+appeng...@google.com wrote: On Jan 27, 9:11 am, Peter Cooper petercoo...@pgctesting001.com wrote: I believe in

[google-appengine] A possible way to improve this Google Group

2009-01-27 Thread adelevie
I hope this is in compliance with posting rules etc etc and I know that it is not usually a good sign to start off with such a sentence, so I'll cut to the chase: I have about 20 beta invites available for a service called Aardvark. Aardvark is new application that facilitates user-to-user

[google-appengine] Re: Complex tagging of items

2009-01-27 Thread George Sudarkoff
On Jan 25, 11:17 pm, ryan ryanb+appeng...@google.com wrote: On Jan 25, 11:43 am, Anthony acorc...@gmail.com wrote: If you store the tags as a StringList wouldn't this query work.. WHERE tags = tag1 AND tags IN [tag2,tag3] AND tags != tag4 From the docs it says the IN != do run

[google-appengine] Re: Complex tagging of items

2009-01-27 Thread George Sudarkoff
This is what I have right now for simple 'tag1 OR tag2' cases. But how do you efficiently retrieve items for 'tag1 AND (tag2 OR tag3) AND NOT tag4' with this model? On Jan 27, 12:59 am, Seronja ser...@oplakanets.com wrote: Here's where old good relational databases theory comes in. How will I

[google-appengine] Re: Googe App Engine and Friend Connect...

2009-01-27 Thread anand
Thanks sir! It worked for me. It was great help. Regards Anand On Jan 11, 6:13 am, Jove jovezh...@gmail.com wrote: Hi benzrad, Go ahead adding that code to your app.yaml. It works for my site on GAE. Few more informations: * I put the canvas.htmland rpc_relay.htmlon %AppHome%/media/

[google-appengine] Re: Permanent Unique User Identifier (part 2)

2009-01-27 Thread bowman.jos...@gmail.com
The openid solution is as easy to use as the user api for appengine. In my implementation, I direct the users using a Login using Google link, which sends them to a google page where they click a Continue to sign in button, which sends them back to my site where I finish handling the openid

[google-appengine] Re: GAE datastore insertion rate

2009-01-27 Thread sebastian.ov...@gmail.com
Hi David, accordingly with http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html#Entity_Groups_Ancestors_and_Paths An entity without a parent is a root entity... so you don't need to associate each note to a parent... I'm wondering... when you got these contention

[google-appengine] Re: GAE datastore insertion rate

2009-01-27 Thread iDavid
I got the contention errors, during my first run, using a ReferenceProperty to link a Note to a Device (not a parent). Only after I watched Brett's presentation did I add the device group entity and parent=device code. Adding the device group entity and parent=device code, seems to have solved