[google-appengine] Re: How do you use the development server for testing

2010-11-13 Thread Zeynel
On Nov 13, 7:10 am, Wim den Ouden wrote: > why not simple results_type = results Yes, thanks, this self.response.out.write("C_RESULT: %s " % (C_RESULT)) returns C_RESULT: [<__main__.Rep object at 0x044F0630>] Is there a way to print the contents of this object without iterating? --

Re: [google-appengine] Re: Can Java and Python coexist in the same app?

2010-11-13 Thread Pedro Ferreira
Jorge, obrigado pelo comprometimento! Agradeço memso Abraço Boa noite! Em 13-11-2010 23:29, Jorge Guberte escreveu: > Thank you! > > On 12 nov, 17:34, Alexander Mills wrote: >> I am currently doing this - as long as you reflect the Python model in >> the Java, it will be fine. >> >> Vers

Re: [google-appengine] Re: Only one property per query may have inequality filters?

2010-11-13 Thread Robert Kluin
Interesting results. Thanks for the info. Robert On Sat, Nov 13, 2010 at 09:11, Remigius wrote: > I have performed some experiments. I generated test data on which an > IN query was performed. The test data consists of the following: > > o an optional parent for all further test entitie

[google-appengine] Re: Can Java and Python coexist in the same app?

2010-11-13 Thread Jorge Guberte
Thank you! On 12 nov, 17:34, Alexander Mills wrote: > I am currently doing this - as long as you reflect the Python model in > the Java, it will be fine. > > Version 1 of my app is Java, Version 2 is Python - I have had issues > with the Java model being slightly different to the Python model and

[google-appengine] Re: A huge amount of DB timeout in the last 10 hours

2010-11-13 Thread Francois Masurel
Yep, got a few DB timeouts too. It's rather unusual for me. On Nov 13, 2:56 am, "Raymond C." wrote: > My app is having a very large amount of DB timeout in the last 10 > hours (>2% of all request).  Anyone else having the same problem? > > Yet the status page says nothing... -- You rec

[google-appengine] Blobstore upload is failing with mysterious "signature verification failed" redirect

2010-11-13 Thread Michael Bayne
I just added upload support to my app using the BlobStore. Everything works peachily in the dev environment, but now that I'm trying to use the functionality in production, uploads are resulting in a redirect to "http://www.google.com/search?q=signature+verification+failed"; which is rather mysteri

[google-appengine] Re: A huge amount of DB timeout in the last 10 hours

2010-11-13 Thread Alexander W.
My app had 10.000 requests today (so far) and I got 30 DeadlineExceededErrors. They all occured when saving an object to the database via the model .put() method. I hope they'll fix the DeadlineExceededErrors problem in the near future, because it's the only thing that bothers me. Apart from that A

Re: [google-appengine] Re: Blobstore upload handler is Base64 encoding strings?

2010-11-13 Thread Chris Copeland
In Python the text is encoded as quoted printable (I think). See issue #3761and Stack Overflow question. I've wor

[google-appengine] Re: Blobstore upload handler is Base64 encoding strings?

2010-11-13 Thread Satoshi
I also wrote an upload code in Objective-C, explicitly specifying the "Content-Type: text/plain; charset=UTF-8", but got the same result as HTML form sample above. "日本語" becomes "5pel5pys6Kqe" Satoshi On Nov 13, 7:01 am, Satoshi wrote: > I wrote a test code, and verified this bug (it happens in

[google-appengine] Re: Blobstore upload handler is Base64 encoding strings?

2010-11-13 Thread Satoshi
I wrote a test code, and verified this bug (it happens in Japanese as well). Here is the form: File: Description Satoshi On Nov 12, 11:52 am, "Ikai Lan (Google)" wrote: > Do you guys have any sample code? I'm testing this and se

[google-appengine] Re: Only one property per query may have inequality filters?

2010-11-13 Thread Remigius
I have performed some experiments. I generated test data on which an IN query was performed. The test data consists of the following: o an optional parent for all further test entities (i.e. the tests were performed with and without common parent) o a set of referred entities, n taking the values

Re: [google-appengine] Datastore to reuse indexes

2010-11-13 Thread 风笑雪
You don't need to define any composite indexes, it can use merge join. -- keakon On Sat, Nov 13, 2010 at 5:48 PM, anatoliy wrote: > I have an entity with indexed property "nss" which is a collection. > > Making query like (produced via Query.toString()): > > SELECT __key__ FROM IndexRec

Re: [google-appengine] How do you use the development server for testing

2010-11-13 Thread 风笑雪
results_type is always list. self.response.out.write can accept a string object, so you need self.response.out.write(str(results_type)) -- keakon On Sat, Nov 13, 2010 at 8:10 PM, Wim den Ouden wrote: > Hi Zeynel, > Why do you use type(results)? > why not simple results_type = results >

Re: [google-appengine] How do you use the development server for testing

2010-11-13 Thread Wim den Ouden
Hi Zeynel, Why do you use type(results)? why not simple results_type = results gr wim On Sat, Nov 13, 2010 at 6:34 AM, Zeynel wrote: > Hello, > > I am doing a lot of testing at this stage of learning App Engine but I > am having some problems printing something like this: > ... > ... > results =

Re: [google-appengine] Re: how to *not* use _ah/queue/deferred?

2010-11-13 Thread Peter Petrov
Django-nonrel uses 'deferred' for various things internally - e.g. for sending emails. On Sat, Nov 13, 2010 at 1:44 PM, Ivan Uemlianin wrote: > Dear 风笑雪 > > Thank you for your comment. > > It's failing to find the request page because I've commented out the > url: /_ah/queue/deferred line in my a

[google-appengine] Re: how to *not* use _ah/queue/deferred?

2010-11-13 Thread Ivan Uemlianin
Dear 风笑雪 Thank you for your comment. It's failing to find the request page because I've commented out the url: /_ah/queue/deferred line in my app.yaml. However, it's not just old tasks re-running: new tasks are being created. Is there any way I can stop these tasks being generated? As far as I

[google-appengine] Send mail: Authorized sender question

2010-11-13 Thread dflorey
Hi, I'm working on an app that allows users to login with either a regular Google or a Google Apps account. As the app engine sdk does not yet provide OpenID+OAuth I'm using the step2 implementation to authorize users. Unfortunately the mail service does not know anything about the current user wh

[google-appengine] Datastore to reuse indexes

2010-11-13 Thread anatoliy
I have an entity with indexed property "nss" which is a collection. Making query like (produced via Query.toString()): SELECT __key__ FROM IndexRecord WHERE nss = qwe AND nss = wer AND nss = ert AND nss = rty AND nss = tyu causes randomly (e.g. it works occasionally) exceptions "no matching inde