I'm working on a GAE app. I want to query datastore and retrieve all records between startDate and endDate. Each record has a datetime field. I'm using a query similar to this (the below code is something I quickly grabbed - I'm not near my developer machine.):
Query query = pm.newQuery(Employee.class);
query.setFilter("lastName == las...
Hi,
I've created a table in the Google App Engine Datastore. It contains the following FIELDS(GROUPNAME,GROUPID,GROUPDESC). How do I set GROUPID as the primary key?
My code is as follows:
@Entity
@Table(name="group" , schema="PUBLIC")
public class Creategroup {
@Basic
private String groupname;
@Basic
private ...
Hi All,
If anyone has or is running a Grails application on their server I would appreciate some details on where to go after creating the WAR.
Background
I chose grails because with Google App Engine and the App Engine Plugin deployment should have been trivial. This issue is that there is a bug which makes any application pretty muc...
I'm having trouble getting my domain pointed to my website hosted with google app engine. Here's the background... take care to separate the concepts of "google apps" (domain hosting, email, etc.) and "google app engine" (website framework).
I have a domain that's using Google Apps for Your Domain, let's call it company.com. So my login...
I recently had a hard drive crashed and lost all of my source code. Is it possible to pull/checkout the code that I have already uploaded to Google App Engine (like the most recent version)?
...
I've optimized my code to use only lightweight libraries. I'm even using the low level datastore rather than JDO.
And my cold start CPU usage has dropped from about 5 seconds to about 1.5 seconds. However, the time it takes to respond is often about 4.5 seconds, though it varies a lot.
Here are some lines from my logs:
03-19 09:16...
Hello
This may be a 'Python Web Programming 101' question, but I'm confused about some code in the aeoid project (http://github.com/Arachnid/aeoid). here's the code:
_current_user = None
def get_current_user():
"""Returns the currently logged in user, or None if no user is logged in."""
global _current_user
if not _curren...
Hi all,
I'm using java appengine and the task queue API to run async tasks. I would like to add a task to the task queue but pass a a java object as a parameter. I notic the task options api can add a parameter as a byte[] but I'm unsure how to use it.
1) How would I serialize my object to a byte[]?
and
2) How would the task read the b...
Hello,
I want to call external urls using cron job of Google App Engine. And I also want to induce sleep between cron jobs.
Is that possible?
...
Any body know how to use Datastore Cursors with JPA?
...
Hi,
I have a table with countrycodes, whats the best way to store these 2 digit codes, just in a regular property or in the key_name property?
I thought using key_name will produce faster performance?
Ton.
...
My DAO detaches and then caches certain objects, and it may retrieve them with different fetch groups. Depending on which fetch group was used to retrieve the object, certain fields of that object may be available, or not. I would like to be able to test whether a given field on that object was loaded or not, but I can't simply check w...
I'm trying to ping an ip address and telnet to some port from an app hosted on app engine. I've tried using http://svn.pylucid.net/pylucid/CodeSnippets/ping.py but for some reason it failing
Thanks
...
In addition to the datastore for your specific site, can you also share one datastore between all your websites? (Like connecting to a different MySQL database from your main MySQL database?)
...
How Google App instance can get the list of developers (like in Administration > Developers).
Hard-coding developer's email is a bad idea because nothing lasts forever.
I would like to get a solution in python (because I don't know java).
...
Can anyone tell or define more what is "ancestor" and give an example on it and also what it is for? I just can't grasp what it really is.
Reference: http://code.google.com/appengine/docs/python/datastore/queryclass.html#Query_ancestor
Thanks.
...
We are planning a web application to build on Google's App Engine platform.
Is it good to use the Django 1.1 framework to develop Google App Engine applications?
If not, could you please suggest me the best option available, which has good tutorials and learning resource?
...
Hello,
I wanto call a PHP script using Google App Engine. I just want to execute the script. The script updates a couple of databases on my webhost. But I guess Google App waits for the response. Is there a way by which I can start the script.
The script takes some time and Google App might die during that time.
...
jquery.js source code is not being recognised by browser using my page.html served by Google App Engine as a http:some_request to the SDK, BUT when I load the exact same page.html into the browser directly from my local hard drive as jquery.js all works OK, it is recognized, so I know my path is OK....
In the header of my page.html I ha...
Hi
On my development system, I have python 2.6, python 1.1 and GAE.
I have three projects running on python 2.6 and django 1.1.
And 1 project using GAE, Python 2.6 and django 1.1.
I have heard that, my set-up for running GAE using python 2.6 may create some head scratching problems while deploying it on the production server, beca...