[google-appengine] Re: sorting database entities by two properties

2009-03-29 Thread Bill
Dave's given the solution I'd use. In general, you create properties that map well to the type of queries you're going to use, especially since you can only use inequalities on one property. You do upfront processing if necessary at write time (e.g., the put() override in Dave's solution) so

[google-appengine] Re: memcache won't be flushed after app is redeployed

2009-03-29 Thread Bill
I believe memcache won't be flushed automatically after an app is redeployed. One way you can force a flush on redeploy is by storing the current version ID, os.getenv('CURRENT_VERSION_ID'), into memcache. Then in your main.py, check if the current version is the same as the one in memcache.

[google-appengine] Re: Intercepting Model Creation

2009-03-29 Thread Kugutsumen
Here is another way to check if an instance is saved without checking _from_entity. from google.appengine.ext import db import types class A(db.Model): # works with Expando too name = db.StringProperty(required=True) def __init__(self, _is_new=True, key_name=None, _app=None,

[google-appengine] When will google search engine index my application?

2009-03-29 Thread Nora
Hi, I have uploaded my application a couple of weeks ago on GAE server. When will it be possible to use Google search engine to google my website? Do I need to do anything more to get this service or is it automatic? Thank you very much. --~--~-~--~~~---~--~~ You

[google-appengine] Re: sorting database entities by two properties

2009-03-29 Thread Barry Hunter
According to http://code.google.com/appengine/docs/python/datastore/gqlreference.html you can sort by two (or more) properties. It will just require a new index to be built (which the SDK will create the definition for you) or have a I missed something? On 29/03/2009, manuelaraoz

[google-appengine] Re: When will google search engine index my application?

2009-03-29 Thread Barry Hunter
Just like with any website, make sure you have inbound links so the search engines can fine you. Also make sure your site is setup to be indexed - ie it has search engine friendly urls (avoid the use of javascript for instance) Creating and submitting a sitemap shouldnt hurt either

[google-appengine] Re: Are all ListProperties implicitly indexed?

2009-03-29 Thread an0
Thank you, this is what I've been using; I'm just looking for something better. On Mar 26, 6:12 am, Marzia Niccolai ma...@google.com wrote: Hi, Everything that is query-able must be indexed (http://code.google.com/appengine/articles/index_building.html).  So if you want to store, but not

[google-appengine] Re: sorting database entities by two properties

2009-03-29 Thread manuelaraoz
thanks Gopal, that was just an example... my question was more practical... how can I do that in code? you say: you need to do one sort in datastore , while other in memory how can that be done? thanks! Manuel --~--~-~--~~~---~--~~ You received this message

[google-appengine] Re: sorting database entities by two properties

2009-03-29 Thread manuelaraoz
Thanks to all! I'll try your suggestions and tell you how it came Manuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to

[google-appengine] Can't add record to datastore

2009-03-29 Thread Jim Culver
Hey everyone, I must be doing something stupid, does anyone know why the code below does not add a record to the datastore? The code runs with no errors and line logging.debug(submissions.count()) returns 0 and the code completes as the log contains the entry for logging.debug(finished). Any

[google-appengine] Re: Can't add record to datastore

2009-03-29 Thread WallyDD
I think you might need to put brackets at the end of the put. submission.put() not submission.put On Mar 29, 1:17 pm, Jim Culver jculverw...@gmail.com wrote: Hey everyone, I must be doing something stupid, does anyone know why the code below does not add a record to the datastore?  The

[google-appengine] RSS Language Translation

2009-03-29 Thread RSS Language Translation
Public domain (P) 2009 Davide Rognoni - xml2jsonp - Google AJAX Language API http://riagallery.appspot.com/rss-language-translation --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post

[google-appengine] Named groups in URL mappings regexp

2009-03-29 Thread Tito
I would like to use named groups in the regular expressions passed on to the webapp.WSGIApplication constructor. The main reason is that I need to pass HTTP parameters embedded in the URL in a different order than the positional parameters in the corresponding get() method of the RequestHandler

[google-appengine] Re: Can't add record to datastore

2009-03-29 Thread Jim Culver
Thank you so much, that did the trick. On Mar 29, 1:24 pm, WallyDD shaneb...@gmail.com wrote: I think you might need to put brackets at the end of the put. submission.put() not submission.put On Mar 29, 1:17 pm, Jim Culver jculverw...@gmail.com wrote: Hey everyone, I must be doing

[google-appengine] Re: RSS Language Translation

2009-03-29 Thread Jyoti Shete-Javadekar
Nice app :) On Sun, Mar 29, 2009 at 12:30 PM, RSS Language Translation davide.rogn...@gmail.com wrote: Public domain (P) 2009 Davide Rognoni - xml2jsonp - Google AJAX Language API http://riagallery.appspot.com/rss-language-translation -- -Jyoti www.videonym.com

[google-appengine] Problem with google app engine

2009-03-29 Thread Kuriashkin Victor
Hi, Sorry, question only for gooel app engine support, will not provide url for all yet. I'm using django with google app engine, all works fine (with app.en. restrictions) and got a problem with app engine: step-by-step it looks like: 1) normal working (including exceptions processing,

[google-appengine] Versions Problem

2009-03-29 Thread Alex
I'm having a bit of problem with my app -- somehow my application has lost its ability to set a default version. I've got two versions up, 1 and 2, and neither is set as the default, so my main app site (*.appspot.com) doesn't work but both of my version sites (1.*.appspot.com and

[google-appengine] Role Based Access Control in GAE?

2009-03-29 Thread pbraogspa...@gmail.com
First of all, this is my first post to this list and I am also relatively new to GAE (playing with it and Django for a couple of weeks). I have also searched the GAE docs as well as this list's discussions and haven't found any help with my question. So here is my question: 1) I have a simple

[google-appengine] GAE support IPV6?

2009-03-29 Thread 李 锐
http://tech.slashdot.org/article.pl?sid=09/03/26/1753259from=rss can i visit my aplication over ipv6 thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send

[google-appengine] GQL query

2009-03-29 Thread Ritesh
Hi, I am a newbie so apologies if this is silly, I need to do a query on my datastore for partial strings but not something that begins with but may be part of the string. Like I have Last Name and First Name as one column Smith, Jhon Python-Micheal Smith, Jhon Doe, Jhon I need to query where I

[google-appengine] Query for a (Self)ReferenceProperty field set to null value

2009-03-29 Thread Mike
Hello, I'm playing around with AppEngine and seem to get around many of its restrictions after some time. But now I'm stuck on this issue for several hours: I have a tree of groups. Every group has several sub-groups etc. The whole thing is stitched together with a SelfReferenceProperty called

[google-appengine] import error - attempt to import from directory outside of my project root

2009-03-29 Thread George
Hello, I have this code: import os import cgi import sys import wsgiref.handlers from google.appengine.ext import webapp print Beginning for x in sys.path: print x try: from gpy import * except: print Couldn't import exit() ...which when run from localhost:8080 outputs this:

[google-appengine] File upload-Mail Attachment

2009-03-29 Thread nrworld
Hi, I'm trying to build an app which will let user upload a file and send it to a mail id. Now, my form'd file input element's name is file. input name=file type=file/input So I am using the following line to attach the file in the message.

[google-appengine] Re: When will google search engine index my application?

2009-03-29 Thread Prashant Gupta
it is automatic. On Sun, Mar 29, 2009 at 3:29 PM, Nora noorhanab...@yahoo.co.uk wrote: Hi, I have uploaded my application a couple of weeks ago on GAE server. When will it be possible to use Google search engine to google my website? Do I need to do anything more to get this service or is