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
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
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:
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)
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
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
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,
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.
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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
31 matches
Mail list logo