I need to iterate a List<myClass> in a jsp. This is how I obtain the list:
(when I commented it, the page loaded just fine).
<%
List<myClass> pjList = null;
StringBuffer ejbQuery = new StringBuffer();
EntityManagerFactory emf = Persistence.createEntityManagerFactory("myPersistence");
EntityManager em = emf.cre...
django.forms is very nice, and does almost exactly what I want to do on my current project, but unfortunately, Google App Engine makes most of the rest of Django unusable, and so packing it along with the app seems kind of silly.
I've also discovered FormAlchemy, which is an SQLAlchemy analog to Django forms, and I intend to explore t...
I'm working on a Google AppEngine project and I've changed my data format, so the old data needs to be wiped out. On AppSpot that's no problem: I use the data viewer to clobber it (the amount of data is small enough that I can use this). But how would I delete data from the local store (the data I see when I run it locally)?
...
I'm trying to teach myself python using Google's AppEngine, and I can't get the dev server running. I get this error:
Traceback (most recent call last):
File "/opt/google_appengine/google_appengine_1.2.7/dev_appserver.py",
line 60, in
run_file(file, globals()) File
"/opt/google_appengine/google_appengine_1.2.7/dev_apps...
Hi. I am in the early stages of developing a sports statistics website (ultimate frisbee) and would like to know your opinions if Google App Engine is right for me.
I am writing it in Python using Django and have been comfortable with standard RDBMS for years but this site is a long term project and I am expecting very large amounts of ...
Hi,
I would like to mention before hand that I am a novice to python and with that to python platform of GAE. I have been finding this very strange error/fault when I am trying to get an entity using its key ID...
Here's what I do,
I am querying the datastore entity model UserDetails for the key corresponding to the user name retrieved...
I need to filter entities based on one of their ListProperties having a certain element present. So kind of like:
entities.filter('listProp IN ',element) except where listProp and element are reversed if you see what I mean.
Anyone know how to filter like this?
...
I'm trying to write a small tool to upload Pictures from Google App Engine to Picasa. Fetching the image works, but when i try to upload it i get the error "TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str"
The Code basically looks like this:
def getfile(url):
result = urlfetch.fetch(url)
if re...
Is there a good way to store a Python dictionary in the datastore? I want to do something like the following:
from google.appengine.ext import db
class Recipe(db.Model):
name = db.StringProperty()
style = db.StringProperty()
yeast = db.StringProperty()
hops = db.ListofDictionariesProperty()
Of course, that last line doesn't ...
Hi all,
I have this code to make a resize of an uploaded image as a thumbnail.
project.thumbnail = db.Blob(images.resize(self.request.get("img"),188,96))
However, it does not do what I want. It always resize the image to have the fixed height of 96.
Instead, I want to have all the resized images to have the same width of 188.
What ...
This is a little embarrassing, but I have not been able to find good resources on this topic.
I'm working on a Google App Engine application that requires sophisticated time zone conversions. Since I am nowhere near the imposed quotas, I have opted to go with PyTZ. However, I must be doing something wrong. What I've done so far is:
Do...
I'm using the Google App Engine helper for Django. This helper includes the following lines in its template:
from appengine_django.models import BaseModel
from google.appengine.ext import db
# Create your models here.
Should I derive my models from db.Model or from BaseModel?
I've tried both and I don't see any difference. Both seem ...
Hi,
I am getting this errorpage after uploading my application to the google app engine and calling it in the browser.
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 507, in __call__
handler.get(*groups)
File "/base/data/home/apps/bulkloader160by2/1-5.3376956...
Hi,
For some reason I can't get static_dir to work. In my app.ymal I have:
- url: /ui
static_dir: ui
- url: /dump
static_dir: dump
Loading static files from /ui works (i.e /ui/images/logo.png). But when I try to access something from /dumo I just get:
INFO 2009-11-12 14:03:55,497 dev_appserver.py:3034] "GET /dump/ka...
Hi all
I'm having a spot of bother with Python (using for app engine). I'm fairly new to it (more used to Java), but I had been enjoying....until now.
The following won't work!
class SomeClass(db.Model):
item = db.ReferenceProperty(AnotherClass)
class AnotherClass(db.Model):
otherItem = db.ReferenceProperty(SomeClass)
As far as...
I've just started playing with Google App Engine using php via Quercus.
I'm not going to be moving my complete app over to app engine, but am thinking of serving up some widgets and api stuff via app engine.
At the same time, I will be maintaining my databases in mysql as I've got that running on a seperate server.
I make all sorts of...
Is there a way to do something like the following in Django templates?
{% for hop in hops%}
<tr>
<td>{{ hop.name }}</td>
<td>{{ hop.mass }}</td>
<td>{{ hop."boil time" }}</td>
</tr>
{% endfor %}
The hop."boil time" doesn't work. The simple solution is rename the key boil_time, but I'm interested in alt...
Hi guys!
I am working in a small app in the Google App Engine (Python), which uses the Google Data API in order to create a new calendar in a Google account and populate it with some events.
The events that I am using are parsed from another place, and they have the date in the Europe/Stockholm timezone, (I think it is CEST or CET).
T...
Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example:
items = db.GqlQuery("SELECT __key__ FROM Items")
returns an object containing the keys:
<google.appengine.ext.db.GqlQuery object at 0x0415E210>
I need to compare it to an array of keys t...
Hi,
I'm trying to render templates of an html-page that contains swedish characters "åäö" but when it renders in the web browser it ends up with "�". The page renders in UTF-8.
Is there any way to workaround this or do I need to write the chars as html-code?
Also any pointers to the best support for multi-lang site?
..fredrik
...