[google-appengine] Re: Local datastore import is too slow

2008-11-20 Thread David Symonds
On Thu, Nov 20, 2008 at 11:35 AM, Jyoti Shete-Javadekar [EMAIL PROTECTED] wrote: I am trying to load my development datastore using the bulk loader script. However the import is very slow. I had to kill the import process since it was not completed even after 12 hours. I have about 13K rows

[google-appengine] Re: quotas in appengine

2008-11-20 Thread bFlood
I agree jay, the most important feature for me right now is getting the payment system in place. One thing that is not clear to me is if we will be able to buy more Puts-per-hour so that we aren't taken offline for a legitimate spike in traffic. I'm not sure how I would tell me clients to

[google-appengine] Storing references to other objects..?

2008-11-20 Thread jago
Hi, Each GalleryObject can be a 'root' without any parent or it has a parent, which is another GalleryObject it is based on. This means each GalleryObject may have a history of parents, grandparents, etc. How should I store this history? Store only the immediate parent or a list of those

[google-appengine] Re: INPUT-OUTPUT applications using DATASTORE

2008-11-20 Thread ΚΩΣΤΑΣ ΑΝΑΣΤΑΣΙΑΔΗΣ
Hello everybody from Greece   I want to do this simple task: To create an application that will create a datastore and get user input. It is like the 1st part of the Guestbook application. Then I want to create another application like the 2nd part of the Guestbook application to print the user

[google-appengine] Re: OpenID consumer and sessions

2008-11-20 Thread Michael
Thanks, I'm looking forward to hearing from you. This however still leaves me with the question: is this the way I am supposed to handle an OpenID logged user? Best, Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[google-appengine] Re: AttributeError: '_URLFetchResult' object has no attribute 'strip' Is driving me Crazy...

2008-11-20 Thread Maarten_D
Thanks Alexander, It did the trick. Maarten On Nov 17, 12:47 am, Alexander Kojevnikov [EMAIL PROTECTED] wrote: urlfetch.fetch() returns a Response object, not a response value as a string:http://code.google.com/appengine/docs/urlfetch/responseobjects.html This code should do the trick:  

[google-appengine] Logging static file requests

2008-11-20 Thread Chris
Hey everyone, I've been using the built-in logging module to log all sorts of scripting events for debugging/tracking purposes. It would be great if I could use this logging functionality to make a note of whenever a user requests a particular static file (e.g. tracking file downloads). My first

[google-appengine] Re: OpenID consumer and sessions

2008-11-20 Thread [EMAIL PROTECTED]
In short, I believe session management is the best way to do that, yes. I'm hoping to wrap up the part of my project I'm working on sometime next week when I have some time. After that, I'll be tackling this issue myself. Not for OpenID (yet), but for oauth login sources like Google, Yahoo, and

[google-appengine] Global Variables / Caching Question

2008-11-20 Thread Joel Odom
Forgive me if this is a FAQ, but I did a little searching and did not find an answer. According to http://code.google.com/appengine/docs/python/appcaching.html, GAE caches global variables in imported modules between requests. I've got a global dictionary in a module that I'm sharing between

[google-appengine] Re: Hardly anything stored in appengine - already 10 MB gone?

2008-11-20 Thread Joel Odom
Your not hallucinating. I've seen the same kind of problem. Apparently there is a known issue where space is sometimes not reclaimed after you delete a data store entity. If you've been creating and deleting a lot of entities, this one may be hitting you. On Wed, Nov 19, 2008 at 5:07 PM, jago

[google-appengine] Re: Global Variables / Caching Question

2008-11-20 Thread admin go2
There are no threads on gae. When multiple users visit your app simultaneously, gae will start several process to deal with the request. Every proccess has a copy of the variables. == http://go2.apsppot.com 2008/11/20 Joel Odom [EMAIL PROTECTED] Forgive me if this is a

[google-appengine] Re: How do I create the a image object that is located on my local file system?

2008-11-20 Thread charles
Thanks a lot for this info On 11月20日, 上午5时44分, Alexander Kojevnikov [EMAIL PROTECTED] wrote: You cannot access the static files in app engine.http://code.google.com/appengine/docs/configuringanapp.html#Static_Fi... If you need to read your image, keep it with the application files or in

[google-appengine] sharing application

2008-11-20 Thread GAEfan
I want to post my application in the Gallery. The submit button says Share this Application. I just want to make sure that that doesn't make the source code public. Also, 2 of the fields are: Application URL:* Source URL: What is the difference? Thanks.

[google-appengine] Data Modelling Advice - Blog Tagging System

2008-11-20 Thread Matthew Trinneer
Am wondering if anyone might provide some conceptual advice on an efficient way to build a data model to accomplish the simple system described below. Am somewhat new to thinking in a non-relational manner and want to try avoiding any obvious pitfalls. It's my understanding that a basic

[google-appengine] Alternate way to receive verification code than SMS?

2008-11-20 Thread roschler
Hello all, I know you're going to think I live in a cave, but I don't currently own a mobile phone (that may change once I see a Google Android phone I like, but not yet). Is there another way to get the Google AppEngine verification code than via the current cell phone based SMS route?

[google-appengine] Executing query on DevelopmentServer

2008-11-20 Thread ZCm
Hi ! I have model class RawData(db.Model): raw = db.StringProperty(multiline=True) date = db.DateTimeProperty(auto_now_add=True) somvere in my code i try ... query = RawData.gql(ORDER BY date LIMIT 100) query_length = query.count() but it returns that query_length is 0 ! but

[google-appengine] ViewDoesNotExist

2008-11-20 Thread yinDojo
Hello, I am new to google app engine and django. I extracted the Google App Engine Helper for Django and created an app. I am trying to do a simple test of accessing a simple webpage. Below is the error that i am getting. But the views.py is under /mytest/ directory. I have attached the

[google-appengine] bulkload issues

2008-11-20 Thread Selva
I have a requirement of loading around 50 entities to a data model. Each entity contains max of 20 attributes. But the no.of attributes for each entity is varying(i.e, some records will not have all the field values). When I am trying to use bulkload utility to load the data. Since the

[google-appengine] Re: Getting total count from datastore

2008-11-20 Thread [EMAIL PROTECTED]
what about of using Ajax for dynamic (such as using users parameters) and complicated counts ? I mean, to leave to JS the responsibility of summing data that GAE will calculate in bulk of 1000 ? I know you will have the overhead of 1 call for every 1000 records... but at least you wont risk

[google-appengine] Re: Best practices implementing paging

2008-11-20 Thread gops
best way i found is to use any entity and +1 rule. and back link using HTTP REFERER (not accurate but reliable in most conditions..) On Nov 19, 9:38 pm, Abel Rodriguez [EMAIL PROTECTED] wrote: I am currently doing a detailed study on how to optimize my application to be scalable. I have

[google-appengine] Re: How to update my new version of db on server

2008-11-20 Thread Marzia Niccolai
Hi, There is no automatic way that you can update models in the datastore. You would need to write a custom script to handle data migration in chunks. Information on how you can do this can be fuond in this article: http://code.google.com/appengine/articles/update_schema.html -Marzia On Wed,

[google-appengine] Re: Compressed string extractable in appengine?

2008-11-20 Thread Daniel O'Brien (Google)
The following should work, if you haven't tried something along these lines already. Java: String inputString = Hello, world!; byte[] input = inputString.getBytes(UTF-8); byte[] output = new byte[100]; Deflater compresser = new Deflater(); compresser.setInput(input);

[google-appengine] Re: Expiring DataStore Entities ?

2008-11-20 Thread Jeff S
Hi boson, It sounds like this idea belongs in the issue tracker as a feature request: http://code.google.com/p/googleappengine/issues/list Happy coding, Jeff On Nov 18, 9:27 am, boson [EMAIL PROTECTED] wrote: Anybody like this?  I propose that Google allows Datastore entries to expire and

[google-appengine] Re: gql matching DateTimeProperty

2008-11-20 Thread Marzia Niccolai
Hi, In order to query on DateTime objects, the following methods are supported (from http://code.google.com/appengine/docs/datastore/gqlreference.html): A datetime, date, or time literal, with either numeric values or a string representation, in the following forms: * DATETIME(year, month, day,

[google-appengine] Re: bulk upload

2008-11-20 Thread Marzia Niccolai
Hi, This first error looks to be caused by this issue: http://code.google.com/p/googleappengine/issues/detail?id=157 For the second, to upload text fields, you can specify the value type as db.Text. -Marzia On Wed, Nov 19, 2008 at 11:02 PM, Gampesh [EMAIL PROTECTED] wrote: Hi, my

[google-appengine] Re: Best practices implementing paging

2008-11-20 Thread Jon Watte
The only downside is that it's not possible to page back HTTP REFERER (not accurate but reliable in most conditions..) Couldn't you build a paging index incrementally, and put it in a cookie? --~--~-~--~~~---~--~~ You received this message because you are

[google-appengine] Re: sharing application

2008-11-20 Thread Marzia Niccolai
Hi, Source URL is not required, and may be omitted. The Application URL is the URL where the app is being served, and is required to submit your app. -Marzia On Thu, Nov 20, 2008 at 8:51 AM, GAEfan [EMAIL PROTECTED] wrote: I want to post my application in the Gallery. The submit button

[google-appengine] Re: Alternate way to receive verification code than SMS?

2008-11-20 Thread Marzia Niccolai
Hi Robert, Please fill out this form: http://appengine.google.com/waitlist/sms_issues -Marzia On Thu, Nov 20, 2008 at 3:16 AM, roschler [EMAIL PROTECTED] wrote: Hello all, I know you're going to think I live in a cave, but I don't currently own a mobile phone (that may change once I see a

[google-appengine] Re: INPUT-OUTPUT applications using DATASTORE

2008-11-20 Thread Marzia Niccolai
Hi Costas, What kind of errors are you seeing? It's difficult to read the code highlighted, so if you could include a stack trace or other information, that would be helpful. Thanks, Marzia 2008/11/20 ΚΩΣΤΑΣ ΑΝΑΣΤΑΣΙΑΔΗΣ [EMAIL PROTECTED] Hello everybody from Greece I want to do this

[google-appengine] Re: bulkload issues

2008-11-20 Thread [EMAIL PROTECTED]
local store is a dummy datastore and It could be slow... how are you managing the 10MBytes of datastore limitation with your 500k entities ? On Nov 20, 9:11 am, Selva [EMAIL PROTECTED] wrote: I have a requirement of loading around 50 entities to a data model. Each entity contains max of

[google-appengine] SDK 1.1.6: urlfetch: no content-length in response?

2008-11-20 Thread Waldemar Kornewald
Hi, I hope I checked correctly. I completely removed and reinstalled the SDK 1.1.6 two times. Urlfetch seems to remove the content-length header from the HTTP response. At least, that attribute is part of _UNTRUSTED_RESPONSE_HEADERS in urlfetch_stub.py and I printed the headers with

[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?

2008-11-20 Thread Marzia Niccolai
Hi Waldemar, The SDK was updated so that a user can only specify headers in the SDK that they are able to specify in production. Since App Engine does not allow this header to be set, the SDK no longer does. -Marzia On Thu, Nov 20, 2008 at 12:57 PM, Waldemar Kornewald [EMAIL PROTECTED]wrote:

[google-appengine] Re: gql matching DateTimeProperty

2008-11-20 Thread niklasr
Thank you for replying, though it's still not matching from here. I've this is the datastore added -MM-DD HH:MM:SS value: 2008-06-08 22:17:45.200477 type: gd:when Still the following won't match SELECT * FROM thing WHERE added = '2008-06-08 22:17:45' It should be trivial, but how?

[google-appengine] Re: gql matching DateTimeProperty

2008-11-20 Thread Marzia Niccolai
Hi Niklas, As stated above, you can not use the string literal to query, you must include a DATETIME() wrapper around that argument. Additionally, since milliseconds are not included, you would need to query something like this to find a specific entity that accorded at 2008-06-08 22:17.45.:

[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?

2008-11-20 Thread Waldemar Kornewald
Hi Marzia, On Nov 20, 10:07 pm, Marzia Niccolai [EMAIL PROTECTED] wrote: The SDK was updated so that a user can only specify headers in the SDK that they are able to specify in production.  Since App Engine does not allow this header to be set, the SDK no longer does. What I meant is that

[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?

2008-11-20 Thread Marzia Niccolai
Hi Waldemar, Sorry, I think I'm not understanding what issue you are seeing. Is it that the request received by your app has the content-length header removed? The SDK should disallow self.response.headers['Content-Length'] to be set by the user, as this is how our production environment

[google-appengine] Re: ViewDoesNotExist

2008-11-20 Thread Waldemar Kornewald
Hi! On Nov 20, 5:18 pm, yinDojo [EMAIL PROTECTED] wrote: #  urls.py - # this urls.py is located under mytest folder from django.conf.urls.defaults import * urlpatterns = patterns('',   (r'^$', 'views.index'),    

[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?

2008-11-20 Thread Waldemar Kornewald
Hi Marzia, On Nov 20, 11:03 pm, Marzia Niccolai [EMAIL PROTECTED] wrote: Sorry, I think I'm not understanding what issue you are seeing. Is it that the request received by your app has the content-length header removed? No, I'm using urlfetch: response = urlfetch.fetch(...)

[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?

2008-11-20 Thread Waldemar Kornewald
Hi Marzia, On Nov 20, 11:27 pm, Marzia Niccolai [EMAIL PROTECTED] wrote: Hi Waldemar, Ah, yes, sorry for the confusion.  This is a bug.  I've filed it:http://code.google.com/p/googleappengine/issues/detail?id=877 -Marzia Thanks a lot! Bye, Waldemar Kornewald

[google-appengine] Re: gql matching DateTimeProperty

2008-11-20 Thread Marzia Niccolai
Hi Niklas, I believe this is an issue that only affects the Admin Console. I've filed this issue: http://code.google.com/p/googleappengine/issues/detail?id=878 It executes perfectly within an application. -Marzia On Thu, Nov 20, 2008 at 5:21 PM, niklasr [EMAIL PROTECTED] wrote: Many

[google-appengine] Re: Compressed string extractable in appengine?

2008-11-20 Thread jago
Thanks...worked great. On Nov 20, 7:37 pm, Daniel O'Brien (Google) [EMAIL PROTECTED] wrote: The following should work, if you haven't tried something along these lines already. Java:     String inputString = Hello, world!;     byte[] input = inputString.getBytes(UTF-8);     byte[]

[google-appengine] IP geocoding/geolocation in Google App Engine

2008-11-20 Thread Wesley Tanaka
A geo location service for looking up the country code for a given IP address: http://geoip.wtanaka.com/ It can be queried from google app engine apps. There's some sample code here: http://code.google.com/p/geo-ip-location/ --~--~-~--~~~---~--~~ You received

[google-appengine] Return file with app.yaml, fetch() or redirect?

2008-11-20 Thread jago
I have a jar-file at another host XYZ. From this host the file is returned with a special content- and mime-type in its header. I want the appengine to make the file available at /remote/test.jar If a user then calls http://myapp.appspot.com/remote.test.jar I want the jar to be returned

[google-appengine] Re: SDK 1.1.6 Released

2008-11-20 Thread Adam Fisk
Exciting, Marzia. So sorting on a key would be much faster way of doing a bulk update of existing data of the kind described at: http://code.google.com/appengine/articles/update_schema.html in the Updating Existing Entities section, is that correct? Any idea how much faster sorting by the key

[google-appengine] Re: Best practices implementing paging

2008-11-20 Thread Tim
I plan to do this by building an index entity as entries are added. So, for example, the index entity would contain the order string for every 10th entry (the first on each page), allowing you to jump straight to a particular page. On Nov 20, 11:07 am, Jon Watte [EMAIL PROTECTED] wrote: The

[google-appengine] I want to use urlfetch to get the search result of facebook

2008-11-20 Thread saranpol
I want to use urlfetch to get the search result of facebook I want to search people by email in facebook (http://www.facebook.com/ [EMAIL PROTECTED]) and facebook allow only registered user to get the result I try to send cookie like this result = urlfetch.fetch(