Re: [google-appengine] Large number of sites all over the world request an image twice within a second or so

2013-02-11 Thread Guido van Rossum
...@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- --Guido van Rossum (python.org/~guido) -- You received

Re: [google-appengine] NDB Parallel Tasklets

2013-01-31 Thread Guido van Rossum
can't run! Hope this helps. It is important to get this. (Also that no future runs until you yield something. Futures are buffered in the app's memory until a yield forces all buffered futures out to the servers.) -- --Guido van Rossum (python.org/~guido) -- You received this message because

Re: [google-appengine] NDB Parallel Tasklets

2013-01-30 Thread Guido van Rossum
the other operation. -- --Guido van Rossum (python.org/~guido) -- 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

Re: [google-appengine] Re: Cost of updating list property

2013-01-25 Thread Guido van Rossum
/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine

Re: [google-appengine] Problems loading libraries

2013-01-17 Thread Guido van Rossum
, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- --Guido van Rossum (python.org/~guido) -- You received

Re: [google-appengine] Re: Problems loading libraries

2013-01-17 Thread Guido van Rossum
://groups.google.com/group/google-appengine?hl=en. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send

Re: [google-appengine] Re: Problems loading libraries

2013-01-17 Thread Guido van Rossum
: Hello, Recursive imports means libraries inside libraries? I have lib as library, and inside it i have another library called userLib. That's a problem...? I will try to move to different folders... El jueves, 17 de enero de 2013 21:43:07 UTC+1, Guido van Rossum escribió: Recursive imports

Re: [google-appengine] AttributeError: 'Entity' object has no attribute '_to_pb' when trying to finalize a blobstore file.

2013-01-16 Thread Guido van Rossum
-appengine/-/EIhPvR7Q2IUJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- --Guido van

Re: [google-appengine] Understanding keys-only query costs

2013-01-04 Thread Guido van Rossum
(it's in the builtins section). If that does work, you must configure the appstats shell in your appengine_config.py for it to work in production, but it should be on by default in the dev server. (Python only.) -- --Guido van Rossum (python.org/~guido) -- You received this message because you

Re: [google-appengine] Sudden increase in Datastore READ operations

2012-12-27 Thread Guido van Rossum
, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com

Re: [google-appengine] Guido leaving App Engine team (and Google)

2012-12-07 Thread Guido van Rossum
Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- --Guido van Rossum

Re: [google-appengine] Google app engine and lock-in

2012-12-06 Thread Guido van Rossum
. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr

Re: [google-appengine] Re: ndb, deadlock waiting for flush, and maximum recursion in app_logging

2012-11-01 Thread Guido van Rossum
fine -- however if you were to call much_stuff() from a tasklet, you'd be in trouble again. Thanks so much taking the time to answer these questions; extremely helpful and greatly appreciated. You're welcome. -- --Guido van Rossum (python.org/~guido) -- You received this message because you

[google-appengine] Re: ndb, deadlock waiting for flush, and maximum recursion in app_logging

2012-10-30 Thread Guido van Rossum
Hi ckhan, I have debugged a similar problem for an internal app once. The root cause was that they were mixing synchronous and async API calls. In particular, inside a tasklet they were making a synchronous call. The synchronous call is run by invoking the event loop recursively; what may

Re: [google-appengine] Re: ndb, deadlock waiting for flush, and maximum recursion in app_logging

2012-10-30 Thread Guido van Rossum
. The best thing to do is to only ever use it with simple global functions that only takes simple types (e.g. ints and strings, maybe lists of those) as arguments. Thanks again! -ckhan On Tuesday, October 30, 2012 12:07:42 PM UTC-7, Guido van Rossum wrote: Hi ckhan, I have debugged a similar

[google-appengine] Using ThreadManager

2012-10-20 Thread Guido van Rossum
No need for threads. Use the async urlfetch API instead. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Z9Fl1QmJs0YJ. To post to this group, send

[google-appengine] Re: ndb BadRequestError only on production

2012-10-08 Thread Guido van Rossum
I don't think this has anything to do with the previous thread that had the same subject. The problem must be that your ComputedProperty is trying returning a Model instance. That's unfortunately not supported; ComputedProperty as it is currently implemented can only support the basic data

[google-appengine] Re: ndb BadRequestError only on production

2012-10-08 Thread Guido van Rossum
On Monday, October 8, 2012 1:28:57 PM UTC-7, Guido van Rossum wrote: I don't think this has anything to do with the previous thread that had the same subject. Apologies, I think you had the same issue, you just got there a different way. The problem must be that your ComputedProperty

Re: [google-appengine] Re: NDB Query offset - limit

2012-09-25 Thread Guido van Rossum
it possible to do the right thing, not necessarily the most convenient thing (which would depend on the needs of a particular app). Thanks for your time and for heard me. Regards. Moisés Belchín. 2012/9/24 Guido van Rossum gu...@google.com Hi Moises, I think you may be able to solve

[google-appengine] Re: NDB Transactions

2012-09-24 Thread Guido van Rossum
Sorry, the underlying Datastore does not (yet) support nested transactions, so you cannot nest them at all. On Monday, September 24, 2012 1:53:43 AM UTC-7, Moises Belchin wrote: Hi, In NDB we can use @ndb.transactional(xg=True). @ndb.transactional(xg=True) can be nested? If yes, how many

Re: [google-appengine] Re: NDB Query offset - limit

2012-09-24 Thread Guido van Rossum
property must be indexed if you want to order by MaqHistMov.idsm desc. If you use limit, offset query fetch this requirement doesn't exist. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post

[google-appengine] Re: NDB Query offset - limit

2012-09-24 Thread Guido van Rossum
FWIW, this behavior appears to be a bug in NDB. I've filed http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=210 I'll investigate. On Wed, Sep 19, 2012 at 4:22 PM, Guido van Rossum gu...@google.com wrote: On Wednesday, September 19, 2012 8:51:48 AM UTC-7, Moises Belchin wrote

Re: [google-appengine] Re: NDB Query offset - limit

2012-09-20 Thread Guido van Rossum
. Moisés Belchín. 2012/9/20 Guido van Rossum gu...@google.com On Wednesday, September 19, 2012 8:51:48 AM UTC-7, Moises Belchin wrote: Hi guys, I have this query: q = MyKind.query() regs = q.fetch(offset = 990, limit = 10) // Returns 10 entities. If I press next button on my UI: q

[google-appengine] Re: NDB Query offset - limit

2012-09-19 Thread Guido van Rossum
On Wednesday, September 19, 2012 8:51:48 AM UTC-7, Moises Belchin wrote: Hi guys, I have this query: q = MyKind.query() regs = q.fetch(offset = 990, limit = 10) // *Returns 10 entities.* If I press next button on my UI: q = MyKind.query() regs = q.fetch(offset = 1000, limit = 10) //

[google-appengine] Re: Unit testing with webtest problem

2012-09-11 Thread Guido van Rossum
You'll probably get more help from StackOverflow.com. You'll need to provide more info, nobody can help you debug this with just that traceback information unless they're psychic. On Sunday, September 9, 2012 10:06:33 AM UTC-7, Richard Arrano wrote: Hello, I've been using webtest to unit

[google-appengine] Re: Possible error in the documentation?

2012-08-27 Thread Guido van Rossum
I'll just fix this. (If you already filed a bug tell me the URL.) On Sunday, August 26, 2012 4:30:33 PM UTC-7, Anand Mistry wrote: Yes. Please file a bug. On Monday, 27 August 2012 04:05:52 UTC+10, Attila-Mihaly Balazs wrote: I believe that the following example is incorrect in the

[google-appengine] Re: Creating a new instance of an entity using ndb has previously interacted with entity's data stored

2012-07-28 Thread Guido van Rossum
The default=[] is causing this. All instances share the same list object this way. You'll have to find some other way of initializing the value. Maybe you cna just use a repeated string property? On Saturday, July 28, 2012 11:56:46 AM UTC-7, Robert Fischer wrote: Hi, I'm creating a new

[google-appengine] Fwd: Is anyone using Appstats with Firepython support?

2012-07-13 Thread Guido van Rossum
support for Firepython in appstats? -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email

[google-appengine] Re: Transactions and queries in python app engine

2012-07-09 Thread Guido van Rossum
On Monday, July 9, 2012 4:28:30 PM UTC+2, pdknsk wrote: I don't know if it's documented, but it was mentioned in the release notes. The Datastore API now includes a NonTransactional decorator to ensure that a function is run outside of a transaction. Existing transactions are paused

[google-appengine] Re: ndb BadRequestError only on production

2012-07-05 Thread Guido van Rossum
On Wednesday, July 4, 2012 1:59:49 AM UTC+2, mma wrote: Hi there. I get the following error only on production: BadRequestError: BLOB, ENITY_PROTO or TEXT properties must be in a raw_property field It happens when I put() a instance of the Receipt class (extends ndb.Model) Below, I

[google-appengine] Re: in admin console, how to select a db or ndb entity with gql by id or name?

2012-07-02 Thread Guido van Rossum
I'm sorry, I don't understand. What function do you believe is missing in NDB? On Monday, July 2, 2012 11:51:37 AM UTC+2, saintthor wrote: thank you. and, don't you think ndb need this function too? 在 2012年7月2日星期一UTC+8上午3时14分36秒,Guido van Rossum写道: That has nothing to do with ndb; none

[google-appengine] Re: in admin console, how to select a db or ndb entity with gql by id or name?

2012-07-01 Thread Guido van Rossum
That has nothing to do with ndb; none of those would work with db either. The correct query has WHERE __key__ = KEY(). On Sunday, July 1, 2012 5:38:00 PM UTC+2, saintthor wrote: ndbModel( id = 'KeyName' ).put() SELECT * FROM ndbModel where key_name=KEY( 'dbModel', 'KeyName' ) SELECT

[google-appengine] Re: how many db ops does it cost when accessing a ndb entity with a StructuredProperty?

2012-06-24 Thread Guido van Rossum
On Sunday, June 24, 2012 5:40:15 AM UTC-7, saintthor wrote: are there a more ops for the StructuredProperty? StructuredProperty is essentially just a bunch of properties with funny names. The cost depends on how many indexed properties you have in total in an entity (including in structured

[google-appengine] Re: how to get all entities of one Model for ndb?

2012-06-21 Thread Guido van Rossum
/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/edit --Guido van Rossum -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/bJ7f0jQC9WAJ. To post to this group, send email to google

[google-appengine] Re: UnprojectedPropertyError (unseen error until today)

2012-06-20 Thread Guido van Rossum
This seems a repeat from a post made yesterday. The solution was a bug in user code that wasn't detected by NDB before; the user write SELECT var instead of SELECT *. On Tuesday, June 19, 2012 2:27:16 PM UTC-7, erineg1 wrote: NDB Team-- It appears something happened today as I had some code

[google-appengine] Re: 1.7.0 Prerelease Now Available

2012-06-19 Thread Guido van Rossum
you please submit this to stackoverflow, with more details about what your code looks like and so on, so someone can help you? --Guido van Rossum -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit

[google-appengine] Re: can i select a name for a key when using ndb?

2012-06-16 Thread Guido van Rossum
='zzz').put() --Guido van Rossum -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/8alD7GxEKV4J. To post to this group, send email to google-appengine

[google-appengine] Re: NDB Caching Question

2012-04-25 Thread Guido van Rossum
On Tuesday, April 24, 2012 3:07:35 PM UTC-7, Richard Arrano wrote: Thank you for the quick and very informative reply. I wasn't even aware this was possible with NDB. How would those x.yref.get() calls show up in AppStats? Or would they at all if it's just pulling it from memory? If

[google-appengine] Re: NDB Caching Question

2012-04-24 Thread Guido van Rossum
On Monday, April 23, 2012 10:21:26 PM UTC-7, Richard Arrano wrote: I'm switching from db to ndb and I have a question regarding caching: In the old db, I would have a class X that contains a reference to a class Y. The Y type would be accessed most frequently and rarely change. So when I

[google-appengine] Re: equivalent for is_saved() with ndb

2012-03-27 Thread Guido van Rossum
and ent.key.id(): # It has a complete key. else: # Hasn't been written, ever. However this can be fooled if you explicitly set the key or the id when you create an entity, e.g. ent = Employee(id='joe') or ent = Employee(key=ndb.Key(Employee, 'joe')) (These two are equivalent.) --Guido van Rossum

Re: [google-appengine] Re: equivalent for is_saved() with ndb

2012-03-27 Thread Guido van Rossum
again (or at least trying to put them again) On Mar 27, 2012, at 3:38 PM, Guido van Rossum wrote: On Tuesday, March 27, 2012 6:41:25 AM UTC-7, aschmid wrote: is there an equivalent of the db.Model function is_saved() with ndb.Model? No; what are you trying to do? You might be able to check

Re: [google-appengine] Re: equivalent for is_saved() with ndb

2012-03-27 Thread Guido van Rossum
you need is the parent *key*, it doesn't need to have an entity. --Guido On Tue, Mar 27, 2012 at 14:47, Andreas a.schmi...@gmail.com wrote: not a good option in my case. On Mar 27, 2012, at 5:23 PM, Guido van Rossum wrote: You might be able to use get_or_insert() and benefit from the in-memory

Re: [google-appengine] Re: equivalent for is_saved() with ndb

2012-03-27 Thread Guido van Rossum
like is_dirty() which is True if the entity has never been saved or has changed since it was loaded. On Tue, Mar 27, 2012 at 3:19 PM, Guido van Rossum gu...@google.com wrote: Sorry to hear that. I guess you could manually set a flag on the parent entity that indicates that you haven't written

[google-appengine] Re: Why can't I filter() based on key?

2012-03-21 Thread Guido van Rossum
but the datastore contains a Key object, which is a structured thing that will never match any string. --Guido van Rossum -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google

[google-appengine] Beware: slight NDB incompatibilities coming soon

2012-03-20 Thread Guido van Rossum
, but an approximation is available in the sandbox branch of the repo. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from

[google-appengine] NDB 0.9.9 released

2012-03-03 Thread Guido van Rossum
?pli=1 Check out the repo: hg clone https://code.google.com/p/appengine-ndb -experiment/ -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine

[google-appengine] Re: [appengine-python] Re: NDB 0.9.9 released

2012-03-03 Thread Guido van Rossum
) these incompatibilities will hit production when the 1.6.4 SDK goes out (actually production will see them a few days earlier) so please review your code, and if possible test with NDB 0.9.9. I also hope that 1.6.4 will see NDB's experimental label removed -- but no guarantees! -- --Guido van Rossum (python.org/~guido

[google-appengine] Official NDB docs now online! And other exciting NDB news

2012-03-01 Thread Guido van Rossum
/7b5bb6c8bac1a6b5 -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine

[google-appengine] Re: [appengine-python] 2012 US PyCon -- GAE Related Sprints

2012-02-23 Thread Guido van Rossum
On Feb 22, 9:51 pm, Robert Kluin robert.kl...@gmail.com wrote: On Wed, Feb 22, 2012 at 12:18, Guido van Rossum gu...@google.com wrote: On Mon, Feb 20, 2012 at 22:46, Robert Kluin robert.kl...@gmail.com wrote:  Some current items on the project list:    - An ext.db mock for unit tests

[google-appengine] Re: [appengine-python] 2012 US PyCon -- GAE Related Sprints

2012-02-22 Thread Guido van Rossum
at http://groups.google.com/group/google-appengine-python?hl=en. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com

[google-appengine] Re: 1.6.2 Pre-Release SDKs Out

2012-02-06 Thread Guido van Rossum
On Jan 25, 9:39 am, someone1 someo...@gmail.com wrote: On a side note, will google.appengine.ext.ndb.utils.DEBUG be set to True or False in production? It will stay True. However feel free to set it to False in your app after you've debugged it (your app, that is :-). This will reduce the

[google-appengine] NDB 0.9.6 is released

2012-01-19 Thread Guido van Rossum
tracker: http://code.google.com/p/appengine-ndb-experiment/issues/list Mailing list / group: https://groups.google.com/group/appengine-ndb-discuss?pli=1 Check out the repo: hg clone https://code.google.com/p/appengine-ndb-experiment/ -- --Guido van Rossum (python.org/~guido) -- You received

[google-appengine] Re: caching and in-transaction queries

2012-01-10 Thread Guido van Rossum
, this might be how it is intended to work?  I know that normally (without caching), queries made in a transaction do access the pre-transaction state.  --Amy -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App

[google-appengine] Re: NDB query.filter

2012-01-10 Thread Guido van Rossum
variable argument list feature which generates a separate argument for each item in the list. Good luck with your query! --Guido van Rossum -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine

[google-appengine] NDB release 0.9.5 is out

2012-01-06 Thread Guido van Rossum
at alarming levels. - Issue 126: Improve repr() of Futures. - Issue 127: Fix Deadlock error in code that doesn't use @context.toplevel. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group

[google-appengine] Re: [appengine-python] Re: 1.6.0 Prerelease SDKs are out

2011-11-13 Thread Guido van Rossum
. To unsubscribe from this group, send email to google-appengine-python+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-python?hl=en. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed

[google-appengine] Re: [appengine-python] Re: 1.6.0 Prerelease SDKs are out

2011-11-07 Thread Guido van Rossum
On Tue, Nov 1, 2011 at 12:18, Дмитрий Лисовский lisov...@gmail.com wrote: And what about threadsafe: true? You can put it in your app.yaml, but the dev_appserver.py will not handle multiple requests in parallel, sorry. -- --Guido van Rossum (python.org/~guido) -- You received this message

[google-appengine] Re: [appengine-python] Re: 1.6.0 Prerelease SDKs are out

2011-11-02 Thread Guido van Rossum
. For more options, visit this group at http://groups.google.com/group/google-appengine-python?hl=en. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google

[google-appengine] Re: What is the datastore charges for db.GqlQuery under new pricing scheme?

2011-10-25 Thread Guido van Rossum
hits.append(entity) # Don't do this! --Guido van Rossum -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr

[google-appengine] Re: 1.5.2 SDK Prerelease

2011-07-13 Thread Guido van Rossum
/datastore/async.html --Guido van Rossum (not Alfred, but Datastore Plus' author :-) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email

[google-appengine] Re: Sudden GAE Behavior Change! Urgent HELP needed!

2011-05-06 Thread Guido van Rossum
of tzinfo that has a reference to a Model instance? --Guido van Rossum -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google

[google-appengine] Re: Sudden GAE Behavior Change! Urgent HELP needed!

2011-05-04 Thread Guido van Rossum
problems and glad you found a fix already! --Guido van Rossum -Joshua On May 4, 2011, at 10:10 AM, Joshua Smith wrote: I have some code that has been working for a really long time, that suddenly started throwing an exception. In my app, I have to keep some different time zones

Re: [google-appengine] modifying an existing datamodel in the future.

2011-01-18 Thread Guido van Rossum
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- --Guido van Rossum (python.org/~guido) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email

[google-appengine] Re: Zip Importer High CPU every request

2009-01-08 Thread Guido van Rossum
One question -- are you defining a main() function? If not, your entire app may be reloaded each time. Try putting logging statements (or prints to sys.stderr) at the top-level of your module, and check in the logs for these -- they should only be logged for the first request. If they are logged