this is my code :
#coding:utf-8
import cgi,os
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app
from whoosh import store
from whoosh.fields import Schema, STORED, ID, KEYWORD, TEXT
from whoosh.index import getdatastoreindex,create_in
from ...
I deployed an app to Google App Engine. When I navigate to it, I get this:
Error: Server Error
The server
encountered an error and could not
complete your request.
If the problem persists, please report
your problem and mention this error
message and the query that caused it.
All the pages do this. appcfg.py uploa...
Looking through the Google App Engine source, I noticed that the tab depth is 2 spaces instead of the conventional 4. Is there some wisdom behind this, or is it just someone's preference?
(Maybe it's trivial, or maybe Google knows something that isn't immediately obvious.)
UPDATE I wasn't suggesting that it ran differently based on th...
I am trying to upload data using appcfg.py upload_data. My CSV was encoded as ANSI, but Alex Martelli said that it should probably be UTF-8. So I switched to that (using Notepad++).
This hit an error at the very first character of my file:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)...
This gives me a frequency of words in a text:
fullWords = re.findall(r'\w+', allText)
d = defaultdict(int)
for word in fullWords :
d[word] += 1
finalFreq = sorted(d.iteritems(), key = operator.itemgetter(1), reverse=True)
self.response.out.write(finalFreq)
This also gives me useless words like "the" "an" "a"
My qu...
We are planning to use Spring Roo to generate GWT artifacts, would it be possible to use our RDBMS database or should the application rely on the app engine datastore if we eventually deploy the application on google app engine.
...
I'm trying to use the Memcache Viewer in the App Engine Dev Console to view keys in a specific namespace. The obvious syntax of namespace.key is not working; I haven't been able to find documentation describing specific usage. Is this possible?
...
I installed the Google App Engine on my mac some time ago and I'm not using it now. The Google Updater thing asks me to update the GAE every now and then and it's getting on my nerves. How do I uninstall the GAE? I can't find anything to do that.
Thanks.
...
Background::::
I'm working with google app engine (GAE) for Java. I'm struggling to design a data model that plays to big table's strengths and weaknesses, these are two previous related posts:
http://stackoverflow.com/questions/3120192/database-design-google-app-engine
http://stackoverflow.com/questions/3125115/appointments-and-line...
I would like to make some request-wide data available in my app engine application.
Examples:
The URL for which the request was made.
Authentication information.
I see that ThreadLocal is on the whitelist: http://code.google.com/appengine/docs/java/jrewhitelist.html
Is ThreadLocal a good and safe way to make this information avai...
I'm trying to implement a basic 'search' system across multiple entities. I know that there is no like operator support in GQL, but that leaves with the problem of an efficient, straightforward way of performing searches across my entities.
What is the idiomatic way of performing such searches in Google App Engine/Java ?
...
I'm doing a very simple upload form to my Google App Engine application. In the client GWT code I have something like:
final FormPanel uploadForm = new FormPanel();
uploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);
uploadForm.setMethod(FormPanel.METHOD_POST);
uploadBtn.addClickHandler(new ClickHandler() {
@Override
...
Hi All,
Is there any way to alter the Property names in the Google application engine for a Kind, or in other words is there a way to alter the column names of a table in Google application Engine (though it follows a different way to handle the data)? I am using python.
Please suggest.
Thanks in advance.
...
Does Google App Engine has a support for Joomla?
...
I'm running some load tests using JMeter to get an idea of how my application performs under load on Google App Engine (Java).
When I hit around 100 virtual users my response time starts dropping, and I notice "throttle_code=4" appearing in the GAE log files (see below).
Does anyone know what this means? Is the fact that I'm making mu...
I'm using gae-sessions in my App Engine program, and I have the following function:
def get_token():
session = get_current_session()
access_token = session.get('access_token', None)
The code that sets the session up is simple enough:
session = get_current_session()
session['access_token'] = token
I've put error trapping in ...
What is the best method to create a database for the given example model and assign each entry with a unique key/name which I already have and to overwrite it if the given key/name shows up again. From what I read you are supposed to use keyname? But I am not getting it to overwrite.
class SR(db.Model):
name = db.StringProperty()
...
I'm trying to persist a collection of embeddable/serializable objects as one of the fields in my entity. I've seen the trick where you wrap the list in another serializable class and store the whole thing as a lob, but that feels like a hack. As far as I can tell, the jpa way to do this is with an @ElementCollection(targetClass=BlaBlaB...
I'm trying to use Struts 2 framework for my Google App Engine project. I have configured the struts framework properly and I have created an action in struts-config.xml file as:
<package name="myproj" namespace="/myproj" extends="struts-default">
<action name="login">
<result>/login.jsp</result>
</action>
And I'm trying to access ...
I'd like to give GAE Testbed a try, but am running into the following error after completing the instructions on its homepage.
$ nosetests --with-gae
...
ImportError: No module named dev_appserver
I've confirmed that this happens in both a virtualenv and outside of one.
...