[google-appengine] Download specific Module code?

2015-08-04 Thread Paul Canning
I know you can download your default module code using appcfg.py 
download_app and even a specific version of the default module.

Nut is it possible to download the code of a MODULE?

E.G I have the the default app, Website A. I thne have a module, which is 
an entirely different site, Website B.

The appcfg.py command will only let me download versions of Website A.

Here is the usage:

Usage: appcfg.py [options] download_app -A app_id [ -V version ] out-dir

See, no options for module.

So, how can I download specific module code?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a8eb8e77-2eaa-4dc1-aecc-18995c1271d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Custom domain for google app engine application

2015-08-04 Thread Ryan (Cloud Platform Support)
Salutations,

Thats all you need to do. I tested the site and it loaded for me without 
issue. You should be good to go now.

On Sunday, September 7, 2014 at 9:09:00 AM UTC-4, cloud park wrote:


 https://lh5.googleusercontent.com/-PtBuQ8R5N6A/VAxYlthmPaI/AAg/pIdAVCt65Og/s1600/Screen%2BShot%2B2014-09-07%2Bat%2B6.39.35%2Bpm.png
 I am not able to setup custom domain for my google app engine application. 
 When acessed domain URL it is displ;aying 404 error from google as shown in 
 above image.

 I have done setup for CNAME  and TXT record as given in procedure.

 Please someone help me.

 Thanks! 


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f4a2bd1b-30d2-4fa6-a93b-1aacb4b41e85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Stale Data from App Engine Datastore

2015-08-04 Thread Jeff Schnitzer
I have less direct experience here since my apps tend to be
get-by-key-heavy, but the docs are very explicit about ancestor queries
being strongly consistent outside of a transaction by default and I believe
them. Of course, you can override this (although I would not recommend it
unless you know what you are doing).

Jeff

On Mon, Aug 3, 2015 at 7:53 PM, Thomas Becker walkswiththeb...@gmail.com
wrote:

 Thanks, Jeff! And one more thing, it's pretty clear from the doc, but let
 me make sure anyway. The same is true for ancestor queries, they guarantee
 strong consistency even when not performed inside a transaction, right?

 Thomas

 On Mon, Aug 3, 2015 at 8:48 PM, Jeff Schnitzer j...@infohazard.org
 wrote:

 Yes, that is correct. By default, if you perform a low-level get-by-key
 operation, it is strongly consistent whether or not you put it in a
 transaction.

 Note that you can, if you want, explicitly request an eventually
 consistent get-by-key operation in the low-level api. It does return faster
 since it does not require a quorum response. However, this is a pretty
 obscure feature.

 Jeff

 On Mon, Aug 3, 2015 at 7:30 PM, Thomas Becker walkswiththeb...@gmail.com
  wrote:

 Thanks for your detailed and thoughtful answer, Jeff. I was aware of the
 fact that within a transaction, all reads will return the original value
 even if one writes it within the transaction. That was not the problem, but
 thanks for pointing it out anyway, it's easy to forget!

 Other than that, after reading everything on the subject of GAE
 datastore consistency under JDO, I have decided to fall back to low-level
 access in those cases where strong consistency is of the essence. At the
 risk of sounding acerbic or snarky, it seems clear to me that nobody knows
 what's going on in JDO when it comes to consistency.

 So just to confirm, it is true that the low-level get-by-key guarantees
 strong consistency even *when performed outside of a transaction*,
 correct?

 Thanks again for your thoughtful answer. Very refreshing indeed.

 Thomas

 On Mon, Aug 3, 2015 at 8:13 PM, Jeff Schnitzer j...@infohazard.org
 wrote:

 I'm no expert on JDO, but the low-level api does guarantee strong
 consistency for get-by-key operations (that is, unless you explicitly ask
 for eventual consistency). One of those SO responses suggested it is
 possible to have the GAE/JDO plugin log its low-level operations - that
 should at least point you in the right direction.

 One other thing that might be related: In the low-level API, within a
 single transaction, all reads will return the original value even if you
 write it within the transaction. I don't know what JDO does with this; I
 would expect that subsequent reads would return a session-cached instance
 and hide this little quirk. But maybe it's related to what you are seeing?

 Jeff

 On Mon, Aug 3, 2015 at 1:52 PM, Thomas Becker 
 walkswiththeb...@gmail.com wrote:

 Thanks for your quick reply, Ryan. I have found several postings on
 the Web that describe the same problem, namely, GetObjectById returning
 stale data. Here are two from StackOverflow:


 http://stackoverflow.com/questions/26377347/inconsistent-fetch-from-google-app-engine-datastore


 http://stackoverflow.com/questions/22005349/appengine-jdo-with-multiple-server-instances-loses-transaction-updates-on-entiti

 Under the circumstances, I don't think it would be a good use of my
 time to make a demo app. It seems clear to me that the issue exists.
 Besides, the problem is so intermittent that a demo app is of very limited
 value. I would be perfectly happy with a statement of the kind,
 GetObjectById() does not guarantee strong consistency, that's how it is,
 and here's what you do instead to get strongly consistent data. I just
 need to know what's going on.

 On Mon, Aug 3, 2015 at 2:32 PM, Ryan (Cloud Platform Support) 
 rbruy...@google.com wrote:

 If you can create a sample app that shows this post on it on the PIT
 https://code.google.com/p/googleappengine/issues/entry so I can
 investigate this further.

 On Saturday, August 1, 2015 at 6:24:55 PM UTC-4, Thomas Becker wrote:

 I am using the app engine datastore with Java JDO. According to the
 documentation, ancestor queries are always strongly consistent. 
 Recently,
 however, I've been seeing a lot of stale data from ancestor queries. It
 seems to happen randomly. A query may return the most recent data, and a
 moment later, the same query returns stale data.

 --
 You received this message because you are subscribed to a topic in
 the Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/1re1FtqllnQ/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion 

Re: [google-appengine] Re: Stale Data from App Engine Datastore

2015-08-04 Thread Jeff Schnitzer
Again, JDO is not my area of expertise, but if so, this seems like a
shockingly obvious issue. Can you post a sample of the code you use to
demonstrate the problem?

Jeff

On Mon, Aug 3, 2015 at 8:11 PM, Prashant antsh...@gmail.com wrote:

 I am facings exact same issue. getObjectById returns stale data even if
 call is made inside a transaction.

 I performed an experiment - I ran two crons in two different modules, both
 trying to increment their execution count in an (common, shared) entity. I
 was shocked to see that even when I transaction,  both crons are running as
 if they are performing transaction in thier own copy of DataStore.
 Evertime, each cron will get copy of entity last updated by itself
 (ignoring updates made by other cron) and on top of that transaction will
 also commit without any exception.

 --
 Prashant

 On 8:24AM, Tue, 4 Aug 2015 Thomas Becker walkswiththeb...@gmail.com
 wrote:

 Thanks, Jeff! And one more thing, it's pretty clear from the doc, but let
 me make sure anyway. The same is true for ancestor queries, they guarantee
 strong consistency even when not performed inside a transaction, right?

 Thomas

 On Mon, Aug 3, 2015 at 8:48 PM, Jeff Schnitzer j...@infohazard.org
 wrote:

 Yes, that is correct. By default, if you perform a low-level get-by-key
 operation, it is strongly consistent whether or not you put it in a
 transaction.

 Note that you can, if you want, explicitly request an eventually
 consistent get-by-key operation in the low-level api. It does return faster
 since it does not require a quorum response. However, this is a pretty
 obscure feature.

 Jeff

 On Mon, Aug 3, 2015 at 7:30 PM, Thomas Becker 
 walkswiththeb...@gmail.com wrote:

 Thanks for your detailed and thoughtful answer, Jeff. I was aware of
 the fact that within a transaction, all reads will return the original
 value even if one writes it within the transaction. That was not the
 problem, but thanks for pointing it out anyway, it's easy to forget!

 Other than that, after reading everything on the subject of GAE
 datastore consistency under JDO, I have decided to fall back to low-level
 access in those cases where strong consistency is of the essence. At the
 risk of sounding acerbic or snarky, it seems clear to me that nobody knows
 what's going on in JDO when it comes to consistency.

 So just to confirm, it is true that the low-level get-by-key guarantees
 strong consistency even *when performed outside of a transaction*,
 correct?

 Thanks again for your thoughtful answer. Very refreshing indeed.

 Thomas

 On Mon, Aug 3, 2015 at 8:13 PM, Jeff Schnitzer j...@infohazard.org
 wrote:

 I'm no expert on JDO, but the low-level api does guarantee strong
 consistency for get-by-key operations (that is, unless you explicitly ask
 for eventual consistency). One of those SO responses suggested it is
 possible to have the GAE/JDO plugin log its low-level operations - that
 should at least point you in the right direction.

 One other thing that might be related: In the low-level API, within a
 single transaction, all reads will return the original value even if you
 write it within the transaction. I don't know what JDO does with this; I
 would expect that subsequent reads would return a session-cached instance
 and hide this little quirk. But maybe it's related to what you are seeing?

 Jeff

 On Mon, Aug 3, 2015 at 1:52 PM, Thomas Becker 
 walkswiththeb...@gmail.com wrote:

 Thanks for your quick reply, Ryan. I have found several postings on
 the Web that describe the same problem, namely, GetObjectById returning
 stale data. Here are two from StackOverflow:


 http://stackoverflow.com/questions/26377347/inconsistent-fetch-from-google-app-engine-datastore


 http://stackoverflow.com/questions/22005349/appengine-jdo-with-multiple-server-instances-loses-transaction-updates-on-entiti

 Under the circumstances, I don't think it would be a good use of my
 time to make a demo app. It seems clear to me that the issue exists.
 Besides, the problem is so intermittent that a demo app is of very 
 limited
 value. I would be perfectly happy with a statement of the kind,
 GetObjectById() does not guarantee strong consistency, that's how it is,
 and here's what you do instead to get strongly consistent data. I just
 need to know what's going on.

 On Mon, Aug 3, 2015 at 2:32 PM, Ryan (Cloud Platform Support) 
 rbruy...@google.com wrote:

 If you can create a sample app that shows this post on it on the PIT
 https://code.google.com/p/googleappengine/issues/entry so I can
 investigate this further.

 On Saturday, August 1, 2015 at 6:24:55 PM UTC-4, Thomas Becker wrote:

 I am using the app engine datastore with Java JDO. According to the
 documentation, ancestor queries are always strongly consistent. 
 Recently,
 however, I've been seeing a lot of stale data from ancestor queries. It
 seems to happen randomly. A query may return the most recent data, and 
 a
 moment later, the same query returns stale data.

 --

[google-appengine] Re: Google App Engine Laucher extra flags listen to --host 127.0.0.1

2015-08-04 Thread Tasos Kallergis
Thank you Nick for your answer, i appreciate it.
With Google app engine i have tested the behaviour of host flags, and i 
think it works fine.
That means that when i set the --host to my computer ip i.e(192.168.1.2) or 
set the host to (0.0.0.0), i have access to
that google app engine server from remote computer. 127.0.0.1 is for the 
loop back so it doesn't work from remote.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/77754c79-e740-4da5-a627-8dcc89ce989b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] help with google app engine search api

2015-08-04 Thread Sourabh Agrawal
Hey, 

i am new to gaepython, I have been trying to find nearby areas to a given 
location.. I found search api could do this, what i couldn't figure out is 
that* what will be config.STORE_INDEX_NAME*. When is used this exact code 
it says * NameError: name 'config' is not defined*


from google.appengine.api import search

query = distance(geopoint(35.2, 40.5), geopoint(35.2, 40.5))  100
index = search.Index(config.STORE_INDEX_NAME)
search_results = index.search(query)

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/360c8c9c-dcc1-4ada-91d0-5cf7d77d5499%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Mobile backend in Google App Engine testing.

2015-08-04 Thread Shruthi Sharat

Hi,

   I have my mobile application backend developed in Google App Engine with 
end points.

What is the way to test this backend application ? How to do load balancing 
and performance testing ?

Please let me know if this application needs to be tested from developer 
end, if yes, what is the approach.

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a1124ad5-f28f-4464-a737-53c75242bfb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: help with google app engine search api

2015-08-04 Thread Sourabh Agrawal
*Thanks Mihail Russu*

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b95e86b7-ebbf-4dfc-ab6a-da31ad2ff991%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Download specific Module code?

2015-08-04 Thread Ryan (Cloud Platform Support)
Salutations Paul,

When you download code for a version it downloads all the modules in that 
version. There is no need to specify a module.

On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote:

 I know you can download your default module code using appcfg.py 
 download_app and even a specific version of the default module.

 Nut is it possible to download the code of a MODULE?

 E.G I have the the default app, Website A. I thne have a module, which is 
 an entirely different site, Website B.

 The appcfg.py command will only let me download versions of Website A.

 Here is the usage:

 Usage: appcfg.py [options] download_app -A app_id [ -V version ] 
 out-dir

 See, no options for module.

 So, how can I download specific module code?


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f75a69ff-7fc1-4aca-a636-254d649ee9d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Download specific Module code?

2015-08-04 Thread Paul Canning
I think you have misunderstood. The download_app command ONLY downloads the
default app engine module for a project.

Example:


   - Project - top level, google Cloud Platform project
   - App Engine Apps
 - Default Module - Website A (worpdress site)
- Version 1
- Version 2
- etc
 - 2nd Module - Website B (bespoke PHP site)
- Version 1
- Version 2
- etc

Now, if I did appcfg.py download_app -A adgen-web-2015 This will ONLY
download Website A. I can specify a version of Website A, but it will only
ever be Website A.

You CANNOT specify anyway to download Website B, left alone a version of it.


On Tue, Aug 4, 2015 at 3:59 PM, Ryan (Cloud Platform Support) 
rbruy...@google.com wrote:

 Salutations Paul,

 When you download code for a version it downloads all the modules in that
 version. There is no need to specify a module.

 On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote:

 I know you can download your default module code using appcfg.py
 download_app and even a specific version of the default module.

 Nut is it possible to download the code of a MODULE?

 E.G I have the the default app, Website A. I thne have a module, which is
 an entirely different site, Website B.

 The appcfg.py command will only let me download versions of Website A.

 Here is the usage:

 Usage: appcfg.py [options] download_app -A app_id [ -V version ]
 out-dir

 See, no options for module.

 So, how can I download specific module code?

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/YOSxlbn-SbY/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/f75a69ff-7fc1-4aca-a636-254d649ee9d6%40googlegroups.com
 https://groups.google.com/d/msgid/google-appengine/f75a69ff-7fc1-4aca-a636-254d649ee9d6%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.




-- 
-
Paul Canning
[ software artist ]
-
[drawcode]
digital creative studio

+44 (0)151 329 0900
Website http://www.drawandcode.com/ / Twitter
https://twitter.com/DrawAndCode / Facebook
https://www.facebook.com/drawandcode / Vimeo
https://vimeo.com/drawandcode
-

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAH%2B40aNrt4X2oaZtR8my1tCacurC-xya7trywi0c-K4-s%3DC2qQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: help with google app engine search api

2015-08-04 Thread Sourabh Agrawal
*survey_marker = ndb.GeoPt(35.2, 40.5)*
*query = distance(survey_marker , geopoint(35.2, 40.5))  1*
*index = search.Index(name=myIndex)*
*search_results = index.search(query)*
*print search_results*
*for doc in search_results:*
*print doc*

I tried this but it always gives this result on exectuing : 

*search.SearchResults(number_found=0L)*


Also read an thread on this at stackoverflow which says it doesnt works on 
local machine.. so I deployed a test application but the result is no 
different. 
Plz help me with this.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6833f0fe-027f-40d2-b3c5-36631e5342ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Download specific Module code?

2015-08-04 Thread Paul Canning
To add to this, here is the output is I try to target a Module name instead
of a project name (appcfg.py download_app -A module_name

04:05 PM Host: appengine.google.com
04:05 PM Fetching file list...
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u'module_name').
--- end server output ---

On Tue, Aug 4, 2015 at 4:05 PM, Paul Canning p...@drawandcode.com wrote:

 I think you have misunderstood. The download_app command ONLY downloads
 the default app engine module for a project.

 Example:


- Project - top level, google Cloud Platform project
- App Engine Apps
  - Default Module - Website A (worpdress site)
 - Version 1
 - Version 2
 - etc
  - 2nd Module - Website B (bespoke PHP site)
 - Version 1
 - Version 2
 - etc

 Now, if I did appcfg.py download_app -A adgen-web-2015 This will ONLY
 download Website A. I can specify a version of Website A, but it will only
 ever be Website A.

 You CANNOT specify anyway to download Website B, left alone a version of
 it.


 On Tue, Aug 4, 2015 at 3:59 PM, Ryan (Cloud Platform Support) 
 rbruy...@google.com wrote:

 Salutations Paul,

 When you download code for a version it downloads all the modules in that
 version. There is no need to specify a module.

 On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote:

 I know you can download your default module code using appcfg.py
 download_app and even a specific version of the default module.

 Nut is it possible to download the code of a MODULE?

 E.G I have the the default app, Website A. I thne have a module, which
 is an entirely different site, Website B.

 The appcfg.py command will only let me download versions of Website A.

 Here is the usage:

 Usage: appcfg.py [options] download_app -A app_id [ -V version ]
 out-dir

 See, no options for module.

 So, how can I download specific module code?

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/YOSxlbn-SbY/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/f75a69ff-7fc1-4aca-a636-254d649ee9d6%40googlegroups.com
 https://groups.google.com/d/msgid/google-appengine/f75a69ff-7fc1-4aca-a636-254d649ee9d6%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.




 --
 -
 Paul Canning
 [ software artist ]
 -
 [drawcode]
 digital creative studio

 +44 (0)151 329 0900
 Website http://www.drawandcode.com/ / Twitter
 https://twitter.com/DrawAndCode / Facebook
 https://www.facebook.com/drawandcode / Vimeo
 https://vimeo.com/drawandcode
 -




-- 
-
Paul Canning
[ software artist ]
-
[drawcode]
digital creative studio

+44 (0)151 329 0900
Website http://www.drawandcode.com/ / Twitter
https://twitter.com/DrawAndCode / Facebook
https://www.facebook.com/drawandcode / Vimeo
https://vimeo.com/drawandcode
-

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAH%2B40aM3%2BMrgx51Tq1AefPcLxWbs-MyHs-XNVwtCzG223sWS8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: help with google app engine search api

2015-08-04 Thread Mihail Russu
Did you add anything into your index before querying it? Can you see your 
data on the admin page (i.e. http://127.0.0.1:8000/search/index )? Can you 
show how you're indexing things?

Thanks,
Mihail.

On Tuesday, August 4, 2015 at 6:05:38 PM UTC+3, Sourabh Agrawal wrote:

 *survey_marker = ndb.GeoPt(35.2, 40.5)*
 *query = distance(survey_marker , geopoint(35.2, 40.5))  1*
 *index = search.Index(name=myIndex)*
 *search_results = index.search(query)*
 *print search_results*
 *for doc in search_results:*
 *print doc*

 I tried this but it always gives this result on exectuing : 

 *search.SearchResults(number_found=0L)*


 Also read an thread on this at stackoverflow which says it doesnt works on 
 local machine.. so I deployed a test application but the result is no 
 different. 
 Plz help me with this.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4bf95a98-388b-4985-ba13-2c5a62fe3e98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: help with google app engine search api

2015-08-04 Thread Mihail Russu
The only required parameter of the `search.Index 
https://cloud.google.com/appengine/docs/python/search/indexclass` 
function is `name` which is normally a string, so it's safe to assume that 
`config.STORE_INDEX_NAME` simply stores the name of the index where you 
will be performing your search so you could've had something like 
`search.Index(name='my_index')` instead. Note that if you haven't 
previously added anything to that index  - the search will not return 
anything.

It looks like you're following the More Complex Search API Queries 
https://cloud.google.com/appengine/training/fts_adv/lesson1 tutorial 
which assumes you already have some basic familliarity with the Search API 
but if you don't, you should start with the Search API Basics 
https://cloud.google.com/appengine/training/fts_intro/lesson2 tutorial 
first which will explain you how to index your data first and then query it.

Thanks,
Mihail.

On Tuesday, August 4, 2015 at 9:06:04 AM UTC+3, Sourabh Agrawal wrote:

 Hey, 

 i am new to gaepython, I have been trying to find nearby areas to a given 
 location.. I found search api could do this, what i couldn't figure out is 
 that* what will be config.STORE_INDEX_NAME*. When is used this exact code 
 it says * NameError: name 'config' is not defined*


 from google.appengine.api import search

 query = distance(geopoint(35.2, 40.5), geopoint(35.2, 40.5))  100
 index = search.Index(config.STORE_INDEX_NAME)
 search_results = index.search(query)

 Thanks in advance



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e494b7e1-784e-46ac-87b8-16c25aa70aef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: help with google app engine search api

2015-08-04 Thread Sourabh Agrawal
survey_marker= ndb.GeoPt(35.1, 40.0)
d = search.Document(fields=survey_marker)
search.Index(name=locate_this).put(d)
query_obj= distance(survey_marker , geopoint(35.2, 40.5))  1
results = search.Index(name=locate_this).search(query=query_obj)
print results
for doc in results:
print doc

I wasnt indexing earlier. but as i have indexed now(hopefully it is right ) 
it returns TypeError: 'GeoPt' object is not iterable. btw I m doing this on 
interactive console

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5f4b91b4-7fa7-4320-a89c-545106a45563%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Mobile backend in Google App Engine testing.

2015-08-04 Thread Sourabh Agrawal
You can check the backend of the application at 
http://*yourdomainname*/_ah/api/explorer 
and you can see the loadbalancing and performance testing at google 
developer console. Hope this will help

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/db38b609-5214-40e6-a70e-e4ef735298fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: help with google app engine search api

2015-08-04 Thread Mihail Russu
Your ndb.GeoPt part should probably look something like:

survey_marker = ndb.GeoPt(lat=35.1, lon=40.0)

Testing things in interactive console is perfectly normal.

Also, note that your index name needs to be persistent between your 
examples (it was myIndex in your previous message, locate_this in this 
one and as a variable locate_this (not a string)).

As per the tutorial I mentioned in my first response, the fields 
parameter of search.Document accepts a list of named fields, not just a 
field. Again, try going over the tutorial 
https://cloud.google.com/appengine/training/fts_intro/lesson2as it has 
answers to all of the issues you've had here so far.

Thanks,
Mihail.


On Tuesday, August 4, 2015 at 6:30:45 PM UTC+3, Sourabh Agrawal wrote:

 survey_marker= ndb.GeoPt(35.1, 40.0)
 d = search.Document(fields=survey_marker)
 search.Index(name=locate_this).put(d)
 query_obj= distance(survey_marker , geopoint(35.2, 40.5))  1
 results = search.Index(name=locate_this).search(query=query_obj)
 print results
 for doc in results:
 print doc

 I wasnt indexing earlier. but as i have indexed now(hopefully it is right 
 ) it returns TypeError: 'GeoPt' object is not iterable. btw I m doing 
 this on interactive console


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/68f33c63-e31b-46d1-a923-e6ce1d1fe41a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: CSRF token is null!

2015-08-04 Thread Ryan (Cloud Platform Support)
Salutations Dassine,

This would be best posted on StackOverflow 
http://stackoverflow.com/questions/tagged/google-app-engine. You will 
need to include the code you use and the logs you see here with the error 
https://console.developers.google.com/project/_/logs. 
https://console.developers.google.com/project/_/logs

On Saturday, August 1, 2015 at 9:31:33 PM UTC-4, Dassine B. wrote:


 Hi there !

 I'm building a form which allows the user to upload files. Everything 
 works perfectly locally but not live. I got this error : 

 POST http://trocodeal.co/ 500 (Internal Server Error)
 send @ jquery.min.js:5
 b.extend.ajax @ jquery.min.js:5
 send @ jquery.fileupload.js:711
 (anonymous function) @ jquery.min.js:3
 c @ jquery.min.js:3
 p.add @ jquery.min.js:3
 (anonymous function) @ jquery.min.js:3
 b.extend.each @ jquery.min.js:3
 (anonymous function) @ jquery.min.js:3
 b.extend.Deferred @ jquery.min.js:3
 r.then @ jquery.min.js:3
 $.widget._onSend @ jquery.fileupload.js:755
 (anonymous function) @ jquery.ui.widget.js:105
 $.each.newData.submit @ jquery.fileupload.js:811
 (anonymous function) @ jquery.fileupload-ui.js:105
 c @ jquery.min.js:3
 p.fireWith @ jquery.min.js:3
 (anonymous function) @ jquery.fileupload-ui.js:618
 b.event.dispatch @ jquery.min.js:3
 v.handle @ jquery.min.js:3

 After hours of research and trying many solution. It might be related to 
 crsftoken. this one is available when I use my local environment but not my 
 domain. Is this possible ? 

 I'm stumped and really stuck ! If anyone can help, it will be really 
 appreciated !

 Thanks !

 FYI. I'm new in web development/GAE/Django


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7c910e89-0c97-4a62-ada8-5fefad657466%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: [Python]- Sessions

2015-08-04 Thread Devraj Mukherjee
On Wed, Dec 3, 2014 at 1:35 AM, John Louis Del Rosario joh...@gmail.com
wrote:

 The webapp2 framework has great support for sessions that work with the
 Datastore.
 https://webapp-improved.appspot.com/api/webapp2_extras/sessions.html
 Its docs are a bit sparse though, expect to dive into the source code
 every now and then.



Following up on the state of this issue. Is using third party frameworks
still the only way of managing sessions for Python apps?

Or is there any news on an official Appengine solution?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CANgV5UwepP%2BhiTT3Sq2F%3D7RDkeVVx%2B8FoSj4JXUbTv%2BfGvnqxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: PHP Library for Cloud Datastore 2.0 Production Release

2015-08-04 Thread Anthony Shapley
Hi Tom,

This sounds excellent - just so I am nor misreading, this no longer 
requires the Google API, so could this be used on AppScale for example?

Ant

On Tuesday, 4 August 2015 22:30:55 UTC+1, Tom Walder wrote:

 https://github.com/tomwalder/php-gds

 Enjoy!

 New features in 2.0 include 

- *Faster* - use of Google Protocol Buffer allows faster, low-level 
access to Datastore
- *Easier to use* - sensible defaults and auto-detection for AppEngine 
environments
- *Less dependencies* - no need for the Google PHP API Client, unless 
running remote or from non-AppEngine environments
- *Local development* - Using the Protocol Buffers allows us to access 
the development server Datastore
- *Local GQL support* - By default, the local development server does 
not support GQL. I've included a basic GQL parser that makes this work.
- *Data Migrations* - leverage multiple Gateways to ship data between 
local and live Datastore
- *Contention Exceptions* - standardised Exception for handling 
Datastore transaction contention`
- *Unit tests*
- Optional drop-in JSON API Gateway for remote or non-AppEngine 
environments (this was the only Gateway in 1.x)



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/34ae4d07-9e5a-499b-8f0f-439e54dac3fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Problem authenticating to GAE app using GoogleCredential OAuth2

2015-08-04 Thread Julian Bunn


I have a GAE application with an endpoint that requires authentication, 
which I need to call from an application (rather than from in a browser). I 
was using ClientLogin, but that is now obsolete, so I have set up a Service 
Account in the Google Console, and stored its keypair .p12 file so that I 
can use the OAuth methods as described in the documentation.

Although the GoogleCredential builder successfully returns an authorization 
token, if I then use that token in an HTTP get call to the endpoint, the 
response is always the Google Login page.

Why, if I use the token, does GAE not take my application call as 
authorized? Am I doing this all wrong or missing a step? 

Here is the code:

String emailAddress = x...@developer.gserviceaccount.com;
JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance();
String emailScope = https://www.googleapis.com/auth/userinfo.email;;
String keyFileName = Y.p12;
String baseURL = http://Z.appspot.com;;
HttpTransport httpTransport;
try {
httpTransport = GoogleNetHttpTransport.newTrustedTransport();

File keyFile = new File(keyFileName);
if(!keyFile.exists()) {
System.err.println(Key file +keyFileName+ missing);
System.exit(0);
}

GoogleCredential credential = new GoogleCredential.Builder()
.setTransport(httpTransport)
.setJsonFactory(JSON_FACTORY)
.setServiceAccountId(emailAddress)
.setServiceAccountScopes(Collections.singleton(emailScope))
.setServiceAccountPrivateKeyFromP12File(keyFile)
.build();

boolean success = credential.refreshToken();
System.out.println(Access token refresh + success);

String token = credential.getAccessToken();

System.out.println(Token +token);

String uri = http://Z.appspot.com/gcm/home;;

System.out.println(uri:  + uri);

HttpGet get = new HttpGet(uri);
get.setHeader(Cookie, token);

HttpClient client = new DefaultHttpClient();
HttpResponse response = client.execute(get);
response.getEntity().writeTo(System.out);

Typical output:

   Access token refresh true
   Token ya29.xQGG1kxxx
   uri: http://Z.appspot.com/gcm/home

   !DOCTYPE html
   html lang=en
  head
  meta charset=utf-8
  meta content=width=300, initial-scale=1 name=viewport
  meta name=google-site-verification 
content=LrdTUW9psUAMbh4Ia074-BPEVmcpBxF6Gwf0MSgQXZs
  titleSign in - Google Accounts/title
  .

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/547a76b0-45b3-4c74-995a-b4c98d97160d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Stale Data from App Engine Datastore

2015-08-04 Thread Thomas Becker
Thanks again for eveybody's input. It looks like I have solved my problem
by falling back on the low-level datastore access when strong consistency
matters. Problems like this happen, and the bottom line is GAE is a great
product that's done a lot for me. So kudos to all members, former and
present, of the GAE team at Google.

FWIW, here are two observations that could be helpful in understanding the
behavior of the gae/JDO function GetObjectById:

1) If you set the option Unapplied job percentage to 100% in the SDK,
that is, you force eventually consistent to mean never consistent, then
GetObjectById still acts strongly consistent. This means that the SDK
thinks that GetObjectById should act strongly consistent, just like the low
level get function.

2) Demonstrating that GetObjectById can return stale data in the production
environment is difficult because the behavior is, by its very nature,
intermittent. But one can increase the probability of seeing stale data
vastly if one performs the write and subsequent read from two different
*versions* of the app. As others have observed, the probability already
increases when write and read are performed from different instances of
the app. But with different *versions *(one of them being the default
version), it's been happening pretty much every time in my context. The
low-level get, by contrast, has always acted strongly consistent for me,
even across versions.

Thomas

On Tue, Aug 4, 2015 at 12:07 AM, Jeff Schnitzer j...@infohazard.org wrote:

 Again, JDO is not my area of expertise, but if so, this seems like a
 shockingly obvious issue. Can you post a sample of the code you use to
 demonstrate the problem?

 Jeff

 On Mon, Aug 3, 2015 at 8:11 PM, Prashant antsh...@gmail.com wrote:

 I am facings exact same issue. getObjectById returns stale data even if
 call is made inside a transaction.

 I performed an experiment - I ran two crons in two different modules,
 both trying to increment their execution count in an (common, shared)
 entity. I was shocked to see that even when I transaction,  both crons are
 running as if they are performing transaction in thier own copy of
 DataStore. Evertime, each cron will get copy of entity last updated by
 itself (ignoring updates made by other cron) and on top of that transaction
 will also commit without any exception.

 --
 Prashant

 On 8:24AM, Tue, 4 Aug 2015 Thomas Becker walkswiththeb...@gmail.com
 wrote:

 Thanks, Jeff! And one more thing, it's pretty clear from the doc, but
 let me make sure anyway. The same is true for ancestor queries, they
 guarantee strong consistency even when not performed inside a transaction,
 right?

 Thomas

 On Mon, Aug 3, 2015 at 8:48 PM, Jeff Schnitzer j...@infohazard.org
 wrote:

 Yes, that is correct. By default, if you perform a low-level get-by-key
 operation, it is strongly consistent whether or not you put it in a
 transaction.

 Note that you can, if you want, explicitly request an eventually
 consistent get-by-key operation in the low-level api. It does return faster
 since it does not require a quorum response. However, this is a pretty
 obscure feature.

 Jeff

 On Mon, Aug 3, 2015 at 7:30 PM, Thomas Becker 
 walkswiththeb...@gmail.com wrote:

 Thanks for your detailed and thoughtful answer, Jeff. I was aware of
 the fact that within a transaction, all reads will return the original
 value even if one writes it within the transaction. That was not the
 problem, but thanks for pointing it out anyway, it's easy to forget!

 Other than that, after reading everything on the subject of GAE
 datastore consistency under JDO, I have decided to fall back to low-level
 access in those cases where strong consistency is of the essence. At the
 risk of sounding acerbic or snarky, it seems clear to me that nobody knows
 what's going on in JDO when it comes to consistency.

 So just to confirm, it is true that the low-level get-by-key
 guarantees strong consistency even *when performed outside of a
 transaction*, correct?

 Thanks again for your thoughtful answer. Very refreshing indeed.

 Thomas

 On Mon, Aug 3, 2015 at 8:13 PM, Jeff Schnitzer j...@infohazard.org
 wrote:

 I'm no expert on JDO, but the low-level api does guarantee strong
 consistency for get-by-key operations (that is, unless you explicitly ask
 for eventual consistency). One of those SO responses suggested it is
 possible to have the GAE/JDO plugin log its low-level operations - that
 should at least point you in the right direction.

 One other thing that might be related: In the low-level API, within a
 single transaction, all reads will return the original value even if you
 write it within the transaction. I don't know what JDO does with this; I
 would expect that subsequent reads would return a session-cached instance
 and hide this little quirk. But maybe it's related to what you are 
 seeing?

 Jeff

 On Mon, Aug 3, 2015 at 1:52 PM, Thomas Becker 
 walkswiththeb...@gmail.com wrote:

 Thanks for your quick 

[google-appengine] Re: Best (hosted) CI solution to use with GAE (Python)?

2015-08-04 Thread Michael Spainhower
Also, CodeShip has built in support for deploying to GAE.  I have not used 
CodeShip myself.

https://codeship.com/documentation/continuous-deployment/deployment-to-google-app-engine/


On Monday, August 3, 2015 at 6:29:41 AM UTC-4, Filip Nilsson wrote:

 Hi!

 Does anyone have experiences to share regarding hosted CI providers and 
 Google App Engine. Currently I have my tests running locally using nose and 
 nose-gae. One provider I have been looking at is CircleCI. Seems quite 
 nice, they have instructions on how to set up testing with GAE.

 Any thoughts are welcome!

 Thanks in advance,
 Filip


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/862cde72-06fa-4a6f-b8ee-645edf9fc19e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] PHP Library for Cloud Datastore 2.0 Production Release

2015-08-04 Thread Tom Walder
https://github.com/tomwalder/php-gds

Enjoy!

New features in 2.0 include 

   - *Faster* - use of Google Protocol Buffer allows faster, low-level 
   access to Datastore
   - *Easier to use* - sensible defaults and auto-detection for AppEngine 
   environments
   - *Less dependencies* - no need for the Google PHP API Client, unless 
   running remote or from non-AppEngine environments
   - *Local development* - Using the Protocol Buffers allows us to access 
   the development server Datastore
   - *Local GQL support* - By default, the local development server does 
   not support GQL. I've included a basic GQL parser that makes this work.
   - *Data Migrations* - leverage multiple Gateways to ship data between 
   local and live Datastore
   - *Contention Exceptions* - standardised Exception for handling 
   Datastore transaction contention`
   - *Unit tests*
   - Optional drop-in JSON API Gateway for remote or non-AppEngine 
   environments (this was the only Gateway in 1.x)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/cd36a07b-6cd9-434b-aed5-34cabe230b08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] New deployment isn't reflected on custom domain

2015-08-04 Thread Patrick Prasquier
I uploaded my site a few months ago and it is since deployed on my custom 
domain: http://viamotion.viadialog.com.br/

Today, I wanted to update the site and the new version was deployed 
on http://viamotion-br.appspot.com/ but my custom domain still shows the 
previous version.

1. Why? In this case, I'm not talking about DNS propagation since nothing 
has changed at the DNS setup level.
2. Going to the old GAE admin console (for some reason, I couldn't find 
this menu in the new one), no domain is listed in domain setup. I don't 
remember the process I went through when assigning my site to my custom 
domain but I'm pretty sure it should have been in this section (and my 
CNAME points to ghs.googlehosted.com.). I tried to add my domain (again) 
but once I get to the Google Apps Admin console and see that the domain 
viadialog.com.br is verified, I have no option to push it to GAE.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f7a43098-fc42-4f4d-9265-6f3854c1d8c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: appstats analysis - Same request - Too much difference in serving time.

2015-08-04 Thread 'Alex Martelli' via Google App Engine
On Mon, Aug 3, 2015 at 4:43 AM, Rajesh Gupta 
rajesh.gu...@veersoftsolutions.com wrote:

 Hi,
 I have posted this post, with attachments twice.  But it did not make into
 the group.  Any limitation on posting with attachments.


Sorry Rajesh, it was a temporary glitch with the group -- I have now
unblocked your messages, and future ones from you should just go through
(sorry I don't know enough to actually help w/your question, but we can
hope somebody else on the group can).

Alex


   Any settings to be enabled.
 I have problem with serving the same request with big difference in the
 datastore and memcache timings.  Please see the below email.

 On Sat, Aug 1, 2015 at 10:12 AM, Rajesh Gupta 
 rajesh.gu...@veersoftsolutions.com wrote:

 resending... as it did not post earlier.


 Attached are the two screen shots showing the appstats
 - same request
 - same appengine instance
 - same user

 The first request took 2914 ms, and the second request takes only 1032ms
 As you can see in the attached images,

 3rd line datastore_v3.RunQuery, difference of 9ms
 5th line memcache.get, difference of 73ms
 6th line memcache.get, differnce 73ms

 Through out the request, there is lot of time difference in the datastore
 and memcache calls, between the two requests.

 What can it done to make consistent.

 --
 Rajesh
 *www.VeersoftSolutions.com http://www.VeersoftSolutions.com*
 *www.AccountingGuru.net http://www.AccountingGuru.net*
 *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*




 --
 Rajesh
 *www.VeersoftSolutions.com http://www.VeersoftSolutions.com*
 *www.AccountingGuru.net http://www.AccountingGuru.net*
 *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*




 --
 Rajesh
 *www.VeersoftSolutions.com http://www.VeersoftSolutions.com*
 *www.AccountingGuru.net http://www.AccountingGuru.net*
 *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/CA%2BS7ijYGLJvcPK8Cfi7Vmv%2B%3Dekx5BqyVxPeMdKt-o9K9Hdc1vw%40mail.gmail.com
 https://groups.google.com/d/msgid/google-appengine/CA%2BS7ijYGLJvcPK8Cfi7Vmv%2B%3Dekx5BqyVxPeMdKt-o9K9Hdc1vw%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAE46Be_55aWjiU-_PngcUzkH%2Bs%3D8sEKGeKPjBKFz-CmjYxCUHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Beehive/Weblogic jar file not available

2015-08-04 Thread 'Nick Payne' via Google App Engine
Hey Ken,

That sounds good. Please let us all know in this thread whatever you manage
to hear from them. Perhaps there was some kind of dynamic remote jar
loading happening and the routine/location has since changed?

I actually just learned of DWR based on your comment and have been looking
into it. It seems like a great technology. As said, this seems mysterious
to all involved. Perhaps their comment can shed some light.

Best wishes,

Nick

On Mon, Aug 3, 2015 at 4:16 PM, Ken Bowen k...@form-runner.com wrote:

 Hi Nick,

 That's what's strange.   I've been using dwr_2.0.6/7 for a number of
 years, and there's never been any *bee*.jar or *weblogic*.jar in my lib
 dir. To my memory, there were no other dependencies downloaded with dwr.
  Yet prior to  2015-07-18,  I've never seen this exception, and the dwr jar
 in my projects didn't change then.  In fact, my jar list didn't change at
 all before or immediately after  2015-07-18. (Later I checked moving up to
 dwr_2.0.10, but that still produces this exception).  That's why I wondered
 whether the Beehive/Weblogic jar could have been supplied by GAE earlier.
 It all seems very odd.  I'm going to contact the DWR guys and see what they
 say.
 Thanks,
 Ken


 On Monday, August 3, 2015 at 1:32:45 PM UTC-6, Nick (Cloud Platform
 Support) wrote:

 Hi Ken,

 It sounds as though this is a specific third-party technology unrelated
 to Google, and I can't find it documented anywhere that this would be
 available on the platform. It sounds as though your app itself would have
 had to bundle this dependency when it was uploaded. Do you still have
 access to the project source? Is the Beehive/Weblogic jar included in
 your project's lib/ folder?

 Regards,

 Nick

 On Saturday, August 1, 2015 at 3:12:59 PM UTC-4, Ken Bowen wrote:

 I've been using DWR 2.0.(6..10) (Direct Web Remoting) with two Appengine
 java projects for a number of years, with no problems.  About 2015-07-18,
 when production Appengine switched from using SDK 1.9.23 to SDK 1.9.24,  I
 began getting the following exception each time one of my projects starts:

 org.directwebremoting.util.CommonsLoggingOutput error: Failed to load
 'pageflow' (org.directwebremoting.beehive.PageFlowCreator)
 java.lang.reflect.InvocationTargetException
 at
 com.google.appengine.runtime.Request.process-eaa0bc63bfae4257(Request.java)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 ..
 Caused by: java.lang.ClassNotFoundException: Beehive/Weblogic jar file
 not available.
 at
 org.directwebremoting.beehive.PageFlowCreator.init(PageFlowCreator.java:58)
 .

 Neither of my projects had any code changes around that time.  Was the
 Beehive/Weblogic jar available in GAE before SDK 1.9.24?  Can anyone give
 me any pointers about this?
 Thanks in advance,
 Ken Bowen

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/KZwF_uTxAto/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/906ac590-c65a-42d1-a1d6-cbe6c7d886ea%40googlegroups.com
 https://groups.google.com/d/msgid/google-appengine/906ac590-c65a-42d1-a1d6-cbe6c7d886ea%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 

Nick
Technical Solutions Representative
Google Cloud Platform

*“It is like a lighted torch whose flame can be distributed to ever so many
other torches which people may bring along; and therewith they will cook
food and dispel darkness, while the original torch itself remains burning
ever the same. It is even so with the bliss of the Way.*
― Gautama Buddha
http://www.goodreads.com/author/show/2167493.Gautama_Buddha (On Computing
 Information Theory)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CABsfGcO85vJ4TnpjwD%2BrdgS7HJTSv5FEsAmUCgn_be5Z3akWHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: PROBLEM IN UPD

2015-08-04 Thread 'Nick Payne' via Google App Engine
Hi Deeksha,

Unfortunately, this isn't the right place to look for specific technical
support for third-party products. I suggest for future issues that you go
to stackoverflow.com with your question and see if someone there can help.
There is a much larger user-base there.

As to the specific issue, I think several possible answers can be found on
stackoverflow here
http://stackoverflow.com/questions/27453497/deploying-google-app-engine-with-python-failed.
It seems either using the latest SDK
https://cloud.google.com/appengine/downloads?hl=en (as of writing, this
is 1.9.24), changing your system to use python 2.7.8, or finding the
location in scripts/run_example.sh where dev_appserver.py is called and
adding the argument --skip_sdk_update_check=yes.

I hope some of this advice has been useful, and I wish you the best of luck
in your work. Sincerely,

Nick

On Sun, Aug 2, 2015 at 12:01 PM, Deeksha deekshaa...@gmail.com wrote:

 Thanks Nick, But I am still getting the same message. Because of this I am
 unable to install cbX studio on my PC I get following error what should I
 do?

 I am creating content on edX Studio and deploying it on Google App Engine
 using cbX according to this video
 https://www.youtube.com/watch?v=jUfccP5Rl5M  but in Step 2 Set up of cbX
 following error come in git shell. what shell I do ? I am not a programmer
 so these things are little hard for me Please help me.

 D:\eduself\coursebuilder_xblock_module-master sh ./scripts/run_example.sh
 INFO 2015-07-03 11:05:56,078 sdk_update_checker.py:241] Checking for
 updates
  to the SDK.
 Traceback (most recent call last):
   File ../google_appengine/dev_appserver.py, line 201, in module
 _run_file(__file__, globals())
   File ../google_appengine/dev_appserver.py, line 197, in _run_file
 execfile(script_path, globals_)
   File
 d:\eduself\coursebuilder_xblock_module-master\examples\google_appengine\
 google\appengine\tools\devappserver2\devappserver2.py, line 887, in
 module
 main()
   File
 d:\eduself\coursebuilder_xblock_module-master\examples\google_appengine\
 google\appengine\tools\devappserver2\devappserver2.py, line 880, in main
 dev_server.start(options)
   File
 d:\eduself\coursebuilder_xblock_module-master\examples\google_appengine\
 google\appengine\tools\devappserver2\devappserver2.py, line 673, in start
 update_checker.check_for_updates(configuration)
   File
 d:\eduself\coursebuilder_xblock_module-master\examples\google_appengine\
 google\appengine\tools\devappserver2\update_checker.py, line 91, in
 check_for_u
 pdates
 update_check.CheckForUpdates()
   File
 d:\eduself\coursebuilder_xblock_module-master\examples\google_appengine\
 google\appengine\tools\sdk_update_checker.py, line 255, in CheckForUpdates
 runtime=runtime))
   File
 d:\eduself\coursebuilder_xblock_module-master\examples\google_appengine\
 google\appengine\tools\appengine_rpc.py, line 409, in Send
 f = self.opener.open(req)
   File c:\Python27\lib\urllib2.py, line 431, in open
 response = self._open(req, data)
   File c:\Python27\lib\urllib2.py, line 449, in _open
 '_open', req)
   File c:\Python27\lib\urllib2.py, line 409, in _call_chain
 result = func(*args)
   File c:\Python27\lib\urllib2.py, line 1240, in https_open
 context=self._context)
 TypeError: do_open() got an unexpected keyword argument 'context'
 D:\eduself\coursebuilder_xblock_module-master

 Regards -
 Deeksha Mishra
 Junior Research Fellow
 Department of Education
 University Of Lucknow
 Lucknow, India

 Admin-
 http://shikshadeeksha.blogspot.in/
 http://beingrs.blogspot.in/
 https://www.facebook.com/UgcNetShikshaShastra


 On Mon, Jul 20, 2015 at 10:58 PM, Nick (Cloud Platform Support) 
 pay...@google.com wrote:

 Hi Deeksha,

 It seems as though the timestamp is different on the two versions by about
 9.5 days
 https://www.google.ca/search?q=1433876744+-+1434691675oq=1433876744+-+1434691675aqs=chrome..69i57j69i64.13623j0j4sourceid=chromees_sm=122ie=UTF-8#q=(1434691675+-+1433876744)+%2F+(60+*+60+*+24),
 so the new version your computer is notifying you of is likely a patch
 released a few days after the other more recent release. You should
 definitely download the latest version despite both being 1.9.23, since
 continuing to use the unpatched SDK might result in some issues for you.

 Best wishes,

 Nick

 On Sunday, July 19, 2015 at 4:58:34 AM UTC-4, Deeksha Mishra wrote:


 https://lh3.googleusercontent.com/-C1rwrCF9wwY/VatmZnA5qYI/HvM/j6LO_NAYQC4/s1600/Screenshot_4.png
 I UPDATED AAPENGINE BUT STILL IT SHOW THIS MESSAGE

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/lkuaApX-mjE/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to 

[google-appengine] Re: Download specific Module code?

2015-08-04 Thread Paul Canning
Also, for download_app the -A option does not work (for me) unless I put 
the PROJECT name. I tried app (modules) names but it says the application 
doesnt exist. I have full permissions.

Do you have to login to appcfg.py download_app in any way to show you 
are authorized?

I tried appcfg.py download_py -A default . (default is the app name of 
Website A) and it failed.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9f5a0752-2fe7-4b18-9d76-bafb6f257655%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Download specific Module code?

2015-08-04 Thread Ryan (Cloud Platform Support)
Can you send me the two yamls in a private message?

On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote:

 I know you can download your default module code using appcfg.py 
 download_app and even a specific version of the default module.

 Nut is it possible to download the code of a MODULE?

 E.G I have the the default app, Website A. I thne have a module, which is 
 an entirely different site, Website B.

 The appcfg.py command will only let me download versions of Website A.

 Here is the usage:

 Usage: appcfg.py [options] download_app -A app_id [ -V version ] 
 out-dir

 See, no options for module.

 So, how can I download specific module code?


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b6eac84d-6cbd-426c-ab4b-02cab21862e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Download specific Module code?

2015-08-04 Thread Paul Canning
What's the difference between App Engine Modules and Company modules?

My modules are uploaded separately, so Website A uses app.yaml and Website
B uses app-b.yaml

They exist on app engine as separate modules, each with their own versions.

The appcfg command cannot grab anything other then Website A. And when it
downloaded Website A, it only download the active (default) version.
On 4 Aug 2015 17:39, Ryan (Cloud Platform Support) rbruy...@google.com
wrote:

 The error you are seeing means you do not have access to the code
 https://cloud.google.com/appengine/docs/python/tools/uploadinganapp?hl=en#Python_Downloading_source_code
 .

 For sanity sake I tested this:

 Created a fresh app
 Create 2 modules (modulea, moduleb)
 Uploaded using appcfg.py update app.yaml modulea moduleb
 Confirmed all pages worked
 Downloaded using: appcfg.py download_app -A app-id-here .
 All files for ALL modules are present.

 What I think is happening with you is you are confusing App Engine modules
 https://cloud.google.com/appengine/docs/python/modules/ and company
 decided modules. Do they have different app ids?

 On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote:

 I know you can download your default module code using appcfg.py
 download_app and even a specific version of the default module.

 Nut is it possible to download the code of a MODULE?

 E.G I have the the default app, Website A. I thne have a module, which is
 an entirely different site, Website B.

 The appcfg.py command will only let me download versions of Website A.

 Here is the usage:

 Usage: appcfg.py [options] download_app -A app_id [ -V version ]
 out-dir

 See, no options for module.

 So, how can I download specific module code?

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/YOSxlbn-SbY/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/55cb7ed9-538d-4324-b389-f70a9790dafe%40googlegroups.com
 https://groups.google.com/d/msgid/google-appengine/55cb7ed9-538d-4324-b389-f70a9790dafe%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAH%2B40aPxxFhsGDddBWNScJnbLyUTsNTeP2Rkgin9F0HJS6vpnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: appstats analysis - Same request - Too much difference in serving time.

2015-08-04 Thread Rajesh Gupta
Hi,
I have posted this post, with attachments twice.  But it did not make into
the group.  Any limitation on posting with attachments.  Any settings to be
enabled.
I have problem with serving the same request with big difference in the
datastore and memcache timings.  Please see the below email.

On Sat, Aug 1, 2015 at 10:12 AM, Rajesh Gupta 
rajesh.gu...@veersoftsolutions.com wrote:

 resending... as it did not post earlier.


 Attached are the two screen shots showing the appstats
 - same request
 - same appengine instance
 - same user

 The first request took 2914 ms, and the second request takes only 1032ms
 As you can see in the attached images,

 3rd line datastore_v3.RunQuery, difference of 9ms
 5th line memcache.get, difference of 73ms
 6th line memcache.get, differnce 73ms

 Through out the request, there is lot of time difference in the datastore
 and memcache calls, between the two requests.

 What can it done to make consistent.

 --
 Rajesh
 *www.VeersoftSolutions.com http://www.VeersoftSolutions.com*
 *www.AccountingGuru.net http://www.AccountingGuru.net*
 *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*




 --
 Rajesh
 *www.VeersoftSolutions.com http://www.VeersoftSolutions.com*
 *www.AccountingGuru.net http://www.AccountingGuru.net*
 *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*




-- 
Rajesh
*www.VeersoftSolutions.com http://www.VeersoftSolutions.com*
*www.AccountingGuru.net http://www.AccountingGuru.net*
*Accounting/Inventory/Orders on Google Cloud Platform and Mobile*

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CA%2BS7ijYGLJvcPK8Cfi7Vmv%2B%3Dekx5BqyVxPeMdKt-o9K9Hdc1vw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Download specific Module code?

2015-08-04 Thread Ryan (Cloud Platform Support)
The error you are seeing means you do not have access to the code 
https://cloud.google.com/appengine/docs/python/tools/uploadinganapp?hl=en#Python_Downloading_source_code
. 

For sanity sake I tested this:

Created a fresh app
Create 2 modules (modulea, moduleb)
Uploaded using appcfg.py update app.yaml modulea moduleb
Confirmed all pages worked
Downloaded using: appcfg.py download_app -A app-id-here .
All files for ALL modules are present.

What I think is happening with you is you are confusing App Engine modules 
https://cloud.google.com/appengine/docs/python/modules/ and company 
decided modules. Do they have different app ids?

On Tuesday, August 4, 2015 at 6:32:00 AM UTC-4, Paul Canning wrote:

 I know you can download your default module code using appcfg.py 
 download_app and even a specific version of the default module.

 Nut is it possible to download the code of a MODULE?

 E.G I have the the default app, Website A. I thne have a module, which is 
 an entirely different site, Website B.

 The appcfg.py command will only let me download versions of Website A.

 Here is the usage:

 Usage: appcfg.py [options] download_app -A app_id [ -V version ] 
 out-dir

 See, no options for module.

 So, how can I download specific module code?


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/55cb7ed9-538d-4324-b389-f70a9790dafe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Google IDs produced by the Users service seem to differ from those produced by OAuth2

2015-08-04 Thread 'Nick Payne' via Google App Engine
Hey Tempy,

I think the best way to proceed would be to simply have your users go
through a quick auth flow upon returning to your site. I don't think it's
possible to convert a GAE User object into the equivalent Google+ ID info.

Best wishes,

Nick

On Wed, Jul 22, 2015 at 10:43 AM, tempy fay...@gmail.com wrote:

 Hi Nick,

 Thanks for the reply. I guess then my question is if there is any way to
 map the general Google account ID to the corresponding App Engine one. I'm
 definitely willing to run a conversion API from inside the GAE sandbox for
 this purpose, but I have no idea how to do the mapping even within GAE.

 Thanks!

 On Thursday, July 9, 2015 at 2:09:26 AM UTC+2, Nick (Cloud Platform
 Support) wrote:

 Hey tempy,

 This ID value is unique to the Google App Engine Users service, and won't
 be the same as your general Google account ID. You can view the difference
 between the two ID values by playing around with
 http://gae-login-explainer.appspot.com/, which also explains the main
 differences between the Google sign-in for websites button and App Engine
 login URL methods of authentication.

 Let me know if you've got any questions, and I'll do my best to help
 clarify.

 On Sunday, July 5, 2015 at 2:07:53 PM UTC-4, tempy wrote:

 I have a production app on GAE that's been running for a while. I've
 been using the Users service for authentication, and my user entities in
 the datastore hold on to the unique account ID provided by the users
 service. Now, I want to bolt on some new functionality that will live
 outside of the GAE environment, but which also needs to authenticate to the
 existing GAE app. I've tried to do this with standard OAuth2 (as described
 here: https://developers.google.com/identity/sign-in/web/), but it
 seems that the Google IDs that are given out by OAuth2 are not the same for
 a given user when they login through the Users service on GAE vs regular
 OAuth2. Specifically, the Oauth2 produces a JWT which unpacks to something
 like:

 {
 iss: accounts.google.com,
 sub: 100768731291047440489,
 azp: 
 995713799104-tn1tj3qj8l4h1rhu0sucpb6aormqekls.apps.googleusercontent.com
 ,
 email: john...@googlemail.com,
 at_hash: PKaCDQBHNPH5HTbRXuAcEw,
 email_verified: true

- ...


- }


 The sub value in that response should contain the user's unique ID, but
 it doesn't match that of the Users API. So, am I missing something or is it
 the case that Google's IDs are only available within the context of the
 users service and differ outside of it? If this is indeed the case, is
 there any way to translate from one sort of ID to the other?

 Many thanks,
 mike

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/OMsuFPAYS1Y/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/google-appengine/d2a157bb-c886-4dcf-a236-1f3e8d9902aa%40googlegroups.com
 https://groups.google.com/d/msgid/google-appengine/d2a157bb-c886-4dcf-a236-1f3e8d9902aa%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 

Nick
Technical Solutions Representative
Google Cloud Platform

*“It is like a lighted torch whose flame can be distributed to ever so many
other torches which people may bring along; and therewith they will cook
food and dispel darkness, while the original torch itself remains burning
ever the same. It is even so with the bliss of the Way.*
― Gautama Buddha
http://www.goodreads.com/author/show/2167493.Gautama_Buddha (On Computing
 Information Theory)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CABsfGcPHvAFJCRZz5%2Bd%3Db%2BW9%3DsamSLLg2ApVTL-nRE%3DmOmpf2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How do I use Federated Login with OpenID Connect?

2015-08-04 Thread NP
Hello all,

I have an application (python) on GAE which uses Federated Login. In 
app.yaml, I have restricted some urls to be accessible only to admins (i.e. 
login; admin). According to GAE documentation, any url restricted to admin 
for applications using Federated Login will trigger a call to 
/_ah/loginrequired and I'm supposed to handle such calls by getting user to 
login using* users.create_login_url(dest_url, federated_identity).*

Documentation for users.create_login_url says if no federated_identity is 
specified (when your site is set to use federated identity), the system 
will default to Google as the OpenID provider. So the application currently 
defaults to  'https://www.google.com/accounts/o8/id' which is no longer 
supported by Google and I believe this is the reason why it gives me a 500 
server error.

I have tried using the published Google Libraries for OpenID Connect. If I 
use the library outside of the create_login_url, I'm able to log in and get 
the user email but calling users.get_current_user() returns None and so the 
application doesn't see me as being logged in which means I don't get 
access to the url that I had restricted to admins. If I apply the OpenID 
Connect url to create_login_url, I get a 500 server error.

Does anybody know how to handle requests to urls restricted to logged-in 
users/admins using the new OpenID Connect?


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8383fb62-fd69-4ad0-923f-13fed342309d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Not very friendly - New Datastore Query Screen

2015-08-04 Thread Ryan (Cloud Platform Support)
I have started processing the PIT's. I needed to split them as they are 4 
unique requests. Please 'Star' each one to get updates. I needed some more 
information on one, please provide it so I can continue.

https://code.google.com/p/googleappengine/issues/detail?id=12204https://code.google.com/p/googleappengine/issues/detail?id=12205https://code.google.com/p/googleappengine/issues/detail?id=12206https://code.google.com/p/googleappengine/issues/detail?id=12207


On Monday, June 29, 2015 at 5:32:44 AM UTC-4, aswath wrote:

 Hi, 
 The new Datastore Query Screen is not very friendly to query and to do 
 the analysis.  Several issues. 
 - The screen itself takes long time to appear 
 - After doing the query using the namespace, as you scroll down the 
 results, there is no indication, to say it is the end of the results 
 - Drill down (click on one of the row), then do browser back button, 
 then the query filter is lost.  It takes a very long time here, when 
 you press the back button 
 - The results view is shown from the beginning. The view is not 
 positioned at the same place, where the row was clicked, when I did 
 the drill down in the previous step. 

 -Aswath 
 www.AccountingGuru.net 
 (Mobile + Online inventory/order/accounting service) 


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/566d6bc0-d4b7-4772-8d68-c27eaeaac6b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: appstats analysis - Same request - Too much difference in serving time.

2015-08-04 Thread Jason Collins
Rajesh - if you're performing *exactly* the same execution and are simply 
asking about the variability - that's just sort of the nature of the 
distributed RPCs. There can sometimes be pretty wide range of response 
times in RPCs.

Depending on your frameworks, there are ways to execute queries in parallel 
which may help. Also, your framework may be trying to help by 
automatically using memcache (e.g., NDB does this, though not for query 
results); if you memcache hit rate is low, then all the memcache overhead 
is just waste.


On Tuesday, 4 August 2015 09:21:10 UTC-7, Alex Martelli wrote:



 On Mon, Aug 3, 2015 at 4:43 AM, Rajesh Gupta 
 rajesh...@veersoftsolutions.com javascript: wrote:

 Hi,
 I have posted this post, with attachments twice.  But it did not make 
 into the group.  Any limitation on posting with attachments.


 Sorry Rajesh, it was a temporary glitch with the group -- I have now 
 unblocked your messages, and future ones from you should just go through 
 (sorry I don't know enough to actually help w/your question, but we can 
 hope somebody else on the group can).

 Alex
  

   Any settings to be enabled.
 I have problem with serving the same request with big difference in the 
 datastore and memcache timings.  Please see the below email.

 On Sat, Aug 1, 2015 at 10:12 AM, Rajesh Gupta 
 rajesh...@veersoftsolutions.com javascript: wrote:

 resending... as it did not post earlier.


 Attached are the two screen shots showing the appstats
 - same request
 - same appengine instance
 - same user

 The first request took 2914 ms, and the second request takes only 1032ms
 As you can see in the attached images, 

 3rd line datastore_v3.RunQuery, difference of 9ms 
 5th line memcache.get, difference of 73ms
 6th line memcache.get, differnce 73ms

 Through out the request, there is lot of time difference in the 
 datastore and memcache calls, between the two requests.

 What can it done to make consistent.

 -- 
 Rajesh
 *www.VeersoftSolutions.com http://www.VeersoftSolutions.com*
 *www.AccountingGuru.net http://www.AccountingGuru.net*
 *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*




 -- 
 Rajesh
 *www.VeersoftSolutions.com http://www.VeersoftSolutions.com*
 *www.AccountingGuru.net http://www.AccountingGuru.net*
 *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*




 -- 
 Rajesh
 *www.VeersoftSolutions.com http://www.VeersoftSolutions.com*
 *www.AccountingGuru.net http://www.AccountingGuru.net*
 *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*

 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-appengi...@googlegroups.com javascript:.
 To post to this group, send email to google-a...@googlegroups.com 
 javascript:.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-appengine/CA%2BS7ijYGLJvcPK8Cfi7Vmv%2B%3Dekx5BqyVxPeMdKt-o9K9Hdc1vw%40mail.gmail.com
  
 https://groups.google.com/d/msgid/google-appengine/CA%2BS7ijYGLJvcPK8Cfi7Vmv%2B%3Dekx5BqyVxPeMdKt-o9K9Hdc1vw%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6767dfbf-4505-42ed-8549-f0d1796bddf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.