[google-appengine] Re: best away to know numbers of rows in a entities

2009-06-24 Thread Ian Lewis
If you used numeric keys then you can do pagination by key in order to get all items from the datastore and count them. Basically this involves querying the datastore several times, each time filtering on keys that are greater than the highest key from the results of the previous query. You won't

[google-appengine] Model with key_name not have key().id

2009-06-24 Thread Ritesh Nadhani
Hi When I save a model with (key_name=...) value, the key does not seem to have an id. Eg. Mode1(key_name='xxx').put() obj.key().id() - None Model2() obj2.key().id() - 1 Is this intented? Can I have both key_name and id in a mode? -- Ritesh http://www.riteshn.com

[google-appengine] Re: Model with key_name not have key().id

2009-06-24 Thread Ian Lewis
Ritesh, Keys can either have a numeric id or a key_name. In order to access the key name for entities that you saved with a key_name you need to use the key_name() method. instead of obj.key().id(), try obj.key().name() Incedentally you can also use obj.key().id_or_name() to get either the id

[google-appengine] Re: Model with key_name not have key().id

2009-06-24 Thread Ian Lewis
Ritesh, Also, BTW, The reason that obj1 and obj2 can have different types of keys is because the key is not saved on a model level. It is saved at the entity level. Each entity can have id or key_names. Apparently obj2 was saved without a key name and was given a numeric key. obj1 was saved with

[google-appengine] Re: Using the Humanize part of Django templates

2009-06-24 Thread MajorProgamming
I created a settings.py file and added the INSTALLED APPS but nothing helps. (the error, btw, is TemplateSyntaxError: 'humanize' is not a valid tag library: Could not load template library from django.templatetags.humanize, No module named humanize). Remember, I'm not using Django; just the

[google-appengine] Datastore delete taking long time

2009-06-24 Thread Anders
Has the delete function of records in the datastore started to take much longer time? One Ajax call I have that deletes up to 20 records often (more often than not perhaps) takes a very long time, where a single request consumes around 8000cpu_ms and around 8000api_cpu_ms. The records deleted

[google-appengine] Re: Model with key_name not have key().id

2009-06-24 Thread Ritesh Nadhani
Actually, what I meant was: I cannot have an entity with both key_name and id. They seem to be mutually exclusive for an entity. 2009/6/23 Ian Lewis ianmle...@gmail.com: Ritesh, Also, BTW, The reason that obj1 and obj2 can have different types of keys is because the key is not saved on a

[google-appengine] Re: Model with key_name not have key().id

2009-06-24 Thread Ian Lewis
Yes, that is correct. 2009/6/24 Ritesh Nadhani rite...@gmail.com Actually, what I meant was: I cannot have an entity with both key_name and id. They seem to be mutually exclusive for an entity. 2009/6/23 Ian Lewis ianmle...@gmail.com: Ritesh, Also, BTW, The reason that obj1 and

[google-appengine] Re: How do I limit searchable_text_index using SearchableModel?

2009-06-24 Thread ogterran
Thanks for all the responses. I'll use Ian's first suggestion on Product, ProductIndex until key_only query issue is resolved. How do I change my bulkloader to update the Product and ProductIndex on one upload? class ProductLoader(bulkloader.Loader): def __init__(self):

[google-appengine] Re: Odd memcache behavior across multiple app instances

2009-06-24 Thread Nick Johnson (Google)
Hi Kim, Can you please provide your app ID? Also, how are you accessing your app? Only via appspot.com, or also via a Google Apps domain you've mapped to the app? The more details you can provide about your load testing - especially the actual code - the easier this will be to diagnose. -Nick

[google-appengine] Re: How do I limit searchable_text_index using SearchableModel?

2009-06-24 Thread Nick Johnson (Google)
Hi ogterran, You'll need to define a custom handle_entity function for your loader class. This function can return multiple ProductIndex entities in addition to the Product entity being loaded. See the docstring for details:

[google-appengine] Re: Datastore delete taking long time

2009-06-24 Thread Nick Johnson (Google)
Hi Anders, How are you deleting the entities? Are you fetching them first, or deleting them by providing the keys? And are you deleting them in a single batch, or one at a time? -Nick Johnson On Wed, Jun 24, 2009 at 7:44 AM, Anders i...@blabline.com wrote: Has the delete function of records

[google-appengine] Re: best away to know numbers of rows in a entities

2009-06-24 Thread Nick Johnson (Google)
2009/6/24 Ian Lewis ianmle...@gmail.com If you used numeric keys then you can do pagination by key in order to get all items from the datastore and count them. Basically this involves querying the datastore several times, each time filtering on keys that are greater than the highest key from

[google-appengine] Re: Shifting applications between google and google apps.

2009-06-24 Thread Nick Johnson (Google)
Hi Matt, There are two separate issues here: 1. Moving the 'ownership' of the app to your company account 2. Changing authentication settings. For part 1, this is simple: Add the company account as an administrator of the app, then log in using that account, and remove your personal account as

[google-appengine] Re: Does static files count for outbound traffic?

2009-06-24 Thread Nick Johnson (Google)
Hi Mariano, Yes, static files are included in your daily traffic quota. Bear in mind that although App Engine does not provide last-modified or etag headers, it does set Cache-Control and Expires headers, and you can control the expiration time in app.yaml, so browsers should not re-request

[google-appengine] Re: Datastore delete taking long time

2009-06-24 Thread Anders
First I get the entities using a query, something like: entities = entity.Entity.gql('WHERE account_key = :1 AND topic = :2 ORDER BY message_count DESC LIMIT 20', account_key, topic) Then a loop calling delete() on each entity: for entity in entities: entity.delete() On Jun 24, 12:29 pm,

[google-appengine] Re: best away to know numbers of rows in a entities

2009-06-24 Thread Ian Lewis
2009/6/24 Nick Johnson (Google) nick.john...@google.com Pagination by key works regardless of if you're using key names or IDs. Good to know. Sorry about the misinformation. I had forgotten that entities are ordered in the datastore by their key. BTW, here is an article in the documentation

[google-appengine] Re: Is class Body(db.Model): ok?

2009-06-24 Thread Nick Johnson (Google)
Hi Jesse, It sometimes takes a while for new entity types to be reflected in the Admin Console. Are the entities showing up now? -Nick Johnson On Tue, Jun 23, 2009 at 8:51 PM, Jesse Grosjean je...@hogbaysoftware.comwrote: Have you added any Body entities to your datastore? Sometimes I get

[google-appengine] Re: Datastore delete taking long time

2009-06-24 Thread Nick Johnson (Google)
Hi Anders, You don't actually need the entities in order to delete them - only their keys. Also, you can do all the deletes in a single batch operation. This ought to be substantially faster: db.delete(db.GqlQuery(SELECT __key__ FROM Entity WHERE account_key = :1 AND topic = :2 ORDER BY

[google-appengine] Re: Retrieving size of collection set

2009-06-24 Thread Nick Johnson (Google)
Hi djidjadji, This will be less efficient than simply calling .count() on the collection property, which doesn't require fetching the keys at all. -Nick Johnson On Tue, Jun 23, 2009 at 8:04 PM, djidjadji djidja...@gmail.com wrote: You can construct a __key__ only query and count them up.

[google-appengine] Re: Application names disappear from Admin console, No new can be created but nevertheless availability counter is decreasing

2009-06-24 Thread Nick Johnson (Google)
Hi stelg, All App Engine accounts are Google accounts, and vice-versa. There's no such thing as an account just for App Engine, or just for GMail. What I'm asking is if your 'account X' is an account at a domain that is not gmail.com or googlemail.com. This is more easily solved if you can tell

[google-appengine] Re: SMS verification trouble.

2009-06-24 Thread Nick Johnson (Google)
Hi Patipat, Please try signing out, then back in with your ken account and creating an app. -Nick Johnson On Tue, Jun 23, 2009 at 6:27 PM, Patipat Susumpow keng...@gmail.com wrote: keng...@gmail the same one I've posted here. I'm curious. When I click Create an Application from this

[google-appengine] Re: Does static files count for outbound traffic?

2009-06-24 Thread Barry Hunter
On 24/06/2009, Nick Johnson (Google) nick.john...@google.com wrote: Hi Mariano, Yes, static files are included in your daily traffic quota. Bear in mind that although App Engine does not provide last-modified or etag headers, it does set Cache-Control and Expires headers, and you can control

[google-appengine] Re: Datastore delete taking long time

2009-06-24 Thread Anders
I have now changed it to the second variant, with the Query api, and the result for 3 test calls was: 6775cpu_ms 6687api_cpu_ms 6757cpu_ms 6687api_cpu_ms 6765cpu_ms 6687api_cpu_ms That's perhaps a slight improvement, but I have also done vacuum_indexes which could perhaps have improved the

[google-appengine] Re: dev_appserver.py throws SystemError: frexp() result out of range and subsequenty ValueError: bad marshal data

2009-06-24 Thread Nick Johnson (Google)
Hi rraj, It's possible you're still pointing to a corrupted datastore. Please try backing up your datastore (if necessary), then running with --clear_datastore and see if that works. -Nick Johnson On Tue, Jun 23, 2009 at 5:43 PM, rraj r.rajku...@gmail.com wrote: No, but I gave a different

[google-appengine] Re: Efficient way to structure my data model

2009-06-24 Thread Nick Johnson (Google)
Hi ecognium, On Tue, Jun 23, 2009 at 6:11 PM, ecognium ecogn...@gmail.com wrote: Thanks again - this is very helpful. I will let you know if i run into any future index creation errors as it could have been caused by any number of other entries - i mistakenly thought it was all these categ

[google-appengine] Re: [ANN]: full-text search for app-engine-patch/Django

2009-06-24 Thread Nick Johnson (Google)
Hi Waldemar, Impressive! I'm curious - what's the dependency on Django / App Engine patch? This seems like it should be doable as a purely datastore-oriented library. -Nick Johnson On Tue, Jun 23, 2009 at 5:12 PM, Waldemar Kornewald app-eng...@scholardocs.com wrote: Hi, we'd like to

[google-appengine] Re: Can't enable authentication for a Google Apps Premier domain that is a subdomain

2009-06-24 Thread Nick Johnson (Google)
Hi Dudinha, What error do you get when you try and do this? And is Google Apps set up on spread.com.br, or g.spread.com.br? If Apps itself is set up on the parent domain, you will need to enter that as the authentication domain, not the subdomain you intend to run your app on. -Nick Johnson On

[google-appengine] Re: SMS Verfication Troubles

2009-06-24 Thread Nick Johnson (Google)
Hi felurkinda, Done. -Nick Johnson 2009/6/23 felurkinda tengjiaoz...@gmail.com Hi Nick: I've the same problem as Otto. Could manually active my account? Thanks. = Best Regards, Zhao Tengjiao -- Nick Johnson, App Engine Developer Programs Engineer Google Ireland

[google-appengine] Re: Help me, I have problem to receive sms, when signup for an App Engine account

2009-06-24 Thread Nick Johnson (Google)
Hi saltfactory, I've manually activated your account. -Nick Johnson On Tue, Jun 23, 2009 at 5:33 AM, saltfactory saltfact...@gmail.com wrote: I'm student and live in the South of the Korea, I want to learning and developing app on google app engine. so, I signed up app engine account, but

[google-appengine] Re: Index deletion/building not happening

2009-06-24 Thread Nick Johnson (Google)
Hi Scott, Your admin console doesn't show any indexes in 'building' or 'error' state, or any indexes at all under UserItemSection. Can you try uploading your index again now? -Nick Johnson On Tue, Jun 23, 2009 at 4:47 PM, Scott sderick...@gmail.com wrote: Hi, I'm having a little trouble

[google-appengine] Re: Is class Body(db.Model): ok?

2009-06-24 Thread Jesse Grosjean
It sometimes takes a while for new entity types to be reflected in the Admin Console. Are the entities showing up now? No, I'm still seeing the same errors in the console. My app ID is hogbaytaskpaper. Jesse --~--~-~--~~~---~--~~ You received this message

[google-appengine] Re: SMS Verfication Troubles

2009-06-24 Thread felurkinda
Hi Nick: Thanks!!! 2009/6/24 Nick Johnson (Google) nick.john...@google.com Hi felurkinda, Done. -Nick Johnson 2009/6/23 felurkinda tengjiaoz...@gmail.com Hi Nick: I've the same problem as Otto. Could manually active my account? Thanks. = Best Regards, Zhao

[google-appengine] Deploying Application on Google Apps Domain

2009-06-24 Thread nikhil bharadwaj
Can we have a consistent url like *WebApp*.*mydomain.com* instead of WebApp.appspot.com. I have admin rights to the Google Apps domain. -- Thanks and Regards, Nikhil B. Bharadwaj I have felt it and lived it and now it leaves me here, love is the ultimate pain and joy, without it you die with

[google-appengine] Re: Deploying Application on Google Apps Domain

2009-06-24 Thread Paul Kinlan
Nikihil, The appsport names are very consistent. once you have set up your Google Apps Account and hooked in your Google App Engine account it is very map webapp.mydomain.com - you have to remember that google have no control over your DNS so they can only manage appspot.com and also allow you to

[google-appengine] Re: [ANN]: full-text search for app-engine-patch/Django

2009-06-24 Thread Waldemar Kornewald
Hi Nick. On Jun 24, 1:28 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Waldemar, Impressive! Thanks a lot! It's nice to hear that from a Google developer. :) We hope it's enough to bridge the gap until Google releases super- powerful full-text search support (with ranking and

[google-appengine] Re: Efficient way to structure my data model

2009-06-24 Thread ecognium
Thanks very much! I think I understand indexing with Lists much better now... In the case of your index with 4 occurrences, this will rather be 6C4. Yup, I was looking at the max situation when I use 3 categ fields. Need to be careful as it grows pretty quickly. On Jun 24, 4:19 am, Nick

[google-appengine] Re: Java Eclipse plugin dependent on org.eclipse.wst.xml.core.

2009-06-24 Thread Lee Mc
Thanks for the tip savanna! On May 25, 4:13 pm, Dzsó dzsodzs...@gmail.com wrote: Thx 4 the solution! Dzs On ápr. 15, 04:23, savanna sava...@gmail.com wrote: I had the same problem too. The solution that I found out is checking the Google plugins first. They Eclipse shows the error

[google-appengine] Re: The API call mail.Send() required more quota than is available.

2009-06-24 Thread hisashin
I also eager to know how do you know that You can send about 4600 a minute when it's enabled.. On May 5, 12:28 am, Ray Malone rayish...@gmail.com wrote: I figured out my issue.  I needed to enable billing to send more than 32 a minute.    You can send about 4600 a minute when it's enabled.

[google-appengine] Re: Can't enable authentication for a Google Apps Premier domain that is a subdomain

2009-06-24 Thread Dudinha
Hi Nick! I only receive Auth domain, without any further explanation. Both domains (spread.com.br and g.spread.com.br) are in Google Apps Premier Edition. Best regards, Eduardo On Jun 24, 8:33 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi Dudinha, What error do you get when

[google-appengine] Any interest in a Boston-area users group?

2009-06-24 Thread Adam
Are there any other AppEngine developers here who are located in the greater Boston area who would be interested in starting a Users Group? I am willing to organize such a thing if there is sufficient interest. --~--~-~--~~~---~--~~ You received this message

[google-appengine] Bucket Size example ?

2009-06-24 Thread Sylvain
Hi, I don't really understand the bucket_size parameter in the task config yaml. Is it possible de have an example ? For example, I've 100 tasks in the queue. (rate 1/s) What does it change if my bucket_size = 1 or 10 ? and if I have only 5 tasks ? (rate 1/s) What does it change if my

[google-appengine] Re: Datastore delete taking long time

2009-06-24 Thread Anders
Sometimes delete operations are implemented to be allowed to take more time than put operations. Could it be that the delete operation in GAE has been allowed to be slow in order to make put operations and/or queries faster? --~--~-~--~~~---~--~~ You received this

[google-appengine] Re: why there is no way to build a key id?

2009-06-24 Thread Jeff Enderwick
Hey Jeff - sorry for the confusion. The idea was that one would be able to get the unique id from an GOOG and then do a db.put with that id as an arg. For example, let's say I want to create two entities, with each referring to each other. I need to do three db.put operations: a = Foo()

[google-appengine] Re: Datastore delete taking long time

2009-06-24 Thread Anders
Hmm... On a second thought, the put operation is perhaps also costly in terms of CPU time. I haven't tried doing 20 puts in one page access. Maybe that would also consume a lot of CPU time. On a practical level, this is usually not a big problem when the traffic to the application is low, but

[google-appengine] Re: Model with key_name not have key().id

2009-06-24 Thread Ritesh Nadhani
Thanks. That is what I was confirming. 2009/6/24 Ian Lewis ianmle...@gmail.com: Yes, that is correct. 2009/6/24 Ritesh Nadhani rite...@gmail.com Actually, what I meant was: I cannot have an entity with both key_name and id. They seem to be mutually exclusive for an entity. 2009/6/23

[google-appengine] Request: Task Queue quota increase

2009-06-24 Thread vivpuri
Right now the Task Queue quota is set to 10k tasks, which is rather small. Can this be bumped to at least 100k? Thanks Vivek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this

[google-appengine] Re: Any interest in a Boston-area users group?

2009-06-24 Thread Peter Recore
I would attend sporadically. Probably not the level of enthusiasm you're looking for, but at least it's honest :) On Jun 24, 11:29 am, Adam adam.crossl...@gmail.com wrote: Are  there any other AppEngine developers here who are located in the greater Boston area who would be interested in

[google-appengine] Problem installing PIL 1.1.6, on Windows Vista 64 development machine

2009-06-24 Thread Scott
Hi All, I've scoured the internet looking for info to help resolve this issue. I've also tried a number of things on my local installation to trying to resolve this issue, but both have been unsuccessful. I am encountering an error running the Python Imaging Library 1.1.6 for Python 2.5

[google-appengine] Re: Odd memcache behavior across multiple app instances

2009-06-24 Thread Nick Johnson (Google)
Hi Kim, Can you please try flushing your memcache and running your tests again? The issue should now be fixed. -Nick On Tue, Jun 23, 2009 at 2:42 PM, Kim Riber kimsteenri...@gmail.com wrote: Yes. There is no other activity when running step 3. The two values I get back, are some of the last

[google-appengine] Re: Over Quota: Datastore Indices Count

2009-06-24 Thread gae123
Jeff, I have the same issue, my app id is neatschool. Could you please assist me as well? Thanks On Jun 23, 9:46 am, Jeff S (Google) j...@google.com wrote: Hi Thomas, I've reset the index count, apologies for the inconvenience. Happy coding, Jeff On Tue, Jun 23, 2009 at 9:12 AM, Thomas

[google-appengine] Re: why there is no way to build a key id?

2009-06-24 Thread Jeff S (Google)
Hi Jeff, This is an idea that we're aware of as well. If you could reserve the next ID in advance, then you could actually do this in one put since multiple entities could be sent in one batch :-) The workaround available now is to use the key_name, but the difficulty becomes ensuring that the

[google-appengine] Re: why there is no way to build a key id?

2009-06-24 Thread Andy Freeman
see also http://groups.google.com/group/google-appengine/browse_thread/thread/3f8cfeaf7dc2eb72/d5d599180fe47e02?lnk=gstq=ryan+allocate#d5d599180fe47e02 On Jun 24, 11:33 am, Jeff S (Google) j...@google.com wrote: Hi Jeff, This is an idea that we're aware of as well. If you could reserve the

[google-appengine] Re: : full-text search for app-engine-patch/Django

2009-06-24 Thread GenghisOne
Hi Waldemar Kudos for trying to address a serious limitation with google app engine. What could we do to convince you to open-source your search technology? By we, I mean the AppEngine dev community. If it is a monetary issue, maybe Google could cut your company a cheque to cover your

[google-appengine] Re: Any interest in a Boston-area users group?

2009-06-24 Thread puff
I'd be interested. On Jun 24, 11:29 am, Adam adam.crossl...@gmail.com wrote: Are  there any other AppEngine developers here who are located in the greater Boston area who would be interested in starting a Users Group? I am willing to organize such a thing if there is sufficient interest.

[google-appengine] Creating new account in Google App Engine - Phone number has already been used message

2009-06-24 Thread Keidi
Hi, I'm trying to create a new app engine account\application, but I fail to pass the activation by SMS screen. I keep getting the following message: The phone number has been sent too many messages or has already been used to confirm an account. I got this message on my first attempt to open

[google-appengine] Re: UnacceptableVersionError when trying to import Django 1.0

2009-06-24 Thread luddep
I'm experiencing the same error on both the dev server and when deployed. I've created a new issue at: http://code.google.com/p/googleappengine/issues/detail?id=1758 On Jun 19, 10:37 pm, James thelevybre...@gmail.com wrote: I added this code to my main.py file: from google.appengine.dist

[google-appengine] Re: 403 Application Over Quota Problem - Not True!

2009-06-24 Thread reco
same thing here, my daily Outgoing Bandwidth shows a limit of 1GB on my quota details page. google mentions though there is a daily limit of 10GB even if billing is not enabled. http://code.google.com/appengine/docs/quotas.html GOOLE please HELP app id: purpleimageapp thanx! On Jun 22, 3:19 

[google-appengine] Re: 403 Application Over Quota Problem - Not True!

2009-06-24 Thread reco
answering my own problem here. app engine quotas were reduced rom 10GB to 1GB per day outgoing bandwidth — crazyy reco On Jun 24, 6:12 pm, reco r...@nex9.com wrote: same thing here, my daily Outgoing Bandwidth shows a limit of 1GB on myquotadetails page. google mentions though

[google-appengine] Re: 403 Application Over Quota Problem - Not True!

2009-06-24 Thread reco
he cc, yes this is crazy at least if you enable billing they could give you 5GB outgoing bandwidth for free. have the free accounts limited to 1GB i think is fine. reco On Jun 22, 10:08 pm, cc c...@gamegiants.net wrote: Yep same problem here 403s everywhere! Try using the Remote API it is

[google-appengine] How does Django (on GAE) handle contrib libs such as User?

2009-06-24 Thread Oliver Zheng
I am currently using app-engine-patch, but now that Django 1.0 has been released on GAE, I'd like to port my app over. App-engine-patch zipimports Django and patches a lot of things to make it work out of the box, for example the User model is modified to use GAE models, and memcache is used for

[google-appengine] Re: Does cron jobs take more time to init than normal handlers

2009-06-24 Thread djidjadji
It could be that the cron jobs are run on a different farm of computers. If you call cron every 5 min it means the server has to start cold for every cron request. If you use the regular URL from a browser or such you likely have a warm server running. 2009/6/24 Mariano Benitez

[google-appengine] Frequent Timeouts - do they count towards quota??

2009-06-24 Thread bvelasquez
Now that the quota has been reduced for free accounts, I am much more concerned over the timeouts and if the CPU time for these timeouts count towards the quota. The CPU time used when a timeout occurs is much longer than a successful request. I have yet to figure out why I get timeouts on

[google-appengine] Re: Python Vs Java in GAE

2009-06-24 Thread GenghisOne
In order to address this issue properly, one really needs to step back a bit and focus on the bigger picture. The real issue is not so much Java vs Python but rather statically- typed vs dynamically-typed languages. In the days of old, the Java high-priests blew off dynamically-typed languages

[google-appengine] Re: Using the Humanize part of Django templates

2009-06-24 Thread djidjadji
Forget the settings.py file. Have you tried to import the humanize file in the .py file that uses the templates that needs these filters import django.contrib.humanize.templatetags.humanize The code will register the filters during the load. NO need to use {% load humanize %} because the

[google-appengine] Re: Getting copies of all sent mail

2009-06-24 Thread anjs
Does anybody has any idea on this? On Jun 23, 6:06 pm, anjs jnanj...@gmail.com wrote: Is it a limitation from google that it sends the email to sender in all cases? Although the google doc says it sends email to sender only in case of error and bouunce messages,

[google-appengine] Re: Request: Task Queue quota increase

2009-06-24 Thread Ben Nevile
Seconded. For the queues to be useful for some of the applications I currently use client-side polling to accomplish, the daily number of tasks would have to be several orders of magnitude larger (100M). Ben On Jun 24, 10:33 am, vivpuri vivpu...@gmail.com wrote: Right now the Task Queue quota