[google-appengine] transfer app engine apps from google apps account to google account
My app engine apps are currently part of my google apps account. I don't want to pay for my google apps domain name again next year. So is it possible to transfer my apps from my apps account to a google account? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: SEO
yep, i know about webmasters ,but i want to put my application in app gallery which showing in http://code.google.com/appengine/ for that what step i want to do? On Thu, Dec 11, 2008 at 10:36 PM, Marzia Niccolai wrote: > Hi, > > The index.yaml file specifies indexes for an application's datastore, and > is in no way related to the Google Search web crawler. > > For all information Google Search and indexing, please see Google Webmaster > Central: > http://www.google.com/webmasters/ > > -Marzia > > > On Wed, Dec 10, 2008 at 11:35 PM, amshuhu wrote: > >> >> Hello developers, >> I develope a app in GAE(asterixmobile.in), its a static >> app i won't have clear idea abt indexing but i upload the index.yaml >> which automatically generated by GAE when i run in local host ,by >> using the command appcfg.py update_indexes it ask user >> id and pass ,but it didn't show the file whether its right? or i want >> to add any other details in index.yaml >> >> And i want to make my site first if any one search in google ,for >> that i think indexing should be complesary ,if my application index >> google can able to crawl the data so plz guide me >> >> Thanks >> >> jaikumar >> >> > > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: handling classes across multiple .py files
Thank. Works perfect on first try! I moved all class models to models.py and placed "from models import *" into each of the other .py files. On Thu, Dec 11, 2008 at 7:38 PM, djidjadji wrote: > > For point 1) > > Place the model class definitions in 1 or more separate .py files > You can put more then 1 model class in a .py file when you use the > multiple file approach > > eq. models.py # all model classes in one file > > or user.py > forum.py > comment.py > > And use import statements like > > from models import * > > or > > from user import * > from comment import * > > in the model files that need other model definitions and in the .py > files that handle the requests (the ones named in the app.yaml file) > > Some people use > > import models > > and they have to use > > customer = models.User(..) > > instead of > > customer = User(..) > > At Python interpreter level it must have a different result, but I > have no problem using the "from import *" method > > For point 2). I use this method and have not encountered the mentioned error. > > 2008/12/11 Neo42 : >> >> If I am using multiple .py files in my project (each requiring >> different levels of authentication, login: required, login: admin, and >> the other is for anonymous access), how should I handle my datastore >> class definitions? >> >> I have 2 issues: >> >> 1) I am afraid of forgetting to update the class definition in >> file1.py when I update file2.py 's class definition. Is there a way >> to ease my concern? Perhaps using imports? How do I do this? >> >> 2) At least on my local server, when I access the the datastore >> through file1.py, it breaks's file2.py's access to the datastore until >> I stop and start the local server again. If I fix issue 1, will it >> fix issue 2? >> >> Thanks, >> -Neo >> > >> > > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: handling classes across multiple .py files
Hmmm, the message "KindError: Kind 'Board' is not a subclass of kind 'Board' " Makes me think that maybe you are defining two classes named 'Board' in each of your .py files. If this is the case, it's not what you want. I'd agree with djidjadji, it would be good practice to separate your Model classes into their own .py file and reference this module from your other .py files. On Dec 12, 11:38 am, djidjadji wrote: > For point 1) > > Place the model class definitions in 1 or more separate .py files > You can put more then 1 model class in a .py file when you use the > multiple file approach > > eq. models.py # all model classes in one file > > or user.py > forum.py > comment.py > > And use import statements like > > from models import * > > or > > from user import * > from comment import * > > in the model files that need other model definitions and in the .py > files that handle the requests (the ones named in the app.yaml file) > > Some people use > > import models > > and they have to use > > customer = models.User(..) > > instead of > > customer = User(..) > > At Python interpreter level it must have a different result, but I > have no problem using the "from import *" method > > For point 2). I use this method and have not encountered the mentioned error. > > 2008/12/11 Neo42 : > > > > > If I am using multiple .py files in my project (each requiring > > different levels of authentication, login: required, login: admin, and > > the other is for anonymous access), how should I handle my datastore > > class definitions? > > > I have 2 issues: > > > 1) I am afraid of forgetting to update the class definition in > > file1.py when I update file2.py 's class definition. Is there a way > > to ease my concern? Perhaps using imports? How do I do this? > > > 2) At least on my local server, when I access the the datastore > > through file1.py, it breaks's file2.py's access to the datastore until > > I stop and start the local server again. If I fix issue 1, will it > > fix issue 2? > > > Thanks, > > -Neo > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Ability to send SMS via gmail?
True but going through a standard Google API would be much preferable in my mind. Having a quota similar to the email one would be fine in my mind too. On Dec 11, 9:38 pm, Greg wrote: > You can do this already by using the urlfetch API to call an SMS > gateway, like Clickatell. Have to pay of course... > > Cheers! > Greg. > > On Dec 12, 10:30 am, Tom wrote: > > >http://gmailblog.blogspot.com/2008/12/really-new-in-labs-this-time-sm... > > > Any chance this feature can be called from app-engine somehow? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Ability to send SMS via gmail?
You can do this already by using the urlfetch API to call an SMS gateway, like Clickatell. Have to pay of course... Cheers! Greg. On Dec 12, 10:30 am, Tom wrote: > http://gmailblog.blogspot.com/2008/12/really-new-in-labs-this-time-sm... > > Any chance this feature can be called from app-engine somehow? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Problems importing a 3rd party package that is working in Python
I think your problem will be that App Engine doesn't allow python extensions written in c - you need a pure-python implementation. Cheers! Greg. On Dec 12, 1:30 pm, tv wrote: > Hi- > > I am trying to incorporate the python-cjson package into a GAE > project. I have downloaded and installed the python-cjson package and > can use the functionality when I attempt to do so through the python > shell >>>import cjson. (So I know it is there and working) > > However, when I try to do the same thing in my GAE file with "import > cjson" I get an error message that says: > > "C:\GAE\LarryHatesSergei\src\ultimateFighter.py", line 4, in >from cjson import decode ImportError: No module named > cjson --> > > How can I get app engine to recognize this package? > > I know that the SDK comes with three packages installed in the \lib\ > folder. Should I copy-paste it in there? > > This cjson package is an implementation of C code, and after looking > through the folder, I don't see a cjson.py file I could simply copy- > paste into my project. I don't really know enough about python to > understand how the functions in the cjson package become available > except that in my C:\Python25\lib\site-packages\ there is a cjson.pyd > file that is the 'hook' for the code. > > Can I hard-code the path to C:\Python25\lib\site-packages\ > somewhere? > > I run WindowsXP, Python 2.5, GAE 1.1.5, and Mountain Dew. > > Thanks in advance. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: dynamic plotting & matplotlib
> app.yaml Service ALL files static, for the example > - mychartmaker.py Does not exist in a static service example, > - chartpage.html http://teethgrinder.co.uk/open-flash-chart-2/tutorial/chart-3-2.html if needed as a template make the reference to chart-3.php a template field > - data.json http://teethgrinder.co.uk/open-flash-chart-2/tutorial/chart-3.php Also make sure the JS and SWF file are served static. 2008/12/11 gratefulfrog : > > thanks for the pointer but I'm just too ignorant to understand, it > seems. > > Would it be possible to give me a set of files that will work directly > in the app-engine framework? > > By this I mean something like: > - app.yaml > - mychartmaker.py > - chartpage.html > - data.json > > Otherwise, I just can't seem to follow you... > Thanks, > GF. > > On Dec 11, 12:18 am, djidjadji wrote: >> 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 download is a version of >> ofc.py. in the forum for OFC in the section about python I have >> uploaded an extended version that uses django-simple-json. >> >> 2008/12/10 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 3, 10:29 pm, djidjadji wrote: >> >> Or you can have a look if "Open Flash Chart 2" can be used. >> >> It uses a JSON file to format the chart, there is a python file to >> >> help constructing this JSON structure. >> >> >>http://teethgrinder.co.uk/open-flash-chart-2/ >> >> >> 2008/12/3 Jonk : >> >> >> > On 3 joulu, 12:56, gratefulfrog wrote: >> >> >> >> about google charts? Is it possible to create custom charts from that, >> >> >> somehow? My application is really about charting, alas... >> >> >> >http://code.google.com/apis/chart/ >> >> >> >jK > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: handling classes across multiple .py files
For point 1) Place the model class definitions in 1 or more separate .py files You can put more then 1 model class in a .py file when you use the multiple file approach eq. models.py # all model classes in one file or user.py forum.py comment.py And use import statements like from models import * or from user import * from comment import * in the model files that need other model definitions and in the .py files that handle the requests (the ones named in the app.yaml file) Some people use import models and they have to use customer = models.User(..) instead of customer = User(..) At Python interpreter level it must have a different result, but I have no problem using the "from import *" method For point 2). I use this method and have not encountered the mentioned error. 2008/12/11 Neo42 : > > If I am using multiple .py files in my project (each requiring > different levels of authentication, login: required, login: admin, and > the other is for anonymous access), how should I handle my datastore > class definitions? > > I have 2 issues: > > 1) I am afraid of forgetting to update the class definition in > file1.py when I update file2.py 's class definition. Is there a way > to ease my concern? Perhaps using imports? How do I do this? > > 2) At least on my local server, when I access the the datastore > through file1.py, it breaks's file2.py's access to the datastore until > I stop and start the local server again. If I fix issue 1, will it > fix issue 2? > > Thanks, > -Neo > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Problems importing a 3rd party package that is working in Python
Hi- I am trying to incorporate the python-cjson package into a GAE project. I have downloaded and installed the python-cjson package and can use the functionality when I attempt to do so through the python shell >>>import cjson. (So I know it is there and working) However, when I try to do the same thing in my GAE file with "import cjson" I get an error message that says: "C:\GAE\LarryHatesSergei\src\ultimateFighter.py", line 4, infrom cjson import decode ImportError: No module named cjson --> How can I get app engine to recognize this package? I know that the SDK comes with three packages installed in the \lib\ folder. Should I copy-paste it in there? This cjson package is an implementation of C code, and after looking through the folder, I don't see a cjson.py file I could simply copy- paste into my project. I don't really know enough about python to understand how the functions in the cjson package become available except that in my C:\Python25\lib\site-packages\ there is a cjson.pyd file that is the 'hook' for the code. Can I hard-code the path to C:\Python25\lib\site-packages\ somewhere? I run WindowsXP, Python 2.5, GAE 1.1.5, and Mountain Dew. Thanks in advance. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Limit Access To Shared Apps
You can upload an empty application as the default version. Then upload the real deal under an obscure version number (example 1234) and use http://1234.latest.myapp.appspot.com to let your friends use the site It won't protect you from somebody who is willing to try out all the versions numbers until he/she finds a hit but if you make the number pretty large and the empty app pretty boring this might not be a problem. 2008/12/11 reyjexter : > > What i'm trying to do at the moment is to limit the access of the app > i'm building to close people. I want them to view the app, use it and > give me comments and ideas. I'm also having somebody to re-deseign the > application so I need them to be able to see my app while at the same > time making it not accessible by other people i do not know. > > On Dec 8, 10:08 pm, djidjadji wrote: >> If your friends are admins of the app and you don't want them to do >> the things you describe why are they admins of the app? >> What are they allowed to do, beside being users of the app? >> >> 2008/12/8 reyjexter : >> >> >> >> > I'm sharing my app with some friends and I want tolimitthe things >> > that they can do. For example I dont want to allow them to change the >> > version that is being published, I dont want them to add/edit/delete >> > members of the group and etc, I dont want them to view the datastore. >> > Is there a way to do this? > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: You have sent too many SMS verification messages?
It's something we need to help with once you've hit the error message in question. Try filling out the SMS issues form: http://appengine.google.com/waitlist/sms_issues Daniel On Dec 11, 7:15 am, Shedokan wrote: > I get this message every time I'm trying sending a message to my > cellphone. > at first I sent a couple of messages and then realized I putted a zero > instead of two, so I corrected my number. > but it tells me I sent too many messages, will this message expire? or > I'll have to ask for your help? > 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Non-returning ajax upload
The SDK is single-threaded, but our production servers aren't, so a request should still process until it either completes or hits a deadline and regardless of how many other processes are running at any given time. Daniel On Dec 10, 8:15 am, gvan wrote: > In part of my app the user uploads a file this is done using ajax; > this file is processed and then uploaded to another website. My > question is: if the user navigates away from the page while appengine > is processing the file will it abort. In other words can appengine run > more than one process from an app or will it abort as soon as a new > request comes in? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: ImportError: No module named feedparser
feedparser isn't currently included as part of the SDK, or within the production environment. You can confirm which third party libraries we do provide under the "lib" directory of your SDK install. Daniel On Dec 10, 5:28 pm, L wrote: > I thought feedparser is in SDK. ^_^ > I have to copy feedparse.py into my folder! > > On Dec 11, 9:16 am, L wrote: > > > Hi, i use the latest sdk and (i install feedparse in my computer and i > > canimportin 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 App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] SLA
I'm planning on deploying appengine application under Google Apps and wanted to know what I can expect on service level? Primarily, uptime, minor outtages are okay, volume will be fairly low with maybe an initial ramp up. Base on what I've seen with sites like Buddy Poke. My thinking is a single form application should be minimal. Any thoughts on this is much appreciated. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Concurrency Control in the datastore
Actually I still have a question. What actually happened, if a new entity created in a transaction. What if 2 concurrent transaction create entity with same key path. On Dec 11, 5:08 pm, ryan wrote: > On Dec 11, 1:18 pm, yejun wrote: > > > Basically, I think during concurrent tractions, the first one commit > > will win, the rest all fail. Non transaction operation will always > > success. Write is always transactioned. > > correct. the python API retries transactions when they collide, > though, and the datastore itself retries writes when they collide, so > your app will generally only see collisions (in the form of > TransactionFailedError exceptions) during periods of very high > contention when all retries fail. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Creating unique key names
hi all! there's lots of good information in this thread on how to generate partially and fully unique ids, along with pros and cons. i'm also curious about the actual use case, though. specifically... On Nov 22, 6:38 pm, Andy Freeman wrote: > > Each db.put has significant overhead. If I can generate a unique name > without a db.put, I can reduce the number of db.puts that my > application does by a factor of 2. ... > It introduces a clean-up problem. I can't delete such an object > until after I delete all entity groups named using said object's key. > (GAE is free to reused generated keys.) > > I shouldn't have mentioned the overhead of puts. The real problem is > cleanup and consistency, a problem that transactions are designed to > solve. i'm curious how a named key buys you anything here beyond what an id- based key gives you. as background, from my perspective, named keys are useful when you have an external identifier and you want to enforce and exploit uniqueness in a namespace that you control. they also let you do a limited form of querying inside transactions, via get() with a key that you construct in memory. we found this useful enough that we added get_by_key_name() as syntactic sugar for it. i suspect most of the use cases for named keys fit into that mold. as you mentioned, they don't generally help with optimization, since for a given use case, named keys will require the same number of put()s as id-based keys. i'm also not sure how they help with cleanup/garbage collection or consistency. queries and transactions don't differentiate between root entities with named keys vs. id-based keys. btw, you probably already know this, but just in case, you can create a new root entity and one or more children of that entity in the same transaction. e.g. def create(): parent = Foo() parent.put() child = Foo(parent=parent) child.put() return parent parent = run_in_transaction(create) i'm still curious, so i'm probably missing something...? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Concurrency Control in the datastore
On Dec 11, 1:18 pm, yejun wrote: > Basically, I think during concurrent tractions, the first one commit > will win, the rest all fail. Non transaction operation will always > success. Write is always transactioned. correct. the python API retries transactions when they collide, though, and the datastore itself retries writes when they collide, so your app will generally only see collisions (in the form of TransactionFailedError exceptions) during periods of very high contention when all retries fail. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Ability to send SMS via gmail?
http://gmailblog.blogspot.com/2008/12/really-new-in-labs-this-time-sms-text.html Any chance this feature can be called from app-engine somehow? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Concurrency Control in the datastore
Basically, I think during concurrent tractions, the first one commit will win, the rest all fail. Non transaction operation will always success. Write is always transactioned. Am I right? On Dec 11, 2:46 pm, DXD wrote: > Wonderful! Great design!!! Thanks Ryan. > > David. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: dynamic plotting & matplotlib
thanks for the pointer but I'm just too ignorant to understand, it seems. Would it be possible to give me a set of files that will work directly in the app-engine framework? By this I mean something like: - app.yaml - mychartmaker.py - chartpage.html - data.json Otherwise, I just can't seem to follow you... Thanks, GF. On Dec 11, 12:18 am, djidjadji wrote: > 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 download is a version of > ofc.py. in the forum for OFC in the section about python I have > uploaded an extended version that uses django-simple-json. > > 2008/12/10 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 3, 10:29 pm, djidjadji wrote: > >> Or you can have a look if "Open Flash Chart 2" can be used. > >> It uses a JSON file to format the chart, there is a python file to > >> help constructing this JSON structure. > > >>http://teethgrinder.co.uk/open-flash-chart-2/ > > >> 2008/12/3 Jonk : > > >> > On 3 joulu, 12:56, gratefulfrog wrote: > > >> >> about google charts? Is it possible to create custom charts from that, > >> >> somehow? My application is really about charting, alas... > > >> >http://code.google.com/apis/chart/ > > >> > jK --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Concurrency Control in the datastore
Wonderful! Great design!!! Thanks Ryan. David. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: handling classes across multiple .py files
The error I get with issue 2 is the following: ERROR2008-12-11 19:29:53,533 __init__.py] Traceback (most recent call last): File "C:\google_appengine\google\appengine\ext\webapp\__init__.py", line 499, in __call__ handler.get(*groups) File "C:\GoogleAppsProjects\SQ1\sqadmin.py", line 341, in get currentBoard = Board.get( db.Key.from_path( 'Board', eval (self.request.get(' boardid')) ) ) File "C:\google_appengine\google\appengine\ext\db\__init__.py", line 759, in g et (instance.kind(), cls.kind())) KindError: Kind 'Board' is not a subclass of kind 'Board' INFO 2008-12-11 19:29:53,558 dev_appserver.py] "GET /BoardDetails? boardid=58 HTTP/1.1" 500 - On Dec 11, 2:41 pm, Neo42 wrote: > If I am using multiple .py files in my project (each requiring > different levels of authentication, login: required, login: admin, and > the other is for anonymous access), how should I handle my datastore > class definitions? > > I have 2 issues: > > 1) I am afraid of forgetting to update the class definition in > file1.py when I update file2.py 's class definition. Is there a way > to ease my concern? Perhaps using imports? How do I do this? > > 2) At least on my local server, when I access the the datastore > through file1.py, it breaks's file2.py's access to the datastore until > I stop and start the local server again. If I fix issue 1, will it > fix issue 2? > > Thanks, > -Neo --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] handling classes across multiple .py files
If I am using multiple .py files in my project (each requiring different levels of authentication, login: required, login: admin, and the other is for anonymous access), how should I handle my datastore class definitions? I have 2 issues: 1) I am afraid of forgetting to update the class definition in file1.py when I update file2.py 's class definition. Is there a way to ease my concern? Perhaps using imports? How do I do this? 2) At least on my local server, when I access the the datastore through file1.py, it breaks's file2.py's access to the datastore until I stop and start the local server again. If I fix issue 1, will it fix issue 2? Thanks, -Neo --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] File permission again
Hello, I have created a directory on my pc for google appengine and underneath a directory for my website files. For some reason, Whenever I try to copy any of my website files to another place, I don't get the updated file, I get an old version of the file before the last updates!! I don't know why? Any clues? did anyone encountered a similar problem before? Thank you very much. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Variable - High/Low CPU usage for the same simple page cache scenario
Thanks Marzia, I've put some logging and seems yes - spikes happens when new instance is starting. I've noticed Django helper installation takes solid amount of time and I guess CPU. See log extract: # 12-11 10:42AM 27.040 - Loading django helper... # 12-11 10:42AM 27.862 - Successfully loaded the Google App Engine Helper for Django. I know GAE was providing Django 0.96. Is it providing Django 1.0 and appengine_django helper now (on server side)? If yes, would it fire up the cold starts if I exclude local version of Django & appengine_django? I have not found any news regarding updates of GAE production from Django 0.96 to release 1.0 I think it would be interesting to many developers. -- Alex http://sharp-developer.net/ On Dec 8, 7:26 pm, Marzia Niccolai wrote: > Hi Alex, > > Does your script load up a lot of modules when it starts? It's possible > that these are the CPU warnings you are seeing. You may be seeing them > inconsistently since this would only happen when a new interpreter for your > script is fired up. The basic process is described > here:http://code.google.com/appengine/docs/python/appcaching.html > > -Marzia > > On Sat, Dec 6, 2008 at 9:30 AM, Sharp-Developer.Net < > > alexander.trakhime...@gmail.com> wrote: > > > Hi, > > > I've enabled complete page content caching and surprisingly see high > > CPU for requests that utilize the memcache with a single call to the > > memcache. > > > As you could see from log & code below there are just single call to > > memcache and a call to users.get_current_user() > > > I have a Django middleware handler as well. But as I understand it > > should work on every request and it's fairly simple - doing > > configuration basing on request parameters - no DB calls. > > > Any thouts on reason of such a big difference in numbers? > > -- > > Alex > >http://sharp-developer.net/ > > > Example from log: > > === > > 1. 12-06 09:11AM 17.294 / 200 1097ms 3725mcycles 27kb > > 86.41.125.175 - - [06/12/2008:09:11:18 -0800] "GET / HTTP/1.1" > > 200 27103 - - > > > 2. D 12-06 09:11AM 18.388 > > Page taken from MEMCACHE by key: page5/ > > > > > what strange is that sometimes I get very good results for the same > > request: > > > > > 1. 12-06 09:22AM 40.639 / 200 15ms 14mcycles 27kb > > 86.41.125.175 - - [06/12/2008:09:22:40 -0800] "GET / HTTP/1.1" > > 200 27103 - - > > > 2. D 12-06 09:22AM 40.650 > > Page taken from MEMCACHE by key: page5/ > > === > > > where code for caching is: > > > > > @cache.memorize_page() > > def index(request): > > # some code here > > return render_to_response('root_index.html', > > payload, > > context_instance=RequestContext > > (request)) > > def memorize_page(name=None, time=60*60*12): > > def memorize_fn(fn): > > def new_fn(*a, **kw): > > request = a[0] > > # We are caching whole page just for GET requests > > if request.method != "GET": > > return fn(*a, **kw) > > prefix = "page5" > > key = "%s%s" % (prefix, request.path) > > user = get_current_user() > > if user: > > key = "u=%s/%s" % (user.key(), key) > > if request.GET.has_key("cache") and request.GET["cache"] > > == "reset": > > memcache.delete(key) > > LOG.debug("Page delete from MEMCACHE by key: %s", key) > > else: > > response_content = memcache.get(key) > > if response_content is not None: > > LOG.debug("Page taken from MEMCACHE by key: %s", > > key) > > return HttpResponse(content=response_content) > > #return res > > > res = fn(*a, **kw) > > memcache.set(key, res.content, time=time) > > LOG.debug("Page stored to MEMCACHE with key: %s" % key) > > return res > > return new_fn > > return memorize_fn > > > > def get_current_user(): > > guser = users.get_current_user() > > if not guser: > > return None > > #my code here for authorized users > > # in cache use case we work with unauthorized request > > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For mor
[google-appengine] Re: Isolated Application Deployment Instances
You've made my day assuming the "accepted wisdom" will prevail...or at least if a backdoor facility is offered by Google, it should offer third-party developers the option of protecting their code from download *and* make it difficult to inadvertently upload code without protection. On Dec 10, 11:16 pm, Greg <[EMAIL PROTECTED]> wrote: > 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 developer you can upload new versions of the app. > > Note the "currently" in my first sentence. At the moment there is no > way to download your code from GAE, so your code cannot be retrieved > by your customers. However, many, many people have railed against this > - they have mangled their local code somehow and want to get the > production code back off GAE. The accepted wisdom is that any > developer who doesn't use version control and backups obviously > doesn't place any value on their code, and so neither should anyone > else. And those of us who do value our code actually prefer the > security of there not being any way to download it from GAE. Your > situation is another argument in favour of leaving the status quo. > > Cheers! > Greg. > > On Dec 11, 10:57 am, rvjcallanan <[EMAIL PROTECTED]> wrote: > > > 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 other customers? > > > Regards, > > rvjcallanan > > > On Dec 10, 8:28 pm, Roberto Saccon <[EMAIL PROTECTED]> wrote: > > > > 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 basically saying that I can... > > > > > 1. Allow 1000s of Google Apps account holders to easily deploy > > > > *isolated instances* of my app: > > > > Well, they are not isolated, you have to write your code to isolated > > > them (based on detecting the custom domain) > > > > > 2. Protect my app code from inspection by said Google Apps account > > > > holders. > > > > Yes. > > > > > 3. Assign responsibility for hosting cost of app instances to said > > > > Google Apps account holders (when the service is eventually monetised) > > > > again, you have to track traffic for each deployed app (based on > > > detecting the custom domain) and do your own billing, unless Google > > > will roll out a billings service based on deployed app domains (that > > > of course would be great) and not just on consumption per developer > > > account. > > > > > 4. Roll-out software updates automatically to each Google Apps account > > > > holder who uses my app. > > > > Yes > > > > > If the answer is "YES" to each of the above, then you will have made > > > > my day!! > > > > regards > > > Roberto > > > > > On Dec 10, 6:28 pm, James Ashley <[EMAIL PROTECTED]> wrote: > > > > > > 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 keep the instance names in a database, to > > > > > associate with billing, etc, but that could be something for later > > > > > down the road. > > > > > > On Dec 10, 5:25 am, rvjcallanan <[EMAIL PROTECTED]> wrote: > > > > > > > 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 each customer as a separate isolated instance, integrated within > > > > > > his managed Google Apps business account. > > > > > > > The main reasons for this preference are: > > > > > > > 1. I would like to keep customer data and bugs isolated > > > > > > > 2. Each customer is an island as far as the application data model > > > > > > is > > > > > > concerned. One big database would require all tables and queries to > > > > > > be > > > > > > qualified by a customer ID, adding an unnecessary layer of > > > > > > complexity > > > > > > and impacting performance. > > > >
[google-appengine] Re: how do you delete versions from dashboard? When i go to versions page I only have 1 default version showing
Hi, If you reply to me with your app id I can look in to it. -Marzia On Thu, Dec 11, 2008 at 9:19 AM, Jillian <[EMAIL PROTECTED]> wrote: > > I don't get it. it also tells me that my application has exceeded > quota even though all of my bars are white: > CPU Used > 0% > 0.00 of 199608.00 Gigacycles (0%) > Data Sent > 0% > 0.00 of 2048.00 Megabytes (0%) > Data Received > 0% > 0.00 of 2048.00 Megabytes (0%) > Emails Sent > 0% > 0.00 of 2000.00 Emails (0%) > Megabytes Stored > 0% > 0.09 of 500.00 Megabytes (0%) > Data Sent (HTTPS) > 0% > 0.00 of 2048.00 Megabytes (0%) > Data Received (HTTPS) > 0% > 0.00 of 2048.00 Megabytes (0%) > > > On Dec 11, 1:15 pm, Jillian <[EMAIL PROTECTED]> wrote: > > Cloning 16 static files. > > Cloning 49 application files. > > Closing update. > > 2008-07-12 12:10:51,016 ERROR appcfg.py:1334 An unexpected error > > occurred. Abort > > ing. > > Rolling back the update. > > Error 500: --- begin server output --- > > > > Server Error (500) > > A server error has occurred. > > --- end server output --- > > > > I've obviously maxed out my versions, but I can't figure out how to > > delete the previous versions. HELP! > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: how do you delete versions from dashboard? When i go to versions page I only have 1 default version showing
I don't get it. it also tells me that my application has exceeded quota even though all of my bars are white: CPU Used 0% 0.00 of 199608.00 Gigacycles (0%) Data Sent 0% 0.00 of 2048.00 Megabytes (0%) Data Received 0% 0.00 of 2048.00 Megabytes (0%) Emails Sent 0% 0.00 of 2000.00 Emails (0%) Megabytes Stored 0% 0.09 of 500.00 Megabytes (0%) Data Sent (HTTPS) 0% 0.00 of 2048.00 Megabytes (0%) Data Received (HTTPS) 0% 0.00 of 2048.00 Megabytes (0%) On Dec 11, 1:15 pm, Jillian <[EMAIL PROTECTED]> wrote: > Cloning 16 static files. > Cloning 49 application files. > Closing update. > 2008-07-12 12:10:51,016 ERROR appcfg.py:1334 An unexpected error > occurred. Abort > ing. > Rolling back the update. > Error 500: --- begin server output --- > > Server Error (500) > A server error has occurred. > --- end server output --- > > I've obviously maxed out my versions, but I can't figure out how to > delete the previous versions. HELP! --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] how do you delete versions from dashboard? When i go to versions page I only have 1 default version showing
Cloning 16 static files. Cloning 49 application files. Closing update. 2008-07-12 12:10:51,016 ERROR appcfg.py:1334 An unexpected error occurred. Abort ing. Rolling back the update. Error 500: --- begin server output --- Server Error (500) A server error has occurred. --- end server output --- I've obviously maxed out my versions, but I can't figure out how to delete the previous versions. HELP! --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: SEO
Hi, The index.yaml file specifies indexes for an application's datastore, and is in no way related to the Google Search web crawler. For all information Google Search and indexing, please see Google Webmaster Central: http://www.google.com/webmasters/ -Marzia On Wed, Dec 10, 2008 at 11:35 PM, amshuhu <[EMAIL PROTECTED]> wrote: > > Hello developers, > I develope a app in GAE(asterixmobile.in), its a static > app i won't have clear idea abt indexing but i upload the index.yaml > which automatically generated by GAE when i run in local host ,by > using the command appcfg.py update_indexes it ask user > id and pass ,but it didn't show the file whether its right? or i want > to add any other details in index.yaml > > And i want to make my site first if any one search in google ,for > that i think indexing should be complesary ,if my application index > google can able to crawl the data so plz guide me > > Thanks > > jaikumar > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Limit Access To Shared Apps
Hi, Currently, Google App Engine only offers built in support for required login and admin only login, no finer grained access controls are offered. Login required states that in order to view a page, the user must be logged in to a valid Google Account or Google Apps account, depending on your chosen authentication scheme. Admin only login means that only administrators of the application (those listed under the 'developers' section of the Admin Console) can log in. If you would like a more fine grained access control system, you would need to implement one yourself. -Marzia On Thu, Dec 11, 2008 at 5:30 AM, reyjexter <[EMAIL PROTECTED]> wrote: > > What i'm trying to do at the moment is to limit the access of the app > i'm building to close people. I want them to view the app, use it and > give me comments and ideas. I'm also having somebody to re-deseign the > application so I need them to be able to see my app while at the same > time making it not accessible by other people i do not know. > > On Dec 8, 10:08 pm, djidjadji <[EMAIL PROTECTED]> wrote: > > If your friends are admins of the app and you don't want them to do > > the things you describe why are they admins of the app? > > What are they allowed to do, beside being users of the app? > > > > 2008/12/8 reyjexter <[EMAIL PROTECTED]>: > > > > > > > > > I'm sharing my app with some friends and I want tolimitthe things > > > that they can do. For example I dont want to allow them to change the > > > version that is being published, I dont want them to add/edit/delete > > > members of the group and etc, I dont want them to view the datastore. > > > Is there a way to do this? > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: url.fetch DNS cache (IP server changes)
Hi, The engineering team has looked in to this, and it should now be functioning as normal. -Marzia On Wed, Dec 10, 2008 at 5:27 PM, julian.amaya <[EMAIL PROTECTED]>wrote: > > Hi, > > my app (tigrillotigrillotigrillo) is having this issue with last.fm > submission url : > > http://post.audioscrobbler.com/ > > What can I do?? > > > Thanx > > > Julian > On 10 dic, 19:55, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > > 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 = 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 again > > > > > Regards > > > > > Sylvain > > > > > On 8 déc, 10:38, Sylvain <[EMAIL PROTECTED]> wrote: > > > > Hi Jeff, > > > > > > Thank you for your help. > > > > I've checked my site saturday morning (UTC) and it was working again. > > > > > > Good news ;) > > > > > > Regards > > > > > > Sylvain > > > > > > On 6 déc, 02:26, Jeff S <[EMAIL PROTECTED]> wrote: > > > > > > > Hi again Sylvain, > > > > > > > We've fixed the cache issue, urlfetch should now get from the > correct > > > > > server (though mirrorrr will still show the incorrect content at > the > > > > > moment because we didn't reset it's page cache). I verified on > > > > > shell.appspot.com. > > > > > > > from google.appengine.api import urlfetch > > > > > resp = urlfetch.fetch('http://www.hordes.fr/') > > > > > resp.content > > > > > > > Thank you, > > > > > > > Jeff > > > > > > > On Dec 5, 11:51 am, Jeff S <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi Sylvain, > > > > > > > > Thank you for reporting this. We have been looking into this > issue. > > > > > > Would it be possible to replace the hostname with the new IP > address > > > > > > until this is resolved to avoid the DNS lookup? > > > > > > > > Cheers, > > > > > > > > Jeff > > > > > > > > On Dec 4, 7:06 am, Sylvain <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > > > > > > > My application fetches this url :http://www.hordes.fr > > > > > > > > > But monday, the IP for this server (www.hordes.fr) has changed > > > (they > > > > > > > moved), but currently I always fetch the bad URL/bad server. > > > > > > > > > I've tested with different applications in appspot and it is > the > > > same > > > > > > > error : > > > > > > > > > Here what appspot see :http://www.mirrorrr.com/www.hordes.fr > > > > > > > Here what it should be :http://www.hordes.fr > > > > > > > > > So now, my app does not work anymore. > > > > > > > > > Could you check/reset,... your DNS ? > > > > > > > > > Thank you. > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] You have sent too many SMS verification messages?
I get this message every time I'm trying sending a message to my cellphone. at first I sent a couple of messages and then realized I putted a zero instead of two, so I corrected my number. but it tells me I sent too many messages, will this message expire? or I'll have to ask for your help? 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Task Queues and Asynchronous Processing TODAY
Yup. We do exactly what Ben describes. On Dec 10, 9:26 am, Ben Nevile <[EMAIL PROTECTED]> wrote: > 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 PROTECTED]> wrote: > > > I'm architecting my system to workaround the limited write ability in > > each gae request. > > > I'd like to use task queues (as in issue > > 109http://code.google.com/p/googleappengine/issues/detail?id=109), > > but that feature is not implemented yet. > > > I'm thinking about using the following: > > -the initial GAE request accepts the user's request and queues the > > task into Amazon Simple Queue Service (Amazon SQS) using a call to an > > external url. > > -a hosted system (external to GAE) polls the SQS queues. > > -when the hosted system finds a task, it makes API calls into GAE to > > do the actual asynchronous work inside GAE and it's datastore. > > > Just wondering if anyone else has used this type of architecture (or > > thought about it) and what their experience / opinion is. > > > The only post I could find about using Amazon's queues > > is:http://groups.google.com/group/google-appengine/msg/86368530077bc548 --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Superclass.get_by_key_name(subclass_instance.key_name) doesn't work
> Any indexable property will cost a couple million cpu cycle when you > put a new entity. You should set them to text or blob to avoid index > penalty. I thought that he was asking about properties that are present in some instances and not others. If a given instance doesn't have a given property, it isn't indexed by that property and one would hope that there'd be no overhead when said instance is put. However, that statement raises another question. If each indexable property (that is present in a given instance) really costs a couple of million cycles, won't putting entities with a couple of hundred indexable properties fail consistently because of cpu issues? I ask because I'm thinking about using some indexable list properties which will require several hundred index entries for their entities. (I can keep the total below the 5k limit.) If putting such entities consistently fails, I'm going to have to rethink things, indexable list properties are far less useful than I thought, and the 5k limit isn't the real limit. On Dec 10, 2:50 pm, yejun <[EMAIL PROTECTED]> wrote: > 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 the ones each instance uses? Is > > there any sort of penalty for declaring properties in a model, but not > > using them? > > Any indexable property will cost a couple million cpu cycle when you > put a new entity. You should set them to text or blob to avoid index > penalty. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Limit Access To Shared Apps
What i'm trying to do at the moment is to limit the access of the app i'm building to close people. I want them to view the app, use it and give me comments and ideas. I'm also having somebody to re-deseign the application so I need them to be able to see my app while at the same time making it not accessible by other people i do not know. On Dec 8, 10:08 pm, djidjadji <[EMAIL PROTECTED]> wrote: > If your friends are admins of the app and you don't want them to do > the things you describe why are they admins of the app? > What are they allowed to do, beside being users of the app? > > 2008/12/8 reyjexter <[EMAIL PROTECTED]>: > > > > > I'm sharing my app with some friends and I want tolimitthe things > > that they can do. For example I dont want to allow them to change the > > version that is being published, I dont want them to add/edit/delete > > members of the group and etc, I dont want them to view the datastore. > > Is there a way to do this? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Superclass.get_by_key_name(subclass_instance.key_name) doesn't work
Have you thought of using Expando Models http://code.google.com/appengine/docs/datastore/entitiesandmodels.html#Expando_Models Put the properties all objects need as db.xxProperty's and the extra fields for the subclasses as expando properties. Add 1 property to the 'base-class' to determine what type of subclass it is, to determine which extra properties the object has, or you might try the obj.getattr() method. 2008/12/10 yejun <[EMAIL PROTECTED]>: > > Any indexable property will cost a couple million cpu cycle when you > put a new entity. You should set them to text or blob to avoid index > penalty. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: YAPT - Yet Another Paging Topic
The easiest option I can suggest is to use memcache to store the 'bookmarks' for the beginning of each page. If the user wants the 5th page, for example, you can look in memcache for the '5th page' bookmark (which is a tuple (score, key) for the first entity that should appear on the page, or the last entity that shouldn't. If your score is unique, you can skip the key component). If you don't find the bookmark, page back until you find one and generate results from there, storing the changed details. Then, whenever you modify something that will affect the sorting order, you can either invalidate all the bookmarks, or figure out which ones it will affect and delete or update those. As far as generating unique scores, I would advise _against_ converting to a float. With a timestamp, you can easily create a monotonic counter by incrementing it until it's unique, but with a float, there's no way to reliably know what the minimum amount you can increment by is. On Dec 10, 2:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > The primary reason I'd like the specific page number capability is for > the format I'm going with, it's something users expect to see. Though, > currently it looks like this is not going to be a possibility. The > primary purpose is a user may want to go back several pages just to > see what's there. > > I did see the other thread, that's what I've been working off of for > my solution. Currently I'm switching my scores from integers to floats > in order to make sure I can easily make each one unique. Scores are > actually timestamps (in unix seconds) so by switching to a float I can > add .001 to create unique instances. > > Using the caching library from gaeutilities, I plan to get the > previous links working correctly also. The design is > > Request for list of stories with an option start index is made. > Check cache for a list with that start index, return if it exists. > Otherwise > Fetch 11 stories using the index as a starting point. > Popular a dictionary with something like > {'next': results[-1].score, > 'prev': results[0].score > 'stories': results 0-9 } > Cache and return it. > > End result is the cache keeps the previous and next indexes making it > so you can page forward and backwards. > > If a story is added, or the order changes, delete all the cache > entries. > > On Dec 10, 2:06 am, Michael Hart <[EMAIL PROTECTED]> wrote: > > > Out of interest, why is it a requirement that you can page to any > > arbitrary page? How would a user know that they want to go to page 5 > > specifically? > > > How about just letting them go to a page in the next/prev n pages, > > where n is, say, 3 - as well as the last and first pages. > > > More on this here (although you've probably seen it): > > >http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > On 10/12/2008, at 6:26 AM, [EMAIL PROTECTED] wrote: > > > > I tried a sledgehammer approach to a paging issue I'm having (fetch > > > (1000) page within it) and as expected, it's too heavy of an approach > > > and I'm getting datastore timeouts. So, before I dive too deeply into > > > approaching the situation I have, I thought I'd see if anyone else has > > > run into this and came up with a solution they'd like to share. > > > > The requirements I have are: > > > - Must be able to page through entities based on a numerical score > > > field that is not consecutive, though can be made unique if I convert > > > it to a float. > > > - Previous, Next, and ?page=# (ie: ?page=5) must all be handled. > > > > The situation is that I'm working on a site that's similar to Digg in > > > functionality. Stories are given a score by which they are ordered for > > > presentation. This score can change through user interaction. > > > > Now, I have already ready and figured out a solution for next/previous > > > > results = fetch(11) > > > ?nextstart=results[10].score&prevstart=results[0].score > > > > This doesn't give me the ability to link to specific pages. As scores > > > are changing and new entities can be created a rapid rate (bursts once > > > an hour of 50+ entities) trying to index and keep track on submission/ > > > score change would also lead to datastore timeouts. > > > > Anyone have any ideas? I'm beginning to think I just can not meet the > > > page number requirement using BigTable. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: just looking to start a simple iGoogle page...
Who/What is generating this XML file? You can perform a POST request that has one of the parameter values the XML file you want. I think it is similar to uploading images and you can find an example in http://simpleviewer4gae.appspot.com/ It has the source code 2008/12/10 leifer <[EMAIL PROTECTED]>: > > 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 to get it "hosted" or anything like that. > The resources provided are great, but I don't really feel that they're > written for a complete novice, albeit easy to understand. > > Is there a basic step-by-step tutorial out there? I'm not looking to > build and gadgets for the time being, just a simple page. > > Thanks for any help anyone can provide. > > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Trouble with Multiple StringListProperty() + Django Templates
A StringListProperty will always return a list with the items in the order they are appended to the list-property. Otherwise they would have called it StringSetProperty I think. 2008/12/10 Tiago S. <[EMAIL PROTECTED]>: > > 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 question might be useful for you as > well. > > Thanks, > > On Dec 10, 4:38 am, Dylan Lorimer <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Perhaps this is more of a design issue than anything, but here's the >> dilemma I'm up against: >> >> I have a model class that has 2 GAE StringList properties,'images' and >> 'snippets'. 'images' contains a list of URLs pointing to images, and >> snippets has corresponding image descriptions. >> >> For clarity's sake, snippets[0] goes with images[0]. >> >> I can't for the life of me figure out how to iterate through both >> images and snippets in a Django template to output the image URL + >> associated snippet. >> >> Any ideas? I'd be up for a better way to store both image URLs + >> snippets if that made the most sense, but I don't see a better way. >> Ideally I could store a dictionary but the GAE doesn't support >> dictionaries as database types, right? >> >> Your help is kindly appreciated. > > > > --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: application error
Hi, Only the current logged in user or the registered Admin users can send mail from GAE. On Dec 11, 9:25 am, amshuhu <[EMAIL PROTECTED]> wrote: > 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 errors as > > Traceback (most recent call last): > File "/base/python_lib/versions/1/google/appengine/ext/webapp/ > __init__.py", line 501, in __call__ > handler.post(*groups) > File "/base/data/home/apps/jai20/1.329883414291921018/main.py", line > 36, in post > mail.send_mail(user_email,sender_address,subject,body) > File "/base/python_lib/versions/1/google/appengine/api/mail.py", > line 205, in send_mail > message.send(make_sync_call) > File "/base/python_lib/versions/1/google/appengine/api/mail.py", > line 477, in send > raise ERROR_MAP[e.application_error](e.error_detail) > InvalidSenderError > > could any one help me to solve this problem > > Thanks in advance > jaikumar.cn --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: 3 feature requests
The form preview framework works with gae and the django request handler. Validation rules like serverside reg ex defining allowed phonenumber etc. and related layout details e.g. a red box around any form parameter not passing validation are related details to which I look for a lean solution. The advantage of customizing instead of the framework is more control over details and the disadvantage is that there's no autogeneration of markup as with the framework. RSS and sitemap generator are interesting to adapt to work with the default request handler as well. Thank you for the support. Niklas On 4 Dec, 01:42, Dan Sanderson <[EMAIL PROTECTED]> wrote: > I haven't used them myself, but at first glance I don't see why they > wouldn't work, assuming you're using Django for your request handling. Give > 'em a try. > Django features that don't work out of the box on App Engine tend to be > those that use Django's ORM layer, which doesn't work with the App Engine > datastore. One notable example is the admin app. > > -- Dan > > On Wed, Dec 3, 2008 at 4:00 PM, niklasr <[EMAIL PROTECTED]> wrote: > > > There are 3 features from django that are interesting > > > RSS syndication > >http://docs.djangoproject.com/en/dev/ref/contrib/syndication/?from=ol... > > Form preview framework > > >http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-previ... > > Sitemap generator > >http://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/?from=olddocs > > > Django has these features, can we apply them to our gae projects? > > > Niklas --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Average CPU Warnings
> There could be all kinds of things that cause random long periods of > delay, depending on how the framework actually measures the time. Absolutely, and as I mentioned above, I think it is likely that it is something like this, rather than imports. But my point still stands, that the app should not be punished for any of these issues. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---