i use modified webapp.RequestHandler for handling requests in my app:
class MyRequestHandler(webapp.RequestHandler):
"""
Request handler with some facilities like user.
self.out is the dictionary to pass to templates
"""
def __init__(self, *args, **kwargs):
super(MyRequestHandler, self).__init__(*args, **kwa...
Or, do you have a completely different instance per thread. (Basically, could it be that ThreadLocal is working behind the scenes?)
...
Hi,
I have a Google App engine application that I want to work differently depending upon if it is running in my local dev environment (i.e. with dev_appserver.py) as against running in actual GAE cloud.
Currently I use a flag variable that I manually toggle to achieve that. But I am sure one day I will forget to change it and will lea...
i want to find a webapp framework for validation user , store user,
and has ajax Effect of jquery ,
so ,did you know this simply framework ?
thanks
like this page : http: //digu.com/reg
...
I'm having trouble unpickling objects from Google App Engine. I am running Windows 7. Here is the procedure:
Create a CSV with one of the fields being pickle.dumps([[('CS', 2110), ('CS', 3300), ('CS', 3140)]]), or some similar argument.
The CSV looks something like this:
INFO,2210,"CS 2110, 3300, 3140","(lp0
(lp1
(S'CS'
p2
I2110
tp3...
I must be doing something stupid. I'm running this in Google App Engine:
class MainHandler(webapp.RequestHandler):
def render(self, template_name, template_data):
path = os.path.join(os.path.dirname(__file__), 'static/templates/%s.html' % template_name)
self.response.out.write(template.render(path, template_data)) #...
i need a CAPTCHA framework on google-app-engine
what a CAPTCHA framework you are using .
thanks
like this :http://recaptcha.net/learnmore.html
...
On Windows XP
Just downloaed and unzipped google app engine java sdk
to C:\Program Files\appengine-java-sdk
I have jdk installed in
C:\Program Files\Java\jdk1.6.0_20.
I ran the sample application by
appengine-java-sdk\bin\dev_appserver.cmd appengine-java-sdk\demos\guestbook\war
Then I visited localhost:8080 to find :
HTTP ERR...
i want to find this framework
thanks
...
For instance, if I have robots.txt declared as a static resource, and assuming that the application is stopped, does accessing it cause my application to be started ?
...
Hi,
I'm trying to generate PDF files in a project hosted on GAE.
For now, I use iText and it work fine to create text only PDF.
I really need to add pictures on my pdf. And when I try with iText I catch some Execption talking about AWT and the google white list :
Uncaught exception from servlet
java.lang.NoClassDefFoundError: java.a...
I'm trying to access an object that is linked to by a db.ReferenceProperty in Google app engine. Here's the model's code:
class InquiryQuestion(db.Model):
inquiry_ref = db.ReferenceProperty(reference_class=GiftInquiry, required=True, collection_name="inquiry_ref")
And I am trying to access it in the following way:
linkedObject =...
I had following error from Google App Engine when I was trying to iterate list in JSP page with EL.
Object Manager has been closed
I solved problem with following code, but I don't think that it is very good solution to this problem:
public List<Item> getItems() {
PersistenceManager pm = getPersistenceManager();
Query...
I believe I am getting JDO commit Exceptions due to the transactions nesting although I'm not sure.
Will this detect the situation where I am starting a transaction when another is pending?
PersistenceManager pm = PersistenceManagerFactory.get().getPersistenceManager();
assert pm.currentTransaction().isActive() == false : "arrrgh";...
In my application, I want to store geographical data (longitude and latitude). Then I want to ask "which place is in this region". SQL-like query can't be used, since "Inequality Filters Are Allowed On One Property Only" in GQL link text
Do you know about another solution how to store these data in AppEngine database and ask for them wi...
Hi,
I'm wondering if anyone with a better understanding of python and gae can help me with this. I am uploading a csv file from a form to the gae datastore.
class CSVImport(webapp.RequestHandler):
def post(self):
csv_file = self.request.get('csv_import')
fileReader = csv.reader(csv_file)
for row in fileReader: ...
(1) is this way : http://code.google.com/intl/en/appengine/articles/djangoforms.html
(2) is write by self :
#/usr/bin/env python2.5
#----------------------------
# Datastore models for user & signup
#----------------------------
from base64 import b64encode as b64
from hashlib import md5, sha256
from random import randint
from time im...
which is the best framework to handle file uploads on gae ,
thanks
...
WTForms is a forms validation and rendering library for python web development
and i write this code to check two password is or not same :
from wtforms import Form, BooleanField, TextField, validators
class SignUpForm(Form):
username = TextField('Username', [validators.Length(min=4, max=25)])
email = TextField('Email', [...
I am trying to persist Java objects to the GAE datastore.
I am not sure as to how to persist object having ("non-trivial") referenced object.
That is, assume I have the following.
public class Father {
String name;
int age;
Vector<Child> offsprings; //this is what I call "non-trivial" reference
//ctor, getters, setters...