[google-appengine] GAE max recursion depth exceeded error [Python]

2010-11-12 Thread Pranny
Hi folks. All of a sudden, i started to experience this error of MAximum Recursion dept exceeded. I tried reinstalling GAE, cleaning the datastore but still does not go away. I am on a Fedora 12, Python 2.6 machine. I have been using this same setup for like an year now. Never faced this issue. The

[google-appengine] is db.get is faster than Model.get_by_key_name ?

2010-05-10 Thread Pranny
Is db.get() faster than Model.get_by_key_name()? Currently we are using Model.get_by_key_name for querying over a Model. Sometimes it takes unacceptable time, but mostly it is good enough. The Model has fewer than four attributes, all text. There is a lot of data that is stored using this model and

[google-appengine] Stop a nuclear disaster

2010-03-13 Thread pranny
Hi Google App Engine,Our government is churning out one hazardous bill after another. This time it is a bill called the Civil Liability for Nuclear Damage, and it's coming up for a vote in a couple of days. The bill lets U.S. corporations off the hook for any nuclear accidents they cause on Indi

[google-appengine] Django form caching

2010-01-16 Thread Pranny
i am observing a strange behavior in djangoforms. I am using the default django provided in latest AppEngine SDK. The datastore is updated by the entries i put, but when i view them in a form, the latest ones are not shown. It takes some time (approx 5 minutes) before the latest entries show up. Ha

[google-appengine] Re: Caching of dynamic images

2009-12-08 Thread Pranny
['Last-Modified'] = image.time and > image.time.strftime(GMT_FORMAT) or DEFAULT_LAST > self.response.headers['Expires']= EXPIRES > self.response.headers['Cache-Control'] = 'public, max-age=31536' > self.response.headers['Date

[google-appengine] Re: Caching of dynamic images

2009-12-07 Thread Pranny
Per my experience, the production server also behaves the same On Dec 7, 5:43 pm, 风笑雪 wrote: > You need test it on production sever, the develop server always sends > no cache header. > > 2009/12/7 Pranny : > > > One issue that i have faced while serving dynamic images is th

[google-appengine] Caching of dynamic images

2009-12-07 Thread Pranny
One issue that i have faced while serving dynamic images is that images are not cached by default. So, every page reload or so, takes burden in fetching images. I tried to explicitly cache the images by setting headers as self.response.headers['Content-Type'] = "image/png" self.response.headers['C

[google-appengine] pranny invites you to SlideShare

2009-09-30 Thread pranny
Hi Google App Engine, pranny invited you to check out SlideShare with this message: ** I found this cool presentation and document sharing site. Check out some popular content at http://www.slideshare.net/most-favorited You can upload your own presentations and documents. SlideShare hosts

[google-appengine] Re: How to access form input where type="File"

2009-06-14 Thread pranny
Your content will be stored in self.request.get('datafile'). Now use any XML parser On Jun 12, 8:29 am, Gaurav wrote: > Hi, > > I am using google app engine and i intend to read an XML file provided > by HTML. I saw the  standard example on google app engine doc. I am > also using the HTML form

[google-appengine] Re: Performance: Datastore writes vs. logging writes

2009-06-14 Thread pranny
Speaking in terms of 'data mining' that you might be doing from the user's action logs, i would recommend data store writes ! -- Pranav Prakash On Jun 14, 9:28 pm, Henning wrote: > We want to collect usage statistics with our app. > Therefore, we want to track user actions somewhere on the serv

[google-appengine] Re: image protection

2009-06-11 Thread pranny
Aah yea, great. Thanks :-) On Jun 11, 11:34 pm, Wooble wrote: > The traditional method is to check if the referer header is from > another domain and if it is, don't serve the image. > > On Jun 11, 12:57 pm, pranny wrote: > > > > >  a few access checks > &

[google-appengine] Re: image protection

2009-06-11 Thread pranny
a few access checks I would like to know what access checks ? -- Pranav Prakash "This life is more than ordinary" On Jun 11, 1:32 pm, Barry Hunter wrote: > not if you have defined the images as static in your app.yaml (or > similar in java) > > but if your images are served dynamically (usin

[google-appengine] Re: Knowing which app belong to who

2009-06-09 Thread pranny
Hi, Because of unknown reasons, the app name can not be the name of any gmail user. So, say someone has an email like 'foo.bar[AT]gmail[DOT] com, then you can not create an app with the name foo.bar. So, in your case, i fear someone has the email id you are trying to register your app with. -- P

[google-appengine] Re: Data Preload Script Equivalent?

2009-06-09 Thread pranny
Hey Kenny, I was a little confused what meant by 'Data Preload script', but i think i am clear now :-) Basically, you want to create dynamic stuff (forms, in our case) with as little typing and as high flexibility as possible. 1. use templates http://code.google.com/appengine/docs/python/gettin

[google-appengine] Auditing mechanism using BigTable

2009-06-08 Thread Pranny
Hi folks, I need some kind of auditing mechanism in my app. What i want is data storage on a 'time axis' too. I read that BigTable stores data in many dimensions, one of which is time. Is there some way we can use this feature of BigTable in our apps? If not, can someone suggest me an alternative

[google-appengine] Re: Apps engine and google data centers abroad

2009-05-22 Thread pranny
Hi Lec, In my opinion what you want is localized pages, and not necessarily the .fr .cn and .in domains. Right? If this is the case, you can definitely use localization packages like babel and others. The best way is to ask the user on his first visit, language preference. And store it accordingl

[google-appengine] Re: Determine IP or Country of request..?

2009-05-15 Thread pranny
Hi, There are two cases in here 1. The Google Analytics way 2. The anonymous way In the GA way, you will providing the iframe source code to registered users. In the anonymous way, you will be providing the iframe source to an anonymous person. In the GA way, you can add a small javascript vari

[google-appengine] Re: use of Django's "forms.Form" on GAE

2009-05-13 Thread pranny
Neal, IIRC, cleaned_data is available only after you have used is_valid() method? Did you missed it out ? Check out http://docs.djangoproject.com/en/dev/topics/forms/#processing-the-data-from-a-form -- Cheers, Pranav Prakash "This life is more than ordinary" On May 13, 11:36 pm, Neal wrote: >

[google-appengine] Re: google apps how to make a test url...

2009-05-13 Thread pranny
On May 12, 11:50 pm, shappy wrote: > Hi, I am going to start making a website for a company. Great :) > currently I want to know how I can make urls for google apps engine. > > when I upload my app to google how would I know the urls that will be > part of the application? do I have to specifi

[google-appengine] [How To] - Get a global error handler

2009-05-04 Thread Pranny
Hi, I was thinking about a global error handler function. This global error handler will be catching any error/exception that occurs inside the application. In case there is a *local* error handler, it will over ride the *global* one. 1. Is it feasible? 2. If yes, how ? --~--~-~--~~-

[google-appengine] Re: Data exchange between DataStore and gData

2008-11-17 Thread Pranny
Hmm, i don't see a reason why i can not do so. After all at the heart, both store 'string' data. So, they can be easily modified. Anyways, thanks folks. On Nov 16, 6:26 pm, Pranny <[EMAIL PROTECTED]> wrote: > Hi, > I have a couple of questions. > (1) Can i display t

[google-appengine] Re: Environment variable DJANGO_SETTINGS_MODULE is undefined

2008-11-17 Thread Pranny
Before you import any django libraries, except for those from google.appengine.* you ust specify the Django settings. If you are using a fully Django environment, you should refer to http://code.google.com/p/google-app-engine-samples/source/browse/trunk/django_example/settings.py for an idea of wh

[google-appengine] Data exchange between DataStore and gData

2008-11-16 Thread Pranny
Hi, I have a couple of questions. (1) Can i display two widgets for one label? If i have a property named "Residence Address", i would like two text boxes coming next to this label. How do i do it? (2) In the initial stage, i just put two separate property like 'Address Line 1' and 'Address Line

[google-appengine] Re: TypeError in the admin console on dev server

2008-11-14 Thread Pranny
Yes, it is Issue # 280 only. I have added a comment there. Thanks On Nov 15, 3:22 am, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi, > > This looks to be issue > 280:http://code.google.com/p/googleappengine/issues/detail?id=280 > > -Marzia > > On Fri, Nov 14, 2008 at 11:44 AM, pran__ <[EMAIL P

[google-appengine] App.Yaml seems to be malfunctioning

2008-09-21 Thread Pranny
9-21 08:09:46,530 dev_appserver.py] "GET /newuser HTTP/ 1.1" 405 - INFO 2008-09-21 08:09:46,608 dev_appserver.py] "GET /favicon.ico HTTP/1.1" 404 - Any help is highly appreciated. Thanks and Regards, Pranny --~--~-~--~~~---~--~~ You received