[google-appengine] Debug log retention period

2009-06-15 Thread David Wilson
Hi there, I seem to remember reading in the documentation that request logs are kept around for 90 days. Does literally apply only to request logs? Today on trying to determine what happened to a user, I received this message while trying to search the debug logs: Last record searched: 06-12

[google-appengine] Re: How to reference model property with a variable?

2009-06-06 Thread David Wilson
value = getattr(model_instance, property_name) or setattr(model_instance, property_name, value) 2009/6/6 Ethan Post : > I want a method which takes a model object and a dictionary and adds a new > record to the model using the the dictionary. The problem is I don't know > how to refer to model

[google-appengine] Re: Port 8080

2009-06-05 Thread David Wilson
Are you running any kind of personal firewall product? 2009/6/5 andrijaperovic : > > Hi, > > I have downloaded the Java SDK and Eclipse plugin. I was following > along with the tutorial for creating the guestbook application (or > rather running the GuestbookServlet.java), but when I do Run->Debu

[google-appengine] Re: Gmail API?

2009-06-05 Thread David Wilson
If all you need is access to the user's address book, the Google Contacts API works for that AFAIK: http://code.google.com/apis/contacts/ 2009/6/5 GenghisOne : > > Is there an API for Gmail and if so is there some documentation that > explains how to use it? > > Thx much. > > > -- It is

[google-appengine] Re: Sender e-mail addresses travesty

2009-06-01 Thread David Wilson
Anyone? I've now processed 33 signups using my personal e-mail address. This-is-going-on-your-permanent-record'ly, David 2009/5/31 David Wilson : > Hi there, > > I appear to have gotten myself thoroughly confused as to how I go > about setting up extra sender addres

[google-appengine] Sender e-mail addresses travesty

2009-05-31 Thread David Wilson
Hi there, I appear to have gotten myself thoroughly confused as to how I go about setting up extra sender addresses for an application. Back when I last looked at this, it was apparently as simple as inviting those extra addresses to develop the application, but now it seems I need SMS verificati

[google-appengine] Re: Why should I use self.response.out.write?

2009-05-30 Thread David Wilson
rs in a path then I woul > get them by path and name instead of by key, right? > > On 30 מאי, 15:16, David Wilson wrote: >> 2009/5/29 Shedokan : >> >> >> >> >> >> > TO make things faster I made two Classes: >> > this one for the basic file

[google-appengine] Re: Why should I use self.response.out.write?

2009-05-30 Thread David Wilson
5/23#ae-trust-detail-datastore-query-latency > > and I list all files in a folder like this: > db.GqlQuery('SELECT * FROM Object WHERE path= :1',path) > > if only I could select parts of the file and not all of the info like > SQL: > SELECT name, PATH from ... > >

[google-appengine] Re: Why should I use self.response.out.write?

2009-05-29 Thread David Wilson
the php version > and 500ms in the python version so python is two times slower than the > php version. > but I guess it's because I have to store the files in the datastore > and not in real directories. > > well thanks anyway. > > On 29 מאי, 04:32, David Wilson wro

[google-appengine] Re: Why should I use self.response.out.write?

2009-05-28 Thread David Wilson
; t1 = time.time() ; db.get(db.Key.from_path('Foo', 1234)) ; print >>> (time.time()-t1)*1000 12.839233 David. 2009/5/29 Shedokan : > > Thanks, but does self.response.out affects speed very much? > I couldn't benchmark it, strange... > > > On 28 מאי, 2

[google-appengine] Re: gwave vs a waveform

2009-05-28 Thread David Wilson
It sounds like your product just got a whole load of free publicity, if you play it right. :-) David. 2009/5/28 Nash-t : > > I'm not accusing anybody of anything but from what I can see of the > new wave product, it looks a lot like my waveforms. They both are > essentially enhanced structured

[google-appengine] Re: Why should I use self.response.out.write?

2009-05-28 Thread David Wilson
Using self.response.out will also delay sending your entire response until it is sure to succeed. If you start generating output using 'print', and then e.g. a Datastore request times out, or a bug in your code is triggered, you have no chance to display a friendly error message. Instead the user

[google-appengine] Re: time and date sync service in google cluster

2009-05-28 Thread David Wilson
Hey cryb, Going by a *very* shoddy test a few months ago, _most_ nodes seem to be within a second of each other, although I did get one or two requests that were +/- 10 seconds off average. Based on that, it's fair to expect around one second's accuracy most of the time. In any case, I've since

[google-appengine] Re: How to Convert a time.struct_time into a db.DateTimeProperty field?

2009-05-27 Thread David Wilson
Hey Neal, Try: dt = datetime.datetime.fromtimestamp(time.mktime(struct_time)) your_model.your_dt = dt David 2009/5/27 NealWalters : > > Also tried this: > mytable1.eventStartedDateTime = time.mktime(fixdate(xmlDate)) > > still gives error: > > Traceback (most recent call last): >  File "DateC

[google-appengine] Re: Path from Key

2009-05-26 Thread David Wilson
Hey Colin, I've been using this: def key_to_path(model): key = model.key() output = [] while key: name = key.name() if name is None: output.append(key.id()) else: output.append(name) output.append(key.kind()) key = key

[google-appengine] Re: Testing same-origin dependent apps in production.

2009-05-20 Thread David Wilson
For the archives, this simple mod_proxy setup appears to work perfectly: ServerName www-staging.domain.com ProxyPassMatch (.*) http://staging.latest.appid.appspot.com$1 ProxyPassReverse / http://staging.latest.appid.appspot.com/ David 2009/5/19 David Wilson : > Hi there, >

[google-appengine] Testing same-origin dependent apps in production.

2009-05-19 Thread David Wilson
Hi there, I'm coming close to making my application live, and find myself worrying about how I'll safely roll out changes to it in the future. My problem is that I can't use *.appspot.com alternative version URLs for testing, since the application relies on setting cookies that another component

[google-appengine] Re: Google app engine issues

2009-05-15 Thread David Wilson
Hey Paul. Are you authenticating, or querying the API anonymously? Anonymous queries regularly get "rate limit exceeed" errors from AppEngine, since Twitter limit IP addresses to 100 queries per hour, and AppEngine urlfetch service only makes requests from a small set of addresses. The solution

[google-appengine] Re: Application Identifiers

2009-05-13 Thread David Wilson
Hey Sri, For whatever strange reason, App IDs that conflict with Gmail usernames are reserved by default. That means if legendofthefiveri...@gmail.com is somebody's e-mail address, you can't use it for your appspot domain. David 2009/5/12 Sri : > > Does GAE place any restrictions on app engine

[google-appengine] Re: PyCrypto Access

2009-05-05 Thread David Wilson
Seems there is native code there for various ciphers and hashes. Just include the Python parts of PyCrypto in your project. Try running: [ x for x in sys.modules.keys() if 'ypt' in x ] on http://shell.appspot.com David 2009/5/5 Devel63 : > > What??  How does this reconcile with the 1.2.1

[google-appengine] Re: sort on _key_ out of order

2009-04-18 Thread David Wilson
 am, David Symonds wrote: > On Sat, Apr 18, 2009 at 3:21 PM, David Wilson > > wrote: > > Is this expected behaviour? and thus do i need to always give a > > key_name to guarantee order? this creates scaling issues for order > > counter (which is probably why its not in o

[google-appengine] sort on _key_ out of order

2009-04-17 Thread David Wilson
Hi, Our myspace application is now running live with an app engine back end, but im seeing a few out of order comment and event lists. I've tracked the issue to the fact were using a sort on _key_ to order the data by date, But new data being put into the datastore does not seem to be given i

[google-appengine] Re: Suggestion: delete google-appengine group.

2009-04-17 Thread David Wilson
2009/4/17 David Wilson : > > Nip the problem in the butt! Hah, I meant bud. :) David. -- It is better to be wrong than to be vague. — Freeman Dyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[google-appengine] Suggestion: delete google-appengine group.

2009-04-17 Thread David Wilson
This might seem drastic, but it will solve the problem of lots of Java and Python-specific stuff hitting this group. I think it would be less of a crime if language-independent issues were discussed in the Java/Python groups, rather than the other way around, because in this solution, a pure-Java

[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-07 Thread David Wilson
2009/4/8 Andy : > > Perhaps psychiatric help would be a better option than disrupting > Internet forum by openly acting out your Google employee fantasy. > Great idea, Andy! Now, how about giving all 6958 of our inboxes a break from your ego, eh? Thanks, David. > > > > -- It is better to

[google-appengine] Re: Data Modeling and Efficiency Question

2009-04-06 Thread David Wilson
an ordered fetch via priority will index the data efficiently to fetch the first 10 without going over the rest of the data. Then place the result into memcache for subsequent requests, with a daily expiry time. On Apr 6, 8:51 pm, codingJoe wrote: > Forgot to ask, is there a better or more ele

[google-appengine] Re: 2 appengine accounts under same email woes, including login: admin problems

2009-04-06 Thread David Wilson
/p/googleappengine/issues/detail?id=428 > > I think the simplest solution for now would be to create a different > Google Account, one which is not associated with Google Apps, and add > it as an admin for this app. > > Cheers, > > Jeff > > On Mar 31, 7:16 pm, David Wilson

[google-appengine] Re: 2 appengine accounts under same email woes, including login: admin problems

2009-04-06 Thread David Wilson
ideal! >_< On Apr 6, 11:38 am, David Wilson wrote: > hi thanks for the reply. > > no the account is set to use Google Apps accounts and was created > using the correcthttp://appengine.google.com/a/mydomain.comlogin. so > this seems like a related but different issue to me. &

[google-appengine] Re: 2 appengine accounts under same email woes, including login: admin problems

2009-04-06 Thread David Wilson
anyone looking at this please! My app is ready to go live and we need admin rights :) On Apr 1, 2:39 pm, David Wilson wrote: > scrap the last post, it turns out that a colleague had removed the > admin requirement to the url path. > > After i put it back on and tried to access the

[google-appengine] Re: SSL Socket connections

2009-04-04 Thread David Wilson
Hi Jeremy, Since AppEngine doesn't yet support sockets of any kind, this is a non-starter. David. 2009/4/3 jeremysomething : > > Has anyone implemented a SSL/TLS client connection from their GAE app? > > There's this lib http://trevp.net/tlslite/ > > Just curious if anyone has any advice or sa

[google-appengine] Re: New Runtime Language Announced!

2009-04-01 Thread David Wilson
finally!! my life is complete >_< On Apr 1, 2:35 pm, Jeff S wrote: > Hi all, > > I'm pleased as punch to share with you the details on the new runtime > language available for App Engine. We announced it on our blog: > > http://googleappengine.blogspot.com/2009/04/brand-new-language-on-goo...

[google-appengine] Re: 2 appengine accounts under same email woes, including login: admin problems

2009-04-01 Thread David Wilson
Wilson wrote: > as a further note to this i have found that setting the application to > use google apps authentication, lets me login to admin rights. using > my email. > > On Mar 31, 7:16 pm, David Wilson > wrote: > > > Hi > > > Im having some problems relate

[google-appengine] Re: 2 appengine accounts under same email woes, including login: admin problems

2009-03-31 Thread David Wilson
as a further note to this i have found that setting the application to use google apps authentication, lets me login to admin rights. using my email. On Mar 31, 7:16 pm, David Wilson wrote: > Hi > > Im having some problems related to appengine admin access. This is > complicate

[google-appengine] 2 appengine accounts under same email woes, including login: admin problems

2009-03-31 Thread David Wilson
Hi Im having some problems related to appengine admin access. This is complicated to explain, but here goes: (im using fake names here, the real domain is in my email address) I originally had a google appengine account under a google apps domain mydomain.com Where I would sign into appegnin

[google-appengine] Re: Sending Email

2009-03-28 Thread David Wilson
AFAIK AppEngine strips the display name part, annoyingly. This was true a few months ago anyway. David. 2009/3/28 Alkis Evlogimenos ('Αλκης Ευλογημένος) : > Try "SchooGoo " > > On Sat, Mar 28, 2009 at 5:46 AM, Wiiboy wrote: >> >> My domain is schoolgoo.com >> So I set up the user schoo...@scho

[google-appengine] Re: Manual Authentication

2009-03-26 Thread David Wilson
2009/3/26 dafire : > > > >> secret = md5.md5(str(random.getrandbits(512)).hexdigest() > > you could just use an uuid to get a unique id. > > import uuid > secret = str(uuid.uuid4()) Handy tip, thanks :) David > > > -- It is better to be wrong than to be vague. — Freeman Dyson --~--~

[google-appengine] Re: Manual Authentication

2009-03-26 Thread David Wilson
Hey, How about doing interactive login once during installation (e.g. displaying a web browser control in your setup program), then using this session to establish a shared secret between the machine and your application. Something like: secret = md5.md5(str(random.getrandbits(512)).hexdigest()

[google-appengine] Re: Synchronized access to memcache

2009-03-25 Thread David Wilson
Hi Raghavv, The memcache API provides the ability to atomically increment an integer key, and return the old value. You can use this feature to build an efficient circular buffer that supports hopefully consistent updates. I started such a class here: (note this cod

[google-appengine] Re: Faster server-side json?

2009-03-24 Thread David Wilson
ay make sense to > memcache json output instead of objects. > > In addition, some people are using pickle to create datastore blobs. > Perhaps json is a better choice. > > On Mar 24, 1:39 pm, David Wilson wrote: >> Just idly wondering, >> >> Have you done any qua

[google-appengine] Re: Faster server-side json?

2009-03-24 Thread David Wilson
Just idly wondering, Have you done any quantitative measurement of how "bad" simplejson is? I can't imagine it being a large overhead, unless your application is seriously optimized to extremes already. David 2009/3/24 Andy Freeman : > > That's why issue 1174 requests the fastest possible json

[google-appengine] Re: memcache, What types can it contain?

2009-03-24 Thread David Wilson
Looks like you're trying to pickle a cStringIO object. That won't work. Options are: find the code using cStringIO and convert to using StringIO (I'm guessing this will work fine), or consider implementing __getstate__ [1] instead. David [1] http://www.python.org/doc/2.5.2/lib/pickle-inst.html

[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-18 Thread David Wilson
ek. >> >> Not sure when I'd be able to include it in gaeutiltiies for cron and >> such, that project is currently lower on my priority list at the >> moment, but can't wait until I get a chance to play with it. Another >> idea I had for it is the ROTmodel (re

[google-appengine] Re: How to tell if two entities belong to the same entity group?

2009-03-17 Thread David Wilson
woeful hack, but maybe something like.. def to_path(key): output = [] while key: output.append(key.name() if key.name() else key.id()) output.append(key.kind()) key = key.parent() return tuple(reversed(output)) e1_path = to_path(e1.key()) e2_path = to_path(e

[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-17 Thread David Wilson
work away! :) David > > If you haven't see that project, it's url is http://gaeutilities.appspot.com/ > > On Mar 16, 11:03 am, David Wilson wrote: >> Joe, >> >> I've only tested it in production. ;) >> >> The code should work serially on t

[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread David Wilson
inishes >> the request. It already appears your project would be perfect for >> running all necessary tasks at once, and the MIT License I believe is >> compatible with the BSD license I've released gaeutilities, so would >> you have any personal objection to me includ

[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread David Wilson
Joe, I've only tested it in production. ;) The code should work serially on the SDK, but I haven't tried yet. David. 2009/3/16 Joe Bowman : > > Does the batch fetching working on live appengine applications, or > only on the SDK? > > On Mar 16, 10:19 am, David Wi

[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread David Wilson
re being billed for the cpu-ms spent in > your asynchronous calls, Google would let you hang yourself with them > when it comes to billing.. :) so I presume they'd let you squeeze in > as many as your original request, and its limit, will allow for? > > Thanks again. > > &

[google-appengine] Re: Parallel urlfetch utility class / function.

2009-03-16 Thread David Wilson
ilable on all apis might give a lot to chew > on.. :) It's been a while since I've worked with async function calls > or threading, might have to dig up some old notes to see where I could > extract gains from it in my app. Some common cases might be worth the > community docum

[google-appengine] Parallel urlfetch utility class / function.

2009-03-16 Thread David Wilson
I've created a Google Code project to contain some batch utilities I'm working on, based on async_apiproxy.py from pubsubhubbub[0]. The project currently contains just a modified async_apiproxy.py that doesn't require dummy google3 modules on the local machine, and a megafetch.py, for batch-fetchi

[google-appengine] Re: A question for Jaiku's developers, if they're watching..

2009-03-16 Thread David Wilson
Thanks for that Dan. I just noticed that quite surprisingly, time.sleep() works. David. 2009/3/16 Dan Sanderson : > The XMPP support mentioned on the roadmap does not include BOSH. > -- Dan > > On Sun, Mar 15, 2009 at 6:14 PM, David Wilson wrote: >> >> 2009/3/15 thua

[google-appengine] Re: A question for Jaiku's developers, if they're watching..

2009-03-15 Thread David Wilson
2009/3/15 thuan : > > I know the topic is more about microblogging services than xmpp, but > by chance, have somebody achieved to install some comet/ajax push > applications? The technique might be used to speed up message display > for popular conversations as it is used for the chat function in

[google-appengine] Re: *** BigTable vs SQLite vs MySQL ***

2009-03-11 Thread David Wilson
http://lmgtfy.com/?q=appengine+datastore+documentation&l=1 2009/3/11 Let Delete My Apps : > > Ok :-) > Where is your documentation? > . > . > . > On Mar 10, 4:07 am, Ryan Lamansky wrote: >> The App Engine datastore is pretty slow for individual actions.  It's >> specialty is being able to do tho

[google-appengine] FYI: accounting for batch Datastore and Memcache gets/puts.

2009-03-07 Thread David Wilson
Just a small note for anyone who might care: memcache.get_multi, memcache.set_multi, db.put, and db.get all appear to count as a single call in quota accounting. This isn't quite clear from the documentation. Additionally, batch DS fetches of 32 entities (by key) is only marginally slower (at 100

[google-appengine] Re: HTTPS pages with some unencrypted information

2009-03-06 Thread David Wilson
2009/3/6 OliWeiD : > > Hi, > > I have setup some pages in app.yaml with secure: always and some few > are getting the following warn message in e.g. Firefox (IE7 is > similar): > You have requested an encrypted page that contains some unencrypted > information. Information that you see or enter on

[google-appengine] Re: Windows 7 - can't run appengine sdk

2009-03-05 Thread David Wilson
Hi Chen, Please post the full text of the traceback you received. Have you tried reinstalling the SDK? Do you by any chance have a module called "appengine_rpc" anywhere in your application, or sys.path? David. 2009/3/5 Chen Harel : > > AttributeError: 'module' object has no attribute 'HttpRpc

[google-appengine] orkut signed POST request

2009-03-04 Thread David Wilson
Hello, When making a orkut signed POST request to an app engine server, the code running on the local dev server will always fail validation. Where as the identical code running live on appspot will pass the validation process. Now i understand there are a lot of possibilities here, but does

[google-appengine] Re: Slow speed on appspot.com with custom domain enabled

2009-02-28 Thread David Wilson
Hi Brandon, I quickly checked this, and I'm not seeing the behavior you describe. It's possible some DNS resolver in between you and the Internet (perhaps a cheap home DSL router) has cached one set of resolved addresses for one name, and another set for the other. Perhaps for whatever reason on

[google-appengine] Will datastore_admin.GetSchema() ever be reenabled?

2009-02-26 Thread David Wilson
Hi there, I'm currently working on a Datastore synchronization tool ( http://code.google.com/p/appengine-sqlite-sync/ ), and was wondering if it's likely GetSchema() will ever work again. I've seen some old messages about it breaking the SDK viewer when running in production, but nothing conclusi

[google-appengine] Re: Announce: datastore-sqlite-sync tool release.

2009-02-24 Thread David Wilson
u might want to let users pass in the SDK location as a parameter. > Look at NoseGAE:configure, it might be useful: > http://code.google.com/p/nose-gae/source/browse/trunk/nosegae.py > > -Mahmoud > > On Feb 24, 12:11 pm, David Wilson wrote: >> This completely self-contained

[google-appengine] Announce: datastore-sqlite-sync tool release.

2009-02-24 Thread David Wilson
This completely self-contained tool enables incremental synchronization of your data from Google AppEngine's Datastore to a local SQLite 3 database. It will automatically convert your model definitions into a useful SQL schema, and download the model data in parallel using the new remote_api suppo

[google-appengine] Re: Google login in a lightbox?

2009-02-14 Thread David Wilson
re login > > On Jan 31, 10:27 pm, David Wilson wrote: >> 2009/1/18 emi420 : >> >> >> >> > I want to show the Google login form in a lightbox, like this: >> >> >http://microbloog.appspot.com/ >> >> > It works, but isn't a

[google-appengine] Re: pricing / additional app slots

2009-02-03 Thread David Wilson
2009/2/4 Barry Hunter : > > 2009/2/4 David Wilson : >> >> 2009/2/2 jeremy : >>> >>> will additional app slots be part of the pricing model? >>> > >>> >> >> Why pay for something you can have for free? :-) >> >> I

[google-appengine] Re: pricing / additional app slots

2009-02-03 Thread David Wilson
2009/2/2 jeremy : > > will additional app slots be part of the pricing model? > > > Why pay for something you can have for free? :-) If you have exhausted the allocation of applications for your account, possibly (like so many, it seems) by creating a bunch of test applications, then you can fol

[google-appengine] Re: Google login in a lightbox?

2009-01-31 Thread David Wilson
2009/1/18 emi420 : > > I want to show the Google login form in a lightbox, like this: > > http://microbloog.appspot.com/ > > It works, but isn't an elegant solution. Hi there, As much as I'm happy to hear this works because I've been wanting to use something like it myself, I'm surprised that it

[google-appengine] Re: Datastore timeouts and retries.

2009-01-10 Thread David Wilson
returned. > > Your application must be able to deal with this situation. Indeed. My point was that this isn't really a workable alternative to simply retrying the Datastore request. Thanks, David. > > 2009/1/10 David Wilson : >> * Somehow use memcache as an alternative. > &

[google-appengine] Datastore timeouts and retries.

2009-01-09 Thread David Wilson
Hi there, Having got my application to a barely working state last week, I tried to demonstrate it to a friend. Before he had even reached the main page of the application, a Datastore timeout had occurred while updating his session record. I talked to a few people about this, and it seems when t

[google-appengine] Help! Locked out of my application.

2009-01-07 Thread David Wilson
Hi there, The main application I've been working on has just disappeared from my appspot.com dashboard. This may be related to deleting the Gmail service from primary Google account. Can someone please fix? I'm smack bang in the middle of this project! :) If you can't figure out which applicatio

[google-appengine] Re: SMS: through python AIM/gtalk libraries?

2009-01-04 Thread David Wilson
2009/1/1 mclovin : > > I wanted to test out some SMS web app, where I can communicate w/ the > application from my phone. I was wondering if the App Engine allows me > to do this through the use of either AIM libraries or Gtalk Libraries > written in python. Hi there, If you are willing to pay a

[google-appengine] Re: 'run_in_transaction' gives a 'KeyError:

2008-11-07 Thread David Wilson (entertainment cloud)
after some more testing, it only happens in debug with psyco (1.6). I've removed psyco for now and its all running fine. On Nov 7, 3:11 pm, "David Wilson (entertainment cloud)" <[EMAIL PROTECTED]> wrote: > Hi, > > Some how I keep breaking the dev server datas

[google-appengine] 'run_in_transaction' gives a 'KeyError:

2008-11-07 Thread David Wilson (entertainment cloud)
Hi, Some how I keep breaking the dev server datastore, so it gives this error when try to 'put' anything in a transaction: class Foo(db.Model): pass def trans(): foo = Foo() foo.put() class Test(webapp.RequestHandler): def get(self): db.run_in_transaction(trans) Fil

[google-appengine] Re: consistent order when sorting on values that are the same?

2008-10-14 Thread David Wilson (entertainment cloud)
n the case of a tie, the key of the entity is used as the tie-breaker. > > ... its talking about list fields - but the same code is probably used > for sort order of non-lists. > > On Tue, Oct 14, 2008 at 3:05 PM, David Wilson (entertainment cloud) > > > > <[EMAIL PR

[google-appengine] Re: consistent order when sorting on values that are the same?

2008-10-14 Thread David Wilson (entertainment cloud)
as a note, its fine if it is 3,2,4. as long as its always 3,2,4. On Oct 14, 3:00 pm, "David Wilson (entertainment cloud)" <[EMAIL PROTECTED]> wrote: > Another day, another question: > > Are fetch results returned in a consistent order when sorting on > values that

[google-appengine] consistent order when sorting on values that are the same?

2008-10-14 Thread David Wilson (entertainment cloud)
Another day, another question: Are fetch results returned in a consistent order when sorting on values that are the same. ie if my models have id 1..4 and values 1,2,2,3 and I perform a filtered fetch of value >= 2. Will the models always be returned in the order id 2,3,4? im going to hit a p

[google-appengine] Re: datastore .order question

2008-10-13 Thread David Wilson (entertainment cloud)
te all previous data before that offset. > > On Oct 13, 1:25 pm, "David Wilson (entertainment cloud)" > > <[EMAIL PROTECTED]> wrote: > > when you say the same is not true of filter, are you saying that > > > Thing.all().filter('value >'  5).ge

[google-appengine] Re: datastore .order question

2008-10-13 Thread David Wilson (entertainment cloud)
> out:http://sites.google.com/site/io/building-scalable-web-applications-wi... > > -Marzia > > On Mon, Oct 13, 2008 at 6:24 AM, David Wilson (entertainment cloud) < > > [EMAIL PROTECTED]> wrote: > > > ok, i wanted to be sure about this, as pulling all the rec

[google-appengine] Re: datastore .order question

2008-10-13 Thread David Wilson (entertainment cloud)
ocs/datastore/queryclass.html#Query... > > On 13 oct, 13:41, "David Wilson (entertainment cloud)" > > <[EMAIL PROTECTED]> wrote: > > Hi, > > > class Thing(db.Model): > > >     value = db.IntegerProperty(required=True) > > > datastore h

[google-appengine] datastore .order question

2008-10-13 Thread David Wilson (entertainment cloud)
Hi, class Thing(db.Model): value = db.IntegerProperty(required=True) datastore has 10 Things with value 1..10 Question: How many records does the query Thing.all().order('-value').get() pull from the datastore? --~--~-~--~~~---~--~~ You received this messag