[google-appengine] Re: Trouble with Multiple StringListProperty() + Django Templates

2008-12-10 Thread Alexander Kojevnikov
In your handler, pass: zip(entity.images, entity.snippets) ...to your template. Let's say the template variable is called items. Then in the template you can do: {% for image, snippet in items %} Do something with {{ image }} and {{ snippet }}. {% endfor %) Above will work in Django

[google-appengine] Re: url.fetch DNS cache (IP server changes)

2008-12-10 Thread Sylvain
Hi, Since yesterday, the error is back. from google.appengine.api import urlfetch resp = urlfetch.fetch('http://www.hordes.fr/') - DownloadError: ApplicationError: 5 But it should work I think, urlfetch is fetching the bad IP server. Currently, I can't use the IP adress. So my app is down

[google-appengine] Re: How to get root entities only?

2008-12-10 Thread Lakshmi
Yes :) I think Entity Groups are optimized more for performance and less for function. (Another example to reinforce this statement is the need to pass in the parent_id in get_by_id or the underlying assertion that the id's may not be unique outside of the entity group) On Dec 9, 11:59 am, Andy

[google-appengine] Superclass.get_by_key_name(subclass_instance.key_name) doesn't work

2008-12-10 Thread theillustratedlife
I'm a Flash designer building an app in AppEngine. My knowledge of OO principles is based on my experiences in Flash. Consider the following from models.py: class Question(BaseModel): prompt = db.StringProperty(required = True) class ShortAnswerQuestion(Question): multiline =

[google-appengine] Re: Memcache, get_stats() does not work anymore

2008-12-10 Thread Sylvain
Today, it works again. Maybe, we have to wait to initialize it. On 9 déc, 20:43, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm using that on the gaeutilities session demo, and it is working there http://gaeutilities.appspot.com/session On Dec 9, 8:18 am, Sylvain [EMAIL PROTECTED] wrote:

[google-appengine] Re: Can't verify my account... while actually received the SMS??

2008-12-10 Thread maxxyme
On Dec 9, 5:42 pm, maxxyme [EMAIL PROTECTED] wrote: But no feedback at the moment. Received an email from the App Engine Team yesterday at 8:50am (PST) telling me my account was enabled. Many thanks !!! --~--~-~--~~~---~--~~ You received this message because

[google-appengine] Re: Task Queues and Asynchronous Processing TODAY

2008-12-10 Thread kaspars...@gmail.com
You might achieve this kind of functionality (and more) using AppRocket http://code.google.com/p/approcket Although it currently doesn't have a generic queuing service built in, it's very easy to simulate. Just setup an entity in AE for asynchronous tasks, for example QueueTask and have it

[google-appengine] Isolated Application Deployment Instances

2008-12-10 Thread rvjcallanan
I am new to GAE (who isn't?) and this subject has been touched on before in a number of guises but I think we could all benefit from a little more clarity. I am developing a proof-of-concept business app which can benefit hugely from the GAE framework. My ideal scenario is to deploy the app to

[google-appengine] Re: How to open .html in .py file?

2008-12-10 Thread Jonathan B
On Dec 9, 5:12 pm, slatvick [EMAIL PROTECTED] wrote: But current problem that index.html does not load automatically and you need to write full domain path :www.yourdomain.com/index.html In app.yaml you specify which script will execute (for example, index.py). Inside index.py you need to

[google-appengine] Re: How to open .html in .py file?

2008-12-10 Thread slatvick
Try this. handlers: - url: / static_files: static/index.html upload: static/index.html - url: / static_dir: static/ It autocalls the index.html and can read all static files, e.g. all links from index.html to another static htmls including from subdirectories. Think, it's enough to run

[google-appengine] Re: How to get root entities only?

2008-12-10 Thread Andy Freeman
The characteristics of entity groups that enable performance optimizations actually enable some fairly interesting operations. Unfortunately, these operations are not exposed in some cases. In this case, ancestor('__key__') should be trivial to support and not slow things down. I don't think

[google-appengine] Re: Task Queues and Asynchronous Processing TODAY

2008-12-10 Thread Ben Nevile
Hi Dennis - I am using an architecture similar to what you describe. Rather than use a separate server to do the pinging, I use client-side JS to do this dirty work. You need to have a fairly steady stream of users for this technique to be reliable. :) Ben On Dec 9, 9:27 pm, Dennis [EMAIL

[google-appengine] Re: Superclass.get_by_key_name(subclass_instance.key_name) doesn't work

2008-12-10 Thread Andy Freeman
While GAE application code may use subclasses, the GAE datastore does not have any knowledge of the relationship between different entity types. You can encode the class name/kind in your key name and then use db.class_for_kind to get the class. However, db.class_for_kind is not part of the

[google-appengine] Re: Creating unique key names

2008-12-10 Thread Andy Freeman
A local count can be unique across URL requests that happen to hit the same process, but it can't be unique across processes. In that, a local count is like time. A datastore counter eliminates the dangling object problem because a single counter can be used to manage an arbitrarily large

[google-appengine] Re: Login:admin will cause SystemError on SDK-1.1.7

2008-12-10 Thread amag...@googlemail.com
Good Grief ! I had the very same problem. It was simply a typo in my app.yaml file - or actually my python program was named incorrectly. Regards Axel Magard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[google-appengine] How to delete my app

2008-12-10 Thread Bob
New to here, and cannot find it in HELP... How to delete a created app. Thanks --~--~-~--~~~---~--~~ 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] Error code 29 in quota exceeded

2008-12-10 Thread app²
Sometimes I get a warning to quota exceeded, with this error code. However, all quotas shown in the Dashboard are fine. Does someone know what it means? ~Thiago --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[google-appengine] Re: Error code 29 in quota exceeded

2008-12-10 Thread Marzia Niccolai
Hi, This means you are requesting too frequently indexes to be built/deleted. Reducing the frequency of these requests will eliminate the error message. We are definitely working on giving more insight in to system quotas and what they mean. -Marzia On Wed, Dec 10, 2008 at 8:26 AM, app² [EMAIL

[google-appengine] Re: Deploying to multiple Google Apps domains

2008-12-10 Thread Marzia Niccolai
Hi, A Google App Engine app can be deployed on multiple domains. The only restriction is that if you restrict authentication to a particular Google Apps domain, you can only serve traffic on that domain (meaning currently, if you want only mydomain.com users to be able to log in to your app, the

[google-appengine] Re: Average CPU Warnings

2008-12-10 Thread Jon Watte
There could be all kinds of things that cause random long periods of delay, depending on how the framework actually measures the time. For example: 1) Virtualization scheduling -- if they use something like Xen, it may at times pre-empt your entire kernel image and take time out. 2) Garbage

[google-appengine] Re: dynamic plotting matplotlib

2008-12-10 Thread gratefulfrog
Alas, the google charts api looks too poor for my application. I need to put both lines and bars on a single chart with 2 Y axes, and different labels for the positive and negative side of each of the y- axes. I also need to be able to click on the chart elements to link to other the detailed

[google-appengine] Re: Isolated Application Deployment Instances

2008-12-10 Thread James Ashley
Maybe I'm missing something. But it doesn't seem like it would take much effort to write a script to automate it. Something along the lines of: instance_names = ('a', 'b', 'c',...) for name in instance_names: # change the instance name in app.yaml # call appcfg.py You'd probably want to

[google-appengine] Re: Searching shortish strings for auto-completion

2008-12-10 Thread Adam
I'd use javascript. Scriptaculous Autocompleter.Local Push the entire list of previously typed strings to the client on page refresh. (Or keep the last N if the list gets too big). With appropriate flags the javascript will take care of mid-word matching etc. If you try to do this kind of

[google-appengine] Re: dynamic plotting matplotlib

2008-12-10 Thread gratefulfrog
Hi! Thanks for the suggestion, but I'm sorry to say that I don't understand how to make it work with the app-engine? Could you tell me how to get the hellow world example to work? what do you put in the app.yaml and in the page template to get it to display on the SDK server? Thanks, GF. On Dec

[google-appengine] Re: UnboundLocalError: local variable 'before_path' referenced before assignment

2008-12-10 Thread Marce (Google)
Hi, I've had no luck replicating this on my machine (Mac OS 10.5) with the current 1.1.7 SDK, so this may be system or SDK related. For what it's worth, this is the code i'm using (I just chose a random non- english character in this case): class MainHandler(webapp.RequestHandler): def

[google-appengine] Re: Searching shortish strings for auto-completion

2008-12-10 Thread Taylor Hughes
Thanks Adam. While the dataset in this case is pretty small (I can't imagine a user adding *that* many different things to this field), I don't want to have an arbitrary and potentially confounding cutoff when matching. Further, if it's all done in JS, I'll have to (a) load and dump out a bunch

[google-appengine] Re: Isolated Application Deployment Instances

2008-12-10 Thread rvjcallanan
Thanks James, I may have gotten the wrong end of the stick here. I've been playing around with the SDK up to now but have not actually deployed yet. Are you basically saying that I can... 1. Allow 1000s of Google Apps account holders to easily deploy *isolated instances* of my app: 2. Protect

[google-appengine] Re: Isolated Application Deployment Instances

2008-12-10 Thread Roberto Saccon
AFAIK, the answer is yes only to some of your points listed below: On Dec 10, 4:38 pm, rvjcallanan [EMAIL PROTECTED] wrote: Thanks James, I may have gotten the wrong end of the stick here. I've been playing around with the SDK up to now but have not actually deployed yet. Are you

[google-appengine] Re: Superclass.get_by_key_name(subclass_instance.key_name) doesn't work

2008-12-10 Thread theillustratedlife
Thanks Andy. It's nice to know all the hidden features. =) If the datastore doesn't know about subclasses, I'm not sure they're worth using. Couldn't I give Question all the properties I might need, but only provide values to the ones each instance uses? Is there any sort of penalty for

[google-appengine] Re: Trouble with Multiple StringListProperty() + Django Templates

2008-12-10 Thread Tiago S.
Hi, I´m planning to do something very similar, but I´m not sure if the datastore will return both lists in the same order at every request. Does anyone knows what is the expected behavior? I don´t mean to hijack your thread, Dylan, as I thought this would be a nice thread to ask, because my

[google-appengine] just looking to start a simple iGoogle page...

2008-12-10 Thread leifer
I'm by no means a coder or anything. I have relatively basic HTML and networking skills, and understnd the majority of the terminology here...I'm just looking to make a simple and easily editable page. I've got the project set up on Google Code, but I do not understand how to upload an XML file

[google-appengine] Re: Trouble with Multiple StringListProperty() + Django Templates

2008-12-10 Thread Tiago S.
Hi, I´m planning to do something very similar, but I´m not sure if the datastore will return both lists in the same order at every request. Does anyone knows what is the expected behavior? I don´t mean to hijack your thread, Dylan, as I thought this would be a nice thread to ask, because my

[google-appengine] Re: Isolated Application Deployment Instances

2008-12-10 Thread Marzia Niccolai
Hi, The scenario that you've described isn't yet perfectly achievable. I think what you are essentially looking for is something along the lines of Google Apps Labs for developers: http://www.google.com/enterprise/marketplace/viewVendorListings?vendorId=1012 This is definitely something we

[google-appengine] Re: Isolated Application Deployment Instances

2008-12-10 Thread rvjcallanan
Thanks Roberto, You have almost made my day :) Can you clarify to what extent I can isolate app instances for each of my customers? For example... Is it feasible to maintain separate table sets for 1000s of customer? Is it possible for one misbehaving customer instance to adversely affect

[google-appengine] Re: Superclass.get_by_key_name(subclass_instance.key_name) doesn't work

2008-12-10 Thread Andy Freeman
If the datastore doesn't know about subclasses, I'm not sure they're worth using. I find that they help me with my code, but YMMV. (In particular, I often define db.ReferenceProperty s that only accept a base class and always fill them in with in instance of some subclass. That's better for

[google-appengine] Re: How to delete my app

2008-12-10 Thread David Symonds
On Thu, Dec 11, 2008 at 12:47 AM, Bob [EMAIL PROTECTED] wrote: New to here, and cannot find it in HELP... How to delete a created app. Thanks You can't delete an application ID. The most you can do (at present) is disable it by uploading a blank app. Dave.

[google-appengine] Re: Superclass.get_by_key_name(subclass_instance.key_name) doesn't work

2008-12-10 Thread theillustratedlife
Thanks Andy. For now, I think I'm going to roll all the subclasses into the superclass. I only have 4 subclasses anyway, and they each only have an additional property or two. That seems to me to be the cleanest solution. You've been very helpful/informative. Good man.

[google-appengine] Re: YAPT - Yet Another Paging Topic

2008-12-10 Thread Michael Hart
The primary purpose is a user may want to go back several pages just to see what's there. This is what I figured - so then, instead of selecting 11 stories at a time, select say, 51 stories, adjust the offset accordingly, and the user can navigate to the next/prev 3 pages. Or up it to

[google-appengine] Re: Isolated Application Deployment Instances

2008-12-10 Thread rvjcallanan
Thanks Marzia, For now I could live with manual deployment to each Google App account if I thought deployment could be automated in the future. However, the possibility you raised of Google changing its policy to allow retrieval of hosted application code is disturbing. If Google was indeed to

[google-appengine] Re: Superclass.get_by_key_name(subclass_instance.key_name) doesn't work

2008-12-10 Thread yejun
On Dec 10, 3:38 pm, theillustratedlife [EMAIL PROTECTED] wrote: Thanks Andy.  It's nice to know all the hidden features.  =) If the datastore doesn't know about subclasses, I'm not sure they're worth using.  Couldn't I give Question all the properties I might need, but only provide values to

[google-appengine] Re: How to delete my app

2008-12-10 Thread Alexander Kojevnikov
New to here, and cannot find it in HELP... How to delete a created app. Thanks You can't delete an application ID. The most you can do (at present) is disable it by uploading a blank app. Also, star this issue: http://code.google.com/p/googleappengine/issues/detail?id=335

[google-appengine] Re: Isolated Application Deployment Instances

2008-12-10 Thread Greg
Your day is currently made. Your customers sets up a google apps or gae account, and then add you as a developer. They own the account - billing, data, management is all their responsibility, and it is as well insulated from other customers of yours as from any other random GAE user. As a

[google-appengine] Re: dynamic plotting matplotlib

2008-12-10 Thread djidjadji
I think that Tutorial 4 is good to do for GAE. http://teethgrinder.co.uk/open-flash-chart-2/tutorial-4.php The HTML part is generated with a template. Just like a normal request result. When the page is rendered by the browser it will request a JSON file that describes the graph to draw. In the

[google-appengine] Re: url.fetch DNS cache (IP server changes)

2008-12-10 Thread Marzia Niccolai
Hi, Our engineering team looked at it, and it seems that this is now resolved (again). Thanks for your patience. -Marzia On Wed, Dec 10, 2008 at 12:24 AM, Sylvain [EMAIL PROTECTED] wrote: Hi, Since yesterday, the error is back. from google.appengine.api import urlfetch resp =

[google-appengine] ImportError: No module named feedparser

2008-12-10 Thread L
Hi, i use the latest sdk and (i install feedparse in my computer and i can import in the python shell) but meet the error in subject! when i use dev_appserver.py --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[google-appengine] application error

2008-12-10 Thread amshuhu
Hello Developers, I upload the code of mail sending, its working for my application ,if i moved the same code to another gmail id its not working ,i change the application title and generate the new .yaml file,html pages are visible and send mail is on problem ,it says