I would like to have AppEngine render an html page that auto scrolls to an html anchor point. I'm not sure how and where to put that type of instruction.
template_values = {
'foo' : 'foo',
'bar': 'bar',
'anchor' : '#MyPageAnchor' # ?? Something like this...
}
path = os.path.join(os.path.dirname(__file__), file...
In AppEngine, I have a form that prompts a user for a date. The problem is that when the clicks enter there is an error: "Enter a Valid Date"
How do I make my Form accept (for example) %d-%b-%Y as the date format?
Is there a more elegant way to accomplish this?
# Model and Forms
class Task(db.Model):
name=db.StringProperty()
due...
My class looks like this :
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class Contact_Info i...
I know the datastore is shared amongst different versions of the same app. Is the memcache?
...
Hi,
I have a rather large class stored in the datastore, for example a User class with lots of fields (I'm using java, omitting all decorations below example for clarity):
@PersistenceCapable
class User {
private String username;
private String city;
private String state;
private String country;
private String favC...
Google App Engine is yelling at me about the high amount of quota that this code is using.
What can I do to make it less heavy?
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException, ServletException {
PersistenceManager pm = PMF.get().getPersistenceManager();
HttpSe...
I have a google app engine app that has been running for some time, and some javascript code that checks for a login cookie has suddenly stopped working. As far as I can tell, NO code has changed.
The relevant code uses the jquery cookies plugin (jquery.cookies.2.2.0.min.js)...
// control the default screen depending
// if someone is ...
Hello everybody!!!
I have installed twill on my computer (having previously installed Python 2.5) and have been using it recently.
Python is installed on disk C on my computer: C:\Python25
And the twill folder (“twill-0.9”) is located here: E:\tmp\twill-0.9
Here is a code that I’ve been using in twill:
go “some website’s sign-in p...
When I run this code on my computer with the help of "Google App Engine SDK", it displays (in my browser) the HTML code of the Google home page:
from google.appengine.api import urlfetch
url = "http://www.google.com/"
result = urlfetch.fetch(url)
print result.content
How can I make it display the page itself? I mean I want to see tha...
Hi,
I'm trying to make a group entity. Something like:
class User {
}
class UserColor {
}
...
Key key = new KeyFactory.Builder(
User.class.getSimpleName(), username).
.addChild(UserColor.class.getSimpleName(), ???).getKey();
I know the unique username up-front to use for the key of the User object. But I just want app engine...
i want to find some source code about 'group'(like group app in pinax)
or
'bbs forum' on google-app-engine,
has anyone know this ?
thanks
...
i want to find a framework to make my work simple on gae ,
has it ?
thanks
i found one, but not very good http://code.google.com/p/appengine-framework/
...
I am creating an application which requires twitter account , after I get credentials from an user , I want to check if that account exists or not. How can I do this with twitter4j ???
Note: I am using Google appengine
...
I am using Google App Engine Eclipse Plugin and in a project I try to create entity manager using jpa. but eclipse gives me the error "Provider error. Provider:org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider" How can I solve this issue?
...
I have the following class objects in Google App Engine's dadastore, I can see them from the "Datastore Viewer " :
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;...
I'm using Django on Appengine. I'm using the django reverse() function everywhere, keeping everything as DRY as possible.
However, I'm having trouble applying this to my client-side javascript. There is a JS class that loads some data depending on a passed-in ID. Is there a standard way to not-hardcode the URL that this data should come...
(I tried asking this on the GAE forums but didn't get an answer so am trying it here.)
Currently to upload blobs, the app engine's blob store service creates a unique one-
time URL that a user can post blobs to. My requirement is that I only
want authenticated / authorized users to post blobs in my application. I can achieve this curren...
I have the following kinds/relationships in my datastore:
UserAccount 1-to-1 PersistentLogin 1-to-many PersistentLogins
They are all in the same entity group and UserAccount is the parent. Should I expect to see the other kinds in the datastore viewer? Currently, I only see UserAccount entities, but I'm pretty confident the other enti...
import
com.google.appengine.api.labs.taskqueue.Queue;
import
com.google.appengine.api.labs.taskqueue.QueueFactory;
import static
com.google.appengine.api.labs.taskqueue.TaskOptions.Builder.*;
// ...
Queue queue = QueueFactory.getDefaultQueue();
queue.add(url("/worker").param("key",
key))
in the c...
Hi,
I am reading the docs for Key generation in app engine. I'm not sure what effect using a simple String key has over a real Key. For example, when my users sign up, they must supply a unique username:
class User {
/** Key type = unencoded string. */
@PrimaryKey
private String name;
}
now if I understand the docs correctly...