[google-appengine] Entity Relationships/Groups

2009-03-10 Thread Omer Shakil
Trying to move away from the standard thinking of relational databases, I looked around but couldn't find a solid document to get up to speed so I chose to pick up a fairly complicated scenario and brainstorm about it: Quick Overview: Trying to model: Students get group Assignments in a Class. Stu

[google-appengine] querying on lists...

2009-03-10 Thread pedepy
ehy all .. it feels like ive already asked this before but i cant remember .. anyway, i have entities of a kind that have a stringlistproperty. Im trying to query for entities who's list contain a particular item. for instance, entity A's list is foo, bar, bob ... I want to query for entities wh

[google-appengine] Re: Requests going twice

2009-03-10 Thread Pankaj Vishwani
I am having the same issue. I have also added favicon url in app.yaml. Here's how my app.yaml looks like: application: wallpipetest version: 1 runtime: python api_version: 1 handlers: # static files url - url: /static/ static_dir: static/ - url: /favicon.ico static_files: static/img/favicon

[google-appengine] Re: Dashboard IE7 little bug

2009-03-10 Thread Sylvain
Ok, i've filled a bug with a screenshot http://code.google.com/p/googleappengine/issues/detail?id=1134 Regards On Mar 9, 7:22 pm, Marzia Niccolai wrote: > Hi, > > Did you file an issue for this? Also, in that issue could you (or did you?) > provide a screenshot? That would be helpful. > > -Mar

[google-appengine] Re: Combining a db.delete() and a db.put() into one trip

2009-03-10 Thread JJ
Thanks for your response, Ryan. That's not exactly what I meant, at the behavior of a transaction would be a bit much. I'm just interested in increased performance wherever possible. On Mar 9, 8:13 pm, Ryan Lamansky wrote: > If they're in the same entity group, you can put and delete in a > s

[google-appengine] newb : no module named django

2009-03-10 Thread arbi
Hi, I am trying to make the tutorial to bring a django app to app engine :http://code.google.com/intl/fr-FR/appengine/articles/ appengine_helper_for_django.html In fact, I got a "no module named django" error while running the server. Here is the traceback : ERROR:root:Exception encountered hand

[google-appengine] Re: Requests going twice

2009-03-10 Thread Bastian Hoyer
Are you using firefox with addons ? Some addons (like the javascript library detector) add a second request to do their work.. so perhaps try using a different browser to make sure it's not browser related. --~--~-~--~~~---~--~~ You received this message because you

[google-appengine] Re: Expected Database Performance with Millions of Rows?

2009-03-10 Thread peterk
As far as I know: query = A.all().filter('intProperty', val).filter('date >=', date) This is one read. Hence the relatively fast performance for getting itemAs. But this: itemBs = [itemA.typeB for itemA in itemAs] ..is n reads, where n is the number of itemAs you have. In your case, an extra

[google-appengine] Re: Model

2009-03-10 Thread Ronn Ross
Great that worked thx On Sun, Mar 8, 2009 at 7:10 PM, GregF wrote: > > Yes you can, and as you suggest, it is a very good idea. Just create > one file called my_models.py with the model definitions (say Cat and > Dog), and in your other files just use "from my_models import Cat". > > > > > --~-

[google-appengine] Re: Expected Database Performance with Millions of Rows?

2009-03-10 Thread peterk
Doh, I just thought of this as one potential simple way to improve your itemB dereferencing: http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get Create a list of the keys to your itemBs without dereferencing them, then pass the list to itemB.get(). I think this perfo

[google-appengine] Re: Open Sourcing some Google App Engine Apps

2009-03-10 Thread Kegan
Hi Paul, Kudos to you!! You are doing a great service to the open source and Google App Engine community. Thank you. cheers, ~KEGan On Mar 7, 7:17 pm, Paul Kinlan wrote: > Hi Everyone, > > Just to let you know I am in the process of open-sourcing a lot of the Apps > that I have created. > >

[google-appengine] Re: "This application ID or version is already in use." Why?

2009-03-10 Thread K_Reverter
But I don't think anyone already reserved "d1turen" or "dituren" as Gmail username or Appspot Id. Can anyone tell me why "dituren" is reserved? On 3月10日, 上午2时43分, Marzia Niccolai wrote: > Hi, > > This is a known issue with the 'Check availability' functionality. Gmail > and App Engine share th

[google-appengine] Re: Unbelieveable jump in stored data.

2009-03-10 Thread Josh Cronemeyer
I actually already noticed a big jump (500MB) in stored data when they went live with billing, so I think I've already seen the increase described in that thread. This Jump is much larger and the only google activity it coincides with is some hardware upgrade. Hopefully I can get to the bottom of

[google-appengine] Re: SDK 1.1.9 breaks google-app-engine-django?

2009-03-10 Thread arbi
Hi, I had exactly the same problem of "importing django error". The warning I got is : [WARNING:root:Blocking access to skipped file "/Users/brouard/ mysite/.google_appengine/lib/django/django/foo"] Can Brett or Nuno help me? I have the 1.1.9 version of appengine. The SDK folder (google_appengin

[google-appengine] Questions about appengine as a CDN

2009-03-10 Thread Steve Robillard
I am working on a blog article on GAE and using it as a CDN per the yslow suggestions. I have a few questions I would like to verify. 1) Is this data geographically dispersed and served from a location closest to the user? I thought that it was, but saw a recent post stating that all datastor oper

[google-appengine] Re: Questions about appengine as a CDN

2009-03-10 Thread Wooble
On Mar 10, 10:17 am, "Steve Robillard" wrote: > 1) Is this data geographically dispersed and served from a location closest > to the user? I thought that it was, but saw a recent post stating that all > datastor operations were done from a single datacenter. Google's not going to reveal that,

[google-appengine] Re: Questions about appengine as a CDN

2009-03-10 Thread Myroslav Opyr
Hi, even if Google is serving data from single datacenter, it can be still faster to deliver data from app hosted at Google then from your own server. The reason is that Google has edge servers (proxies) in many datacenters around the world. These servers have good connectivity to Google Datacent

[google-appengine] Re: query.count(1000) equal to exception Timeout()

2009-03-10 Thread magocrab
Ok.. thanks Ryan. But the problem is that the queries are varied and are performed by users, would have to generate many counters, besides, this is the function that has to perform count(). On Mar 9, 10:09 pm, Ryan Lamansky wrote: > Increment a stored counter as you add values then check that

[google-appengine] Re: "This application ID or version is already in use." Why?

2009-03-10 Thread Marzia Niccolai
Hi, Yes, it has already been reserved. -Marzia On Tue, Mar 10, 2009 at 6:04 AM, K_Reverter wrote: > > But I don't think anyone already reserved "d1turen" or "dituren" as > Gmail username or Appspot Id. > > Can anyone tell me why "dituren" is reserved? > > On 3月10日, 上午2时43分, Marzia Niccolai wr

[google-appengine] Cannot type in password in appcfg.py when uploading

2009-03-10 Thread n...@cornell.edu
When I try and upload my app using appcfg.py I can get to where you have to enter in a password then I am unable to type in anything. I am trying to upload the helloworld example so I haven't been able to do it once. Any ideas? --~--~-~--~~~---~--~~ You received t

[google-appengine] Re: Django "Block" feature and Google App Engine

2009-03-10 Thread kd
Hi Morten, Not sure if it's a typo or not, but the issue might be the template you're rendering with MainHandler. Try template.render ('content.html','')) On Mar 9, 12:05 am, Morten Bruhn wrote: > Hi Guys, > > First of all I am a newbie, but I still hope you can help me... > > I have created an

[google-appengine] Re: Questions about appengine as a CDN

2009-03-10 Thread NguyendHEX
I think it is easy to check by using URLFetch to query other site then check IP. just my idea;) On Mar 10, 10:19 pm, Myroslav Opyr wrote: > Hi, > > even if Google is serving data from single datacenter, it can be still > faster to deliver data from app hosted at Google then from your own server

[google-appengine] Passing Gqlquery() or get() result to template, then decide to iterate or not

2009-03-10 Thread kd
Hi, The homepage of my app displays a list of items with their content (might as well think of it as a blog), and you can also link to individual items. I'd like to use the same set of templates for both cases. So my handlers look something like this:

[google-appengine] about Create an Application

2009-03-10 Thread ks72
I have a google app engine account, I only one application,I have 10 applications remaining. but I can not create new application, It is show me "Already Exists This application ID or version is already in use.", I have checked application ID availability, I don't understand why I can not

[google-appengine] Data Storage Size - multiplier per object

2009-03-10 Thread Jonathan Ultis
I created a model with fixed content that requires ~250b serialized, including all field names, the key, and the kind name, and parent (None). I added 312000 of those to the datastore, for 75 megs of raw data. There are 8 indexable fields, The indices should require no more than 176 megs of additi

[google-appengine] Re: HELP~~~~~ self.redirect() error after database action

2009-03-10 Thread Allen
it's done. I specify the port by "-p 80", then it's ok On Mar 9, 12:40 pm, Allen wrote: > I set a to post data to database [ db.TextProperty() ], and > then use "self.redirect()" switch to an other page. > > while there're not many inputed characters, it's ok. But when I inpute > more characte

[google-appengine] Re: Data Storage Size - multiplier per object

2009-03-10 Thread Jonathan Ultis
Or better, take your raw data size excluding BlobProperty and TextProperty and multiply by 15x. I'm not sure what the multiplier is on the unindexed properties yet. On Mar 10, 9:28 am, Jonathan Ultis wrote: > I created a model with fixed content that requires ~250b serialized, > including all fi

[google-appengine] Re: Expected Database Performance with Millions of Rows?

2009-03-10 Thread lenza
Thanks for the response peter. It is my understanding that a ReferenceProperty IS actually just a Key (http://code.google.com/ appengine/docs/python/datastore/ typesandpropertyclasses.html#ReferenceProperty). If it isn't, how do I get the key of itemB without dereferencing itemB? There is no Ke

[google-appengine] Re: querying on lists...

2009-03-10 Thread Arun Shanker Prasad
Hi, Could you post at least a sample of your model? I have used the GQL query to find if a string is in the kinds list property and it's working. My model sample, Post(db.Model): tag = db.StringListProperty(required=True) Post.all().filter('tag =', some_tag).get() Thanks, Arun Shanker Prasad

[google-appengine] Application instances seem to be too aggressively recycled

2009-03-10 Thread Jason C
We have a new application that receives _very_ little load. So little, in fact, that each request spins up a new application instance. We are using Django trunk and the import overhead is high. All of this yields a long request (e.g., 8802ms) using a lot of CPU (e.g., 3247ms-cpu). With very littl

[google-appengine] Google App Engine and TZINFO

2009-03-10 Thread mawcs
(I am new to Python and Google App Engine, please forgive me if my questions seem basic). I'm having a helluva time trying to manage multiple user timezones in my Google App Engine application. Here are my constraints: 1. If a user enters the time on an input, it will be local time (includin

[google-appengine] Re: Cannot type in password in appcfg.py when uploading

2009-03-10 Thread mawcs
This thew me off too, there are no echo characters, but your typing is accepted. Just type it as best you can and hit enter. On Mar 10, 12:05 am, "n...@cornell.edu" wrote: > When I try and upload my app using appcfg.py I can get to where you > have to enter in a password then I am unable to typ

[google-appengine] Re: Model not saving correct user information

2009-03-10 Thread Jeff S
Hi Ritesh, I didn't see any obvious issue with your code snippet, so more context would be helpful. Also it seems that _get_user_nick_name may not return what is expected. def _get_user_nick_name(self): return self.user I think you want to return self.user.nickname() Thank you, Jeff

[google-appengine] Re: Initializing datastore with binary data

2009-03-10 Thread hideki
I got same issue but it was fixed after I deployed my project with - url: /remote_api script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py login: admin On Mar 8, 10:29 am, Pavel Byles wrote: > When I follow the article > from:http://code.google.com/appengine/articles/bulkload.htm

[google-appengine] Re: Viewing a non default version log (appspot uri)

2009-03-10 Thread Ubaldo Huerta
My code never reaches. Even if the first lines of code that execute are import logging logging.info("Berfore anything ..."); I see nothing in the logs. So, don't know really what's going on. Looks like a gae bug to me. I'll try with a fresh app id to see what happens -U On Mar 3, 5:43 pm, Nic

[google-appengine] Re: Expected Database Performance with Millions of Rows?

2009-03-10 Thread peterk
Yeah, sorry, you're right..with regard to a batch get, I'm not sure there's any way to just get the itemB keys without dereferencing the whole object.. A thought crossed my mind that you could try storing the key id or name as strings in itemA and then construct a list of keys by casting the id s

[google-appengine] Re: Model not saving correct user information

2009-03-10 Thread Ritesh Nadhani
Hello Jeff, On Tue, Mar 10, 2009 at 10:46 AM, Jeff S wrote: > > Hi Ritesh, > > I didn't see any obvious issue with your code snippet, so more context > would be helpful. Also it seems that _get_user_nick_name may not > return what is expected. > > def _get_user_nick_name(self): >        return s

[google-appengine] Re: Application instances seem to be too aggressively recycled

2009-03-10 Thread peterk
How frequently are you hitting appengine 'cold', requiring a start-up? I'm running an app on django using app-engine-patch. Just testing and so forth, it averages around 1 request every 5 to 10 seconds. Just looking over my last 60 requests or so, I don't see any evidence of 'cold starts', all re

[google-appengine] Re: Requests going twice

2009-03-10 Thread Pankaj Vishwani
I tried Chrome and IE right now and they only send request once. Since, I have been testing on FF all this time, so never realized if this could be the case. Thanks, Pankaj Vishwani On Mar 10, 3:47 am, Bastian Hoyer wrote: > Are you using firefox with addons ? Some addons (like the javascript

[google-appengine] Re: Application instances seem to be too aggressively recycled

2009-03-10 Thread Jason C
As of right now, we are seeing instance start-ups around every 2-3 seconds - every 2-4 requests. We are using http://code.google.com/p/google-app-engine-django/ as the shim. j On Mar 10, 12:23 pm, peterk wrote: > How frequently are you hitting appengine 'cold', requiring a start-up? > > I'm ru

[google-appengine] Re: Application instances seem to be too aggressively recycled

2009-03-10 Thread peterk
That sounds like very strange behaviour. I don't have much experience with django helper..I remember using it before switching to appengine patch, but I don't remember having these kinds of issues with it. I wasn't really looking out for them though, mind you. The only reassurance I can provide

[google-appengine] Re: Viewing a non default version log (appspot uri)

2009-03-10 Thread Ubaldo Huerta
Ok, so I figured out the source of my misfortune. For some mysterious reason, in google app for domains the my_app_id.appspot.com url wasn't listed So, I deleted the my_app_id service in google app for domains and added it back in, with all the other custom urls, etc. Did it from google app engi

[google-appengine] Programmitcally doing authentication with Google Account

2009-03-10 Thread Ritesh Nadhani
Hi Can I dynamically authenticate a user with Google Accounts? Then I can use users.get_current_user(). -- Ritesh http://www.riteshn.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group.

[google-appengine] Re: Datastore Timeouts ( large amount of data per row )

2009-03-10 Thread Sebastian E. Ovide
can you post the query ? Sebastian E. Ovide On Fri, Mar 6, 2009 at 9:07 PM, Brandon Thomson wrote: > > For me even fetching 1-2 entities can be too many and cause a Timeout. > It seems to depend on the complexity of the query. > > I recommend you don't do any querie

[google-appengine] Re: Google App Engine and TZINFO

2009-03-10 Thread mawcs
So, I got some help from StackOverflow on this one. Careful use of the dateutil library seemed to solve my problem. It is fairly robust and a much smaller footprint from PyTZ. On Mar 10, 11:06 am, mawcs wrote: > (I am new to Python and Google App Engine, please forgive me if my > questions see

[google-appengine] Thanks GAE team

2009-03-10 Thread cz
The datastore seems to be unusually zippy today, whatever you googly types did yesterday sure worked. Beautiful! thanks, - Claude --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to

[google-appengine] Re: Viewing a non default version log (appspot uri)

2009-03-10 Thread Wooble
You don't need to set up an appspot.com URL under Google Apps for your domain. On Mar 10, 2:52 pm, Ubaldo Huerta wrote: > Ok, so I figured out the source of my misfortune. > > For some mysterious reason, in google app for domains the > my_app_id.appspot.com url wasn't listed > > So, I deleted t

[google-appengine] Re: Programmitcally doing authentication with Google Account

2009-03-10 Thread Wooble
On Mar 10, 3:13 pm, Ritesh Nadhani wrote: > Hi > > Can I dynamically authenticate a user with Google Accounts? > > Then I can use users.get_current_user(). If by "programmatically" you mean you know the user's username and password and fill it in for them, no. Allowing you to do that would be

[google-appengine] Re: I have an app I'd like to build - the question is GAE the right platform?

2009-03-10 Thread Mr Blog
I concur with Ryan's comments. I'll add that I've found that the more one is used to and comfortable with Java, the more likely they are to be particularly challenged and frustrated by Python. Particularly, if you *really like* Java, you will most likely really despise Python. Likewise, the mor

[google-appengine] Re: Programmitcally doing authentication with Google Account

2009-03-10 Thread lenza
The answer to your general question is yes, you can programmatically login to Google Accounts. See my post here for the steps involved: http://groups.google.com/group/google-appengine/browse_thread/thread/bbb2b83d577fedd8/69df83cd23850d58?lnk=gst&q=android#69df83cd23850d58 But what exactly ar

[google-appengine] Re: Cannot type in password in appcfg.py when uploading

2009-03-10 Thread n...@cornell.edu
Ha! That was so easy. It worked. Thank you so much! On Mar 10, 1:11 pm, mawcs wrote: > This thew me off too, there are no echo characters, but your typing is > accepted. > > Just type it as best you can and hit enter. > > On Mar 10, 12:05 am, "n...@cornell.edu" wrote: > > > When I try and uploa

[google-appengine] Re: Thanks GAE team

2009-03-10 Thread GregF
Seconded. Much appreciate the effort you put in during what I guess was a pretty stressful week. Cheers! Greg. On Mar 11, 8:36 am, cz wrote: > The datastore seems to be unusually zippy today, whatever you googly > types did yesterday sure worked. Beautiful! > thanks, > - Claude --~--~-~-

[google-appengine] Memcache Hiccup?

2009-03-10 Thread Greg
Hi - My app uses memcache-backed sessions, and we just had a hiccup when some users saw their session die - and more worryingly at least one user suddenly got another user's session. Anyone else notice a glitch at about 14:00 EST 10th March? Or should I be looking at my session implementation? A

[google-appengine] Re: Google App Engine and TZINFO

2009-03-10 Thread Jarek Zgoda
Not so hurry. As for pytz footprint, it's ~600kB in size and can be lightning fast if combined with caching in memcache (caching of tzinfo? why not...). Combine this with Babel and you'll get everything you'd want to do l10n. On 10 Mar, 20:21, mawcs wrote: > So, I got some help from StackOverfl

[google-appengine] Re: Memcache Hiccup?

2009-03-10 Thread Barry Hunter
memcache loosing data is to be expected. its not designed for storing original data. session transfer suggests an issue, or maybe a id or hash collision. see also http://code.google.com/status/appengine/detail/memcache/2009/03/10#ae-trust-detail-memcache-set-error_rate On 10/03/2009, Greg wr

[google-appengine] Re: Expected Database Performance with Millions of Rows?

2009-03-10 Thread ryan
On Mar 10, 11:10 am, peterk wrote: > A survey of read cost as entity numbers increase would indeed be > interesting however..I've been making the assumption that read speed > is roughly constant regardless of the number of entities > underneath...but that is just an assumption. Maybe a google pe

[google-appengine] Re: querying on lists...

2009-03-10 Thread pedepy
somehow youre answering a question i had in a different post, which it turns out was just a typo... On Mar 10, 12:51 pm, Arun Shanker Prasad wrote: > Hi, > > Could you post at least a sample of your model? > > I have used the GQL query to find if a string is in the kinds list > property and it'

[google-appengine] Re: Google App Engine and TZINFO

2009-03-10 Thread GregF
On Mar 11, 6:06 am, mawcs wrote: > I'm having a helluva time trying to manage multiple user timezones in > my Google App Engine application. I have wrangled with time display for years, and my solution is to store everything as a unix datestamp (time.time()). When the user logs in, use a bit of

[google-appengine] Re: Expected Database Performance with Millions of Rows?

2009-03-10 Thread peterk
This is useful stuff Ryan, thanks very much for weighing in here. Sorry if some redundant points are being raised here.. my lingering question in light of your post is regarding the variation in performance between itemAs' construction and itemBs' if both boil down to the same read behaviour on t

[google-appengine] Re: Expected Database Performance with Millions of Rows?

2009-03-10 Thread ryan
On Mar 10, 4:38 pm, peterk wrote: > Sorry if some redundant points are being raised here.. my lingering > question in light of your post is regarding the variation in > performance between itemAs' construction and itemBs' if both boil down > to the same read behaviour on the datastore. To walk th

[google-appengine] Re: 502 Server Errors after upgrade?

2009-03-10 Thread Brett Slatkin
Hi Nick, Sorry for the delay here. Been working hard these last few days to resolve these latency issues, which are looking good now. I'd like to help you figure out the issue here, so please bear with me since I'm not looking at your app's source code. =) I believe Marzia stated elsewhere that

[google-appengine] Re: Application instances seem to be too aggressively recycled

2009-03-10 Thread cz
Actually, that is normal behavior. This has been discussed in previous threads. GAE seems to aggressively purge it's app cache, average app lifetime appears to be under 2 seconds. Appengine-patch may be marginally faster but both require Django1.x to be imported via zipimport, which is pretty expe

[google-appengine] Re: Requests going twice

2009-03-10 Thread admin go2
This should be a firefox bug cause by your incorrect html code. Can you post your html code here? go2.appspot.com Pankaj Vishwani wrote: >I tried Chrome and IE right now and they only send request once. >Since, I have been testing on FF all this time, so never realized if >this could be the c

[google-appengine] Re: Programmitcally doing authentication with Google Account

2009-03-10 Thread Ritesh Nadhani
Hello On Tue, Mar 10, 2009 at 1:04 PM, Wooble wrote: > > > > On Mar 10, 3:13 pm, Ritesh Nadhani wrote: >> Hi >> >> Can I dynamically authenticate a user with Google Accounts? >> >> Then I can use users.get_current_user(). > > If by "programmatically" you mean you know the user's username and >

[google-appengine] Re: Programmitcally doing authentication with Google Account

2009-03-10 Thread Ritesh Nadhani
Hello On Tue, Mar 10, 2009 at 1:55 PM, lenza wrote: > > The answer to your general question is yes, you can programmatically > login to Google Accounts.  See my post here for the steps involved: > > > http://groups.google.com/group/google-appengine/browse_thread/thread/bbb2b83d577fedd8/69df83cd2

[google-appengine] update Using an HTTP Proxy: urllib2.URLError:

2009-03-10 Thread Flank
cmd> set HTTP_PROXY="http://cache.mycompany.com:3128"; cmd> appcfg.py update myapp File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open response = self._open(req, data) File "C:\PROGRA~1\Python26\lib\urllib2.py", line 401, in _open '_open', req) File "C:\PROGRA~1\Python26

[google-appengine] "Could not parse the remainder" in Django

2009-03-10 Thread Tom Wu
Hi all, I am new to python and django. Trying to do a request like http://someurl/?AA.AA=abc with RequestContext. and render in template {{ request.AA.AA }} , It got "Could not parse the remainder" The ?AA.AA=abc isn't not define by me. Is any way to deal with this problem ? Best Regar

[google-appengine] Re: Cannot Properly Catch DeadlineExceededError

2009-03-10 Thread Gijsbert
I was curious what my error template does with this DeadlineExceededError but no cigar. I use the webapp.RequestHandler.handle_exception() but it does not seem to get called for DeadlineExceededError. In dev server runtime/ __init__.py DeadlineExceededError is derived from Exception or BaseExcepti

[google-appengine] Re: Requests going twice

2009-03-10 Thread Pankaj Vishwani
There was nothing wrong with the html code, since I had a blank html file when I was trying to debug this problem. Anyways, I figured out why FF was sending multiple requests. The reason was YSlow. I had set YSlow to "AutoRun". And that was making the second call. Sorry to bother you all. Thanks