Hi,
I'd like to use the URL fetch service for app engine (java). I'm just sending a POST to one of my own servers from a servlet.
AppEngine -> post-to: https://www.myotherserver.com/scripts/log.php
I'm reading the url fetch doc:
Secure Connections and HTTPS
An app can fetch a URL with the HTTPS method to connect to secure s...
I have a model which looks like this:
class test (db.Model) :
tagList = StringListProperty()
siteName = StringProperty()
I am storing tags in "tagList" and would like to run a query where I can get all test entities containing a particular tag in their tagList.
Is this possible?
...
I am facing a problem with file upload.I have used Apache Commons
servlet file upload for uploading the file. Though the file is getting
uploaded and the data is getting stored on the local server(http://
127.0.0.1:8888/_ah/admin/datastore) but it is not going to the Google
App Engine datastore.
What I am doing is loading
the file as a ...
Hi all,
Is reverse referencing possible in Google app engine? I am using app engine patch to develope an application and my model is something like:
class Portfolio(db.Model):
user = db.ReferenceProperty(User)
pic = db.BlobProperty()
Now, If I have the user object, is it possible to retrieve the pic associated with the users po...
GAE comes with an inbuilt jetty webserver for testing purpose.Can it be configured to accessed within our LAN?
I can access it using http://localhost:8888 or http://127.0.0.1:8888 but can't access using http://192.168.1.201:8888 (This my local LAN ip)
why?
...
I am new to GAE, and to JDO, I am getting stuck with how to update data.
Using the code below, if I do a getAll(), then a get() on an object, then alter an attribute for that object returned by get(), then a getAll(), the second call to getAll() returns the original un-altered object.
I tried doing a flush() but that doesn't seem to he...
ex: i want to clean the "script" tag , but i want to keep the 'a' tag ,
so what lib you using to do this .
and i use jquery cleditor for WYSIWYG HTML editor , can it do this for me automatically ?
thanks
...
In my current project, I have two models, Version and Comment. There is a one-to-many relationship between the two; each Version can have many Comment and the Comment model has a ReferenceProperty to record which Version it belongs to:
class Comment(db.Model):
version = db.ReferenceProperty(version.Version, collection_name="comments...
I am writing a small app that uses the GAE. I have parts of my app that are for administrative use only. I have two options using login: admin option in the app.yaml or google.appengine.api.users.is_current_user_admin() in python code. The basic authentication is sufficient for my case.
Which solution is better?
The advantage of using ...
I am learning GAE and am getting a bit stuck. If I use the following, with a finally to make sure the persistence manager is closed, I get an exception when trying to actually read the Note objects:
public class Notes {
public List<Note> getAll() {
PersistenceManager pm = PMF.instance().getPersistenceManager();
try {
...
Hello All,
This is the piece of code I am using to generate a template:
path = os.path.join(os.path.dirname(__file__), 'tag.html')
tag = cgi.escape(self.request.get("tag"))
query = DeliciousTags.all()
query.filter("tags =", tag)
query.order('creation_date')
results = query.fetch(20)
siteList = ''
if results :
siteList = resul...
Hi,
I have been working on a google app engine project for a little while. I now have two Indexes that show status ERROR, and I think this is causing me to have other issues within my program. How do you remove these indexes? I have tried changing my datastore-indexes-auto.xml file but nothing has worked at removing these indexes.
T...
How do you query for a list of objects stored using GAE, where a Set field contains a specified string? ie Imagine this imaginary example:
@PersistenceCapable
class Photos {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
String name = "";
Set<String> tag = new Hashset<String>(...
I have a list of tags defined in a StringListProperty().
The DB contains around 1 million entries and each entry has around 20 different values in the list.
e.g.
a = [ 'ab', 'bc', 'ca', 'x', ....]
b = ['x', 'm', 'a', .... ]
I am using Google App Engine so I have constraints on running batch jobs ... (only 30 sec allowed)
Here is m...
I have been debugging an app in eclipse/jetty, and it has a bunch of invalid objects. How do i clear them out? Where are the data entities actually stored when running on your local machine??
...
Hi All,
I am working on a Google app engine project where I have saved some images in the datastore.
Now I have to resize these images and render them to the template. I have successfully fetched the images but I am not getting,how to render them with other data dictionaries to the template. I am using App engine patch with GAE.
Follo...
I'm going to develop a small web application on Gae with a registration section, login\logout and stuff like that.
Since Google app Engine does not support session out of the box and i don't want to restrict access using google Accounts, i am forced to pick a Framework that offers this kind of facilities.
My choices are:
Web2py
Djan...
I have model which looks like this:
class Example (db.Model) :
name = db.StringProperty()
tags = db.StringListProperty()
I first query for a tag to get the list of entities which have them:
results = Example.all().filter("tags =", tagSearch).fetch(100)
This gives me a list of entities containing the "tagSearch" in their "tags" li...
Hello!
I have a models in different files (blog/models.py, forum/models.py, article/models.py). In each of this files I have defined model classes with application prefix (BlobPost, BlogTag, ForumPost, ForumThread, Article, ArticleCategory).
Also I have appliation - comment, for adding comment attached to any model object. For example,...
Hi,
I'm looking to store entities using GAE Java which have 1-many tags. I would like to display a tag cloud, so will need to know how many times each tag occurs (can't use aggregate functions and group by on GAE to do this like I would in SQL). And when I click a tag I would like to retrieve all entities with the selected tag.
Does ...