[google-appengine] Re: Admin interface that let's me enter dummy data

2009-01-08 Thread adelevie
Thanks for the response. I just dont see a reason why Google can't allow dummy data to be entered via the built in admin interface. If it can create forms when there is data, why cant it create forms without data? On Jan 9, 2:44 am, Alexander Kojevnikov wrote: > You can include the 'shell' appli

[google-appengine] Re: Admin interface that let's me enter dummy data

2009-01-08 Thread Alexander Kojevnikov
You can include the 'shell' application from the official appengine samples with your app, and add/edit/delete the entities from Python shell. Source: http://code.google.com/p/google-app-engine-samples/downloads/list Demo: http://shell.appspot.com/ Don't forget to restrict access to shell, e.g.

[google-appengine] Your client does not have permission to get URL /admin/ from this server.

2009-01-08 Thread DocDay
I'm using the "$PYTHON_LIB/google/appengine/ext/admin" script in several apps exactly as shown in the example here: http://code.google.com/appengine/docs/configuringanapp.html#Referring_to_the_Python_Library_Directory All apps authenticate as expected, except for one. It returns: "Your client d

[google-appengine] Re: 500 server error despite proper testing on dev_appserver.py and upload

2009-01-08 Thread Alexander Konovalenko
On Thu, Jan 8, 2009, Marzia Niccolai wrote: > > Usually if you are getting a 500 server error with no logs like you have > described, this means there is some typo in the app.yaml file that was > uploaded. We've seen this issue come up because of improper spacing, line > endings or a typo in the

[google-appengine] Proper use of BASE HTML tag

2009-01-08 Thread MajorProgamming
Is this treated well (and accepted as proper usage) by all standards and browser? --~--~-~--~~~---~--~~ 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@goog

[google-appengine] user login URLs in html/javascript

2009-01-08 Thread thebrianschott
http://code.google.com/appengine/docs/users/loginurls.html At the link above it explains how to send a user off to sign-in or register in a python script. The code below does what I want, but I don't know how to do the same thing as an html hyperlink on my applications "home" page. Not all users

[google-appengine] Re: Autogenerated indexes being cached?

2009-01-08 Thread Ryan W
That's it! Thanks Alex. I had a little trouble tracking down the file, wish this were better documented. For anybody who discovers this later, I found it here $ sudo find / -name "dev_appserver.datastore.history" -print /private/var/folders/Mq/Mq6HCC1-F8enD-Rr+rKv2k+++TI/-Tmp-/ dev_appserver.d

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Dan Sanderson
Repeating a couple of things I mentioned to Greg in email, for the list discussion: A single-server SQL database with low load and tables with rows numbering in the thousands can do lots of cool things with that data in a reasonable amount of time. But many of the features of a SQL query engine ha

[google-appengine] Admin interface that let's me enter dummy data

2009-01-08 Thread adelevie
I really like GAE's admin interface save for one thing: it doesnt let me enter dummy data--it says I must do it programmatically. While I'm sure there is some legitimate reason for this, I still would like an automated set of forms generated from my existing models. Is anyone else in the same boat

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Alex Popescu
On Jan 9, 1:22 am, Alexander Kojevnikov wrote: > > Looking at it more deeply every 20th one takes a long time. I assume > > that's the data fetch. > > I guess you are iterating over a Query or GqlQuery object to get the > entities? This explains explain why every 20th iteration. > Fromhttp://c

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Alex Popescu
On Jan 9, 4:15 am, Tzakie wrote: > [...] > > Can't you guys make something that just returns the keys from a query? > That seems consistent with how I think big table works. I'm pretty sure there should be a solution for this as BigTable is basically a distributed hashmap, so fetching only the

[google-appengine] Re: Running multiple Dev Web Servers on same machine

2009-01-08 Thread Alex Popescu
I am running the latest GAppEngine SDK on Leopard with Python 2.5.4. As mentioned in the initial post, I have configured each of the web servers to run on specific ports (and both are configured to use their own data storage). I am noticing the issue when one of the web servers if responding to a

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Tzakie
> Quite frankly, I can't think of a Google web app that displays 100 of > anything all at once... I'm getting the impression that people think what I'm asking for is ridiculous and off the radar. I sent you an e-mail with the urls of the current app and what I am working on. When you see it in c

[google-appengine] Re: How to determine top 10 scoring users from last 24 hours?

2009-01-08 Thread boson
On Jan 8, 3:44 pm, "Amir Michail" wrote: > On Thu, Jan 8, 2009 at 5:34 PM, boson wrote: > > > On Jan 8, 1:00 pm, "Amir Michail" wrote: > >> But how would you do this with a 24 hour rolling window? > > > My solution was for a simple fixed 24-hour chunks. > > > But you could adapt it to store 2

[google-appengine] ImportError: cannot import name webapp

2009-01-08 Thread Kwame
I have a problem that I am unable to understand. One minute my appengine app was running fine, the next it was giving this error: ImportError: cannot import name webapp Older projects that I built on app engine seem to be working fine. The full stack trace is: ERROR2009-01-09 00:19:27,800 de

[google-appengine] Re: Beginner Question - About using App Engine

2009-01-08 Thread Faber Fedor
On Thu, Jan 8, 2009 at 5:56 PM, mscwd01 wrote: > > > In short, i'd like to use App Engine to return xml responses to my > Android App - instead of using App Engine for the usual browser based > web application. > > Is this allowed? I hope so! I'm planning on doing the same thing! (Except with

[google-appengine] Re: Beginner Question - About using App Engine

2009-01-08 Thread mscwd01
Thanks for your quick reply Dan, I shall be using App Engine in the not-to-distant future it seems. ... I shall need to learn Python now :) On Jan 8, 11:57 pm, Dan Sanderson wrote: > Yup, you can definitely use App Engine to create web services like you > describe.  A networked backend for an A

[google-appengine] Re: Beginner Question - About using App Engine

2009-01-08 Thread Dan Sanderson
Yup, you can definitely use App Engine to create web services like you describe. A networked backend for an Android app is a great use of App Engine. -- Dan On Thu, Jan 8, 2009 at 2:56 PM, mscwd01 wrote: > > I have taken a look around the App Engine documentation but havent > been able to find

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Dan Sanderson
On Thu, Jan 8, 2009 at 3:35 PM, Tzakie wrote: > > Thanks very much for your time guys. > No problem, happy to help. > When you call: > CategoryRows = db.GqlQuery(QueryString) > It's fast. > > It's the loop where you try and access the returned entities that > is slow. Doesn't it follow that th

[google-appengine] Re: How to determine top 10 scoring users from last 24 hours?

2009-01-08 Thread Amir Michail
On Thu, Jan 8, 2009 at 5:34 PM, boson wrote: > > On Jan 8, 1:00 pm, "Amir Michail" wrote: >> But how would you do this with a 24 hour rolling window? > > My solution was for a simple fixed 24-hour chunks. > > But you could adapt it to store 24 fixed hourly chunks in each entity > and a timestamp

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Tzakie
Hey Dan and Boson, Thanks very much for your time guys. When you call: CategoryRows = db.GqlQuery(QueryString) It's fast. It's the loop where you try and access the returned entities that is slow. Doesn't it follow that the CategoryRows has the keys in it and the next() in the python loop is fe

[google-appengine] Beginner Question - About using App Engine

2009-01-08 Thread mscwd01
I have taken a look around the App Engine documentation but havent been able to find a definitive answer to my question, so I hoped i'd get an answer by posting here ;) I am developing an Android application which makes substantial use of Google APIs; I had planned to set up my own dedicated serv

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Alexander Kojevnikov
> Looking at it more deeply every 20th one takes a long time. I assume > that's the data fetch. > I guess you are iterating over a Query or GqlQuery object to get the entities? This explains explain why every 20th iteration. From http://code.google.com/appengine/docs/datastore/queryclass.html :

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Dan Sanderson
There is currently no way to retrieve only parts of entities, nor just keys, from the datastore in response to queries. There's no way to dig out the keys either: the datastore returns the full entities in response to queries, there is no intermediate app-side step that fetches entities for keys.

[google-appengine] Re: Autogenerated indexes being cached?

2009-01-08 Thread Alexander Kojevnikov
Try removing the database access history file, then restarting the development server. The file is called dev_appserver.datastore.history and located in the tmp directory. The development server auto-generates the indices based on the history file, even if you don't run the corresponding queries

[google-appengine] Static File Questions

2009-01-08 Thread MajorProgamming
Just a few questions on static files: 1. Does serving a static file cost CPU usage? 2. Does having a large number of static files (let's say like 700) have _any_ effect on performance of page serving [similarly, does having a lot of mappings affect performance]? 3. When a python script reads a

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread boson
BigTable is an object store, so you can't ask it for specific fields like you can in a traditional database. In the future we may get new tools from Google that operate in cloud data and return a result (MapReduce, etc.), but not yet. You might try (like Dan said) breaking your entities up into

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

2009-01-08 Thread Anthony
Yes I have a main(), but the zipimporter is not in the .py file containing the main() it is in an imported file. The zipimporter is writing out its own info into the log.. for every request - should this happen if it is cached? On Jan 8, 5:34 pm, Guido van Rossum wrote: > One question -- are yo

[google-appengine] Re: How to determine top 10 scoring users from last 24 hours?

2009-01-08 Thread boson
On Jan 8, 1:00 pm, "Amir Michail" wrote: > But how would you do this with a 24 hour rolling window? My solution was for a simple fixed 24-hour chunks. But you could adapt it to store 24 fixed hourly chunks in each entity and a timestamp to identify the window. Then roll the data back by the pr

[google-appengine] Re: Transcript: App Engine chat time January 7

2009-01-08 Thread Amir Michail
Hi, About that probabilistic stuff I was talking about, it turned out to be unnecessary for my app. A very simple solution not involving probability: * associate a ratio with each user taking into account the score and the number of times that user has been selected * when selecting a user, us

[google-appengine] Re: Announcing: System Status Dashboard, Quota Details Page, and a Preview of Billing

2009-01-08 Thread Marzia Niccolai
Hi, First, regarding Google Checkout - this will be the only method of payment available when billing launches, however, we are still committed to supporting our developers who live in the few countries where Google Checkout is not available. For developers located in those countries, quotas for p

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Tzakie
>Similarly, if you want the query to return >just the keys, you'll need entities containing the properties that are the >subjects of query filters and the keys for the full entities. so there is no way to QueryString="SELECT * FROM USER_INVENTORY WHERE TUSER_ID=432 AND CATEGORY_ID=23423" Categor

[google-appengine] Re: http://carpoolfinder.appspot.com/ won't work now and svn update fails

2009-01-08 Thread thebrianschott
Actually the link that helped me is this one. http://code.google.com/appengine/docs/users/loginurls.html On Jan 8, 4:32 pm, thebrianschott wrote: > > >http://code.google.com/appengine/docs/thedevwebserver.html --~--~-~--~~~---~--~~ You received this message beca

[google-appengine] Re: http://carpoolfinder.appspot.com/ won't work now and svn update fails

2009-01-08 Thread thebrianschott
Boson, Thanks, somehow I had misread the link in the docs to say the information there was only for the developer's local system. But it was for the productions system. So I read more carefully and our app is primitive, but it works now. So I may start another thread, as you suggest, but not till

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Dan Sanderson
If you only need some of the properties for the query that needs 100+ results, you'll need to create a separate set of entities with just those properties, and query those. Similarly, if you want the query to return just the keys, you'll need entities containing the properties that are the subject

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Tzakie
Looking at it more deeply every 20th one takes a long time. I assume that's the data fetch. Still need a way to optimize... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this g

[google-appengine] Re: How to determine top 10 scoring users from last 24 hours?

2009-01-08 Thread Amir Michail
; ... > lifetime_score = 14382 # total score over eternity > daily_day = "20090108" # the last day a score was recorded > daily_score = 153 # the score for daily_day > > When you update the score, do a transaction as follows: > if today's date matches enti

[google-appengine] Re: How to determine top 10 scoring users from last 24 hours?

2009-01-08 Thread boson
ntity where you are tallying, track a day and a score for that day: user = "Kobe" weight = "180" ... lifetime_score = 14382 # total score over eternity daily_day = "20090108" # the last day a score was recorded daily_score = 153 # the score f

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Tzakie
> 1. What is the shape of your data?   > i.e. how big are your entities and what do they contain? class USER_INVENTORY(db.Model): TUSER_ID = db.IntegerProperty() ITEM_TYPE = db.StringProperty() ITEM_ID = db.IntegerProperty() SUFFIX_ID = db.IntegerProperty() HAVE_INVENTORY = d

[google-appengine] Re: http://carpoolfinder.appspot.com/ won't work now and svn update fails

2009-01-08 Thread boson
Brian, It's hard to tell what you're actually stuck on, because you're throwing out a lot of information about SVN, transactions, logging, production vs. development, etc. I suggest you start a new thread with a simple and distilled version of your question, and only include short and relevant s

[google-appengine] How to determine top 10 scoring users from last 24 hours?

2009-01-08 Thread Amir Michail
Hi, How can this be done efficiently with the current version of the GAE? I suppose you could keep track of all events affecting scoring for the last 24 hours. Whenever you handle a request -- even one that does not affect scoring -- you could prune out events older than 24 hours and add a new

[google-appengine] Re: Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread boson
Tzakie, A few things: 1. What is the shape of your data? i.e. how big are your entities and what do they contain? 2. How are you using entity groups? Is all your data in a single entity group (shared ancestor)? 3. Also try to experiment with permutations of your index and query to try to iso

[google-appengine] Re: Running multiple Dev Web Servers on same machine

2009-01-08 Thread bowman.jos...@gmail.com
When writing the Cron application for gaeutilities I ran into the need to ran two instances, as the dev_appserver can't make a request to itself. All I did was run the second instance on a different port, didn't have to mess with the address. Mind you, it didn't make a lot of requests to the datas

[google-appengine] Re: Running multiple Dev Web Servers on same machine

2009-01-08 Thread boson
These dev_appserver.py params seem important for running multiple instances: --address=ADDRESS, -a ADDRESS Address to which this server should bind. (Default localhost). --port=PORT, -p PORT Port for the server to run on. (Default 8080) --datastore_path=PATH Path to use for storing Datastore fi

[google-appengine] Re: Running multiple Dev Web Servers on same machine

2009-01-08 Thread Bill
Alex, I've had no problem running 2 dev web servers on my MacBook Pro (Leopard OS X). What OS are you using and are you launching dev_appserver.py with the port options? You have to give more detailed information. Best, Bill On Jan 8, 2:39 pm, Alex Popescu wrote: > I am trying to run 2 dev w

[google-appengine] Running multiple Dev Web Servers on same machine

2009-01-08 Thread Alex Popescu
I am trying to run 2 dev web servers on my local machine in order to test some fetch functionality. Anyways, even if both apps are configured to use different ports and they are running in 2 different Python processes, this doesn't seem to work. Is this a known limitation? Is there any workaround?

[google-appengine] Request/Response objects and WebOb

2009-01-08 Thread Alex Popescu
Is there any particular reason for having the Request class extend the WebOb Request, while the Response is just extending object? As far as I checked the Request class is the single dependency on WebOb framework and I find it quite curious. ./alex --~--~-~--~~~---~--~

[google-appengine] Is the Datastore just too slow for 100+ returned records?

2009-01-08 Thread Tzakie
I've spend alot of time profiling and optimizing my app. I've watched all the google io videos and done a ton of reading... But there is one query I can't optimize away: SELECT * FROM USER_INVENTORY WHERE TUSER_ID=637 AND CATEGORY_ID=2752 ORDER BY ITEM_NUMBER ASC, ITEM_NAME, SUFFIX_NAME Yes the

[google-appengine] Re: http://carpoolfinder.appspot.com/ won't work now and svn update fails

2009-01-08 Thread thebrianschott
Rodrigo, Thank you very much. That does look simple. If found this link which describes using http://code.google.com/appengine/docs/thedevwebserver.html but it describes only what should be done on the development system. I cannot find a page which describes your approach on the appspot system.

[google-appengine] Autogenerated indexes being cached?

2009-01-08 Thread Ryan W
I'm working to tune my indexes. I noticed a lot of unused indexes, so I removed everything from my index.yaml and then added back one by one while running the application locally with the "dev_appserver.py -- require_indexes" command. Everything was working good, so I went ahead and ran the inde

[google-appengine] Trouble with NeedIndexError when calling count()

2009-01-08 Thread Ryan W
All of a sudden this morning, I began getting this error in my app, when doing a search inside of an internal process (searching for duplicates) and then taking a count() of the results. It was working fine before. I have this same query on a search page as well, and it's still fine. The search

[google-appengine] Re: Announcing: System Status Dashboard, Quota Details Page, and a Preview of Billing

2009-01-08 Thread mclovin
Am i missing something somewhere? I cant seem to find any pricing for commericial applications even though google advertises app engine as a solution for commericial deployment. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[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 f

[google-appengine] Re: Add Domain (New Domain Depoloyment)

2009-01-08 Thread Marzia Niccolai
Hi, In order to serve an App Engine app off your domain it must be a Google Apps domain. (2) alone is not sufficient. -Marzia On Thu, Jan 8, 2009 at 7:59 AM, PatHaugen wrote: > > I searched groups and help, but still couldn't figure something out > that may be misleading... > > http://appengi

[google-appengine] Re: Yahoo Domain redirect

2009-01-08 Thread Marzia Niccolai
Hi, Currently the 302 redirect to 'www' is the only method available for using the naked domain. -Marzia On Wed, Jan 7, 2009 at 1:11 PM, Pankaj Vishwani wrote: > > I already tried all that but yahoo doesn't give any such thing for > redirecting... > can google give some other way to do it l

[google-appengine] Re: URL Fetch API --- Does Google log IP addresses to prevent abuses?

2009-01-08 Thread Marzia Niccolai
Hi, Logs are kept around for awhile in the admin console, and you can access different app version logs by changing the version number in your application's dashboard (the number on in the left hand corner). You can download your logs by using appcfg.py: http://code.google.com/appengine/docs/app

[google-appengine] Re: 500 server error despite proper testing on dev_appserver.py and upload

2009-01-08 Thread Marzia Niccolai
Hi, Usually if you are getting a 500 server error with no logs like you have described, this means there is some typo in the app.yaml file that was uploaded. We've seen this issue come up because of improper spacing, line endings or a typo in the script name. -Marzia On Tue, Jan 6, 2009 at 6:18

[google-appengine] Re: OSX Leopard "NotImplementedError: Unable to find the Python PIL library."

2009-01-08 Thread Rodrigo Moraes
On Thu, Jan 8, 2009 at 7:11 AM, PatHaugen wrote: > Anyone get this to cleanly work as documented by Google? not me. this is how i got it working: http://appengine-cookbook.appspot.com/recipe/install-pil-in-mac-os-x -- rodrigo --~--~-~--~~~---~--~~ You received t

[google-appengine] Re: App Engine Gadget doesn't authenticate to Google Apps account

2009-01-08 Thread Marzia Niccolai
Hi Ryan, The behavior you've observed is by design. Google Accounts users must explicitly sign in to any application wishing to have access to their email. Google Apps does not have the same login policy. -Marzia On Tue, Jan 6, 2009 at 7:17 PM, ryan wrote: > > I've written a basic App Engine

[google-appengine] OSX Leopard "NotImplementedError: Unable to find the Python PIL library."

2009-01-08 Thread PatHaugen
Installed the Google App Engine SDK: 1.1.7 11/21/08 http://code.google.com/appengine/downloads.html Worked perfect. Wanted to go into images, and test locally: http://code.google.com/appengine/docs/images/installingPIL.html#mac Installed this: http://pythonmac.org/packages/py25-fat/dmg/PIL-1.1.

[google-appengine] Python web service on Google app engine

2009-01-08 Thread Puru
Hi all I have installed google app engine sdk 1.1.7 on windows xp with python 2.5.4. I am a fresh starter on python and what i need to do is to create a web service in python that communicates with google datastore. Though i am reading the "Getting Started" tutorial at http://code.google.com/appen

[google-appengine] email with Django and appenginepatch fails (1,'Uknown Error')

2009-01-08 Thread Dave
I am having a problem that I hope has an easy answer although I've looked high and low for an answer. I am using app engine with appenginepatch, including Django 1.x. When I attempt to send an email I get an 'herror" Exception with Exception Value "(1, uknown host)". >From the error output, line 1

[google-appengine] Add Domain (New Domain Depoloyment)

2009-01-08 Thread PatHaugen
I searched groups and help, but still couldn't figure something out that may be misleading... http://appengine.google.com/deployment/newdomain?app_id=XXX So it informs me: "Note: You must sign up for Google Apps to register this domain or prove that you already own it." 1. Sign up for Google Ap

[google-appengine] Re: http://carpoolfinder.appspot.com/ won't work now and svn update fails

2009-01-08 Thread Rodrigo Moraes
On Thu, Jan 8, 2009 at 6:05 AM, thebrianschott wrote: > Using logging.info() I have determined that the appspot is always > return None for "user=users.get_current_user()" and that is why the > app is working differently at appspot that locally. I have tried to > make this a single "transaction" t

[google-appengine] Re: 1 application, multiple datastores

2009-01-08 Thread hawkett
Hi Joseph, I've previously made this point here - http://groups.google.com/group/google-appengine/browse_thread/thread/6319dceae6ec73e7/4d4d464c25537bda?lnk=gst&q=#4d4d464c25537bda - so Google - people really do recommend against GAE because your rodmap is so impenetrable. Joseph, you may rec

[google-appengine] Re: AuthToken for Appengine

2009-01-08 Thread Magnolia 8575
Thanks Jeff I have added this in the issues list http://code.google.com/p/googleappengine/issues/detail?id=974 On Tue, Jan 6, 2009 at 3:57 PM, Jeff S wrote: > > At the moment, there isn't really an option that avoids asking the > user for their Google Account password. The Google Calendar API

[google-appengine] Re: cpu usage

2009-01-08 Thread reyjexter
try using a profiler. in my case, i'm able to determine that web service & using stringio use lots of cpu. you may need to remove some things like for example not using both web service call and saving of information on a session backed memcache. On Jan 8, 1:49 pm, Ray Malone wrote: > Hi I get

[google-appengine] Re: Reminder: App Engine chat time, tonight 7-8PM PST

2009-01-08 Thread David Symonds
On Thu, Jan 8, 2009 at 6:54 PM, cz wrote: > I've been unable to make the chat times, is there a transcript > archived somewhere? They're posted to this list not long after each chat time. Check the list archives for the previous ones. Dave. --~--~-~--~~~---~--~---

[google-appengine] Re: http://carpoolfinder.appspot.com/ won't work now and svn update fails

2009-01-08 Thread thebrianschott
Using logging.info() I have determined that the appspot is always return None for "user=users.get_current_user()" and that is why the app is working differently at appspot that locally. I have tried to make this a single "transaction" to allow the value of user to be determined in a timely way, bu