I´m using Reportlab to generate a PDF.
Can´t retrieve a photo from a model.
#Personal Info
p.drawImage('myPhoto.jpg', 40, 730)
p.drawString(50, 670, 'Your name:' + '%s' % user.name)
p.drawImage (50, 640, 'Photo: %s' % (user.photo))
When i create on generate PDF, i got this error:
Traceback (most recent call last)...
I've read in multiple locations that GAE lifted the 1000 record limit on queries and counts, however, I can only seem to get a count of the records up to 1000. I won't be pulling more than 1000 queries at a time, but the requirements are such that I need a count of the matching records.
I understand you can use cursors to "paginate" th...
What correlation is there between datastore and task queue downtime?
(I'd like to use the task queue to defer some operations in the case of datastore downtime.)
...
The app engine datastore, of course, has downtime. However, I'd like to have a "fail-safe" put which is more robust in the face of datastore errors (see motivation below). It seems like the task queue is an obvious place to defer writes when the datastore is unavailable. I don't know of any other solutions though (other than shipping ...
Does anybody have an idea why Google App Engine permits only a single thread of execution for a deployed application?
I personally believe that it has something to do with the predictability of an application so that Google can size its performance more reliably. There does not appear to be any rationale posted on Google's site regardin...
I have two classes, Truck and Tweeter, where every Truck must have a Tweeter and every Tweeter can have any number of Trucks associated with it. All I want is to be able to store a reference of the associated Tweeter in all my Truck objects so I can access it without having to explicitly look it up. Given a Tweeter, I don't need to kno...
I have problem mapping the parent/child relationship in JPA and currently down with the follow error message -
java.lang.IllegalArgumentException: org.datanucleus.exceptions.NucleusException: App Engine ORM does not support multiple parent key provider fields.
at org.datanucleus.jpa.EntityManagerImpl.find(EntityManagerImpl.java:232)
...
Hi there,
I'm using a google app engine application on my domain with google apps.
Because of China blocking google apps, I'd like to hide google apps by putting a layer between my domain and google apps.
Is there a way I can do it?
...
hi all . I want to develop some web apps using Google app engine. I had deployed a guest book application which was their in "gooleappengine" folder by changing its ID.and also was successful.This is simple one.But not getting how to develop complex web apps. Can anyone please suggest me any good Tutarial or example codes Or any books to...
How would you implement simple password protection on a Google App Engine application? No users authentication, just simple requirement to enter a password in order to open specific page. The other requirement is that the target page should not be displayed if its URL is entered directly.
I'm looking for a solution using Python.
...
I need to change values for an entry, but the following code doesn't work.
logList = db.GqlQuery("SELECT * FROM Log ORDER BY date DESC LIMIT 1")
logList[0].content = "some text"
db.put(logList)
The value for the newest element doesn't change when I run this. I checked the output with Print, it gives correct value (to what the content...
Is it possible to select from a google app engine db where the key of a db.Model object is not in a given list? If so, what would be the syntax?
Ex of a model class:
class Spam(db.Model):
field1 = db.BooleanProperty(default=false)
field2 = db.IntegerProperty()
Example of a query which I'd like to work but can't figure out:
...
I'm trying to connect my Google App Engine webapp to the Google Latitude API using OAuth. I have it working in my dev environment, but when I try to test the app using Google's dev_appserver.sh, I get the following error:
java.security.AccessControlException: access denied (java.net.SocketPermission www.googleapis.com resolve)
Is this...
I'm unsure of a good way to import data that I have from an old SQL-based application into app engine (big table). I'm very confused though I'm sure I'm missing something simple.
The data is not just a simple spread sheet. It consists of customers, appointments, and a few other things. They're all tied together by keys, so that adds a l...
I'm wondering what the best course of action would be for the following problem.
I have an app and users can enter some information in an html form. I want to set something up where users can enter information in the form even before they have created an account. If they enter information they will be redirected to a login page and the...
I cant imagine any more methods to solve my problem. Here's a thread I made yesterday that describes the parent and child class in detail: http://stackoverflow.com/questions/3800450/many-to-one-unidirectional-gae-jdo-relationship-amongst-entities
I'm trying to add a Truck and persist it, but the persistence manager insists that the p...
I want to use jinja2.PackageLoader on Google App engine, but that appears to depend on pkg_resources, which wasn't added until Python 2.6. Am I Out of luck?
...
Are there any Clojure http libraries that use the java.net.URLConnection class? Reason I'm asking is because that's the only accepted way to make http connections on Google App Engine, according to the docs.
I'm currently using com.twinql.clojure.http for my GET requests, but I don't think that uses the right interface because I'm getti...
What is the best way to store lists (collections) of simple types in Google App Engine for Java?
I usually use something like that:
public class Person {
// ....
@Persistent(serialized = "true")
private List<Date> DatesList;
// ....
}
I am not sure how it is stored in DataStore, atomically or as a list of references? Hence wa...
I was reading a description of a project on Github that is a Python-based content delivery network.
Why is it important that it uses a "reverse caching proxy" - and what does that mean in this context?
...