[google-appengine] Re: Getting the latest version of my application
Hi Alex, consider to use a version control system for that purpose. App Engine serves your application, not your code :) This question has been discussed several times on this list, try searching this list for different approaches (http://groups.google.com/group/google-appengine/search?group=google-appengineq=download+codeqt_g=Search+this+group). Regards, Andi On Sat, Aug 8, 2009 at 12:17 AM, Alexmetalo...@gmail.com wrote: Hi, I uploaded my application and always worked from the same computer. Now I want to work from another place, how can I get the code of my application? I failed finding it in the documentation. Thank you for your time, Alex. --~--~-~--~~~---~--~~ 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: App Engine serving all pages as html -
I am not sure that your sitemap use the correct format. use a tool like this : http://www.xml-sitemaps.com/ or build yourself using the specification here http://en.wikipedia.org/wiki/Google_Sitemaps On Aug 8, 5:56 pm, John_Idol giovanni.id...@gmail.com wrote: I have a very simple txt sitemap (named sitemap.txt) that looks like this: http://myDomain.comhttp://myDomain.com/about.htmlhttp://myDomain.com/faq.htmlhttp://myDomain.com/careers.html When I load it up on webmaster tools I get: Sitemap is HTML - Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead I tried a few alternatives (such as with or without www) but no luck. I tried also with an xml sitemap and getting the same error so it looks like the server is serving everything as text/html instead of text/plain.. Now the question is ... how do I get the appspot server to server text as plain? Anyone any clue? Any help appreciated! P.S. if I am not posting in the appropriate group please tell me which one should I post to --~--~-~--~~~---~--~~ 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] Memcache inrc()/decr() need expiration time parameter
In the Python SDK version 1.2.4, Memcache incr() and decr() functions can set an initial value for a counter if the key does not exist. But I only find out the initial_value parameter. When I try this enhancement, the cached value seems never expire. For the transaction reason, I don't want to use replace() to set its expiration time, so can Google add expiration time parameter for inrc ()/decr(), or offer a new function to set expiration time? --~--~-~--~~~---~--~~ 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: App Engine serving all pages as html -
Hi John, If the mime-type being served is incorrect, you need to specify it manually - see the docs on static handlers for Python: http://code.google.com/appengine/docs/python/config/appconfig.html#Static_File_Handlers and Java: http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files -Nick Johnson On Sat, Aug 8, 2009 at 4:56 PM, John_Idolgiovanni.id...@gmail.com wrote: I have a very simple txt sitemap (named sitemap.txt) that looks like this: http://myDomain.com http://myDomain.com/about.html http://myDomain.com/faq.html http://myDomain.com/careers.html When I load it up on webmaster tools I get: Sitemap is HTML - Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead I tried a few alternatives (such as with or without www) but no luck. I tried also with an xml sitemap and getting the same error so it looks like the server is serving everything as text/html instead of text/plain.. Now the question is ... how do I get the appspot server to server text as plain? Anyone any clue? Any help appreciated! P.S. if I am not posting in the appropriate group please tell me which one should I post to -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ 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: App Engine serving all pages as html -
Hi Nick - thanks for your help, I tried with: static-files include path=/**.xml / include path=/**.txt / /static-files in my appengine-web.xml but now I am getting errors on the other pages: WARNING: Can not serve /index.html directly. You need to include it in static-files in your appengine-web.xml. If I include html files then it complains about pngs and so forth :) Any help appreciated! On Aug 9, 11:28 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi John, If the mime-type being served is incorrect, you need to specify it manually - see the docs on static handlers for Python:http://code.google.com/appengine/docs/python/config/appconfig.html#St... and Java:http://code.google.com/appengine/docs/java/config/appconfig.html#Stat... -Nick Johnson On Sat, Aug 8, 2009 at 4:56 PM, John_Idolgiovanni.id...@gmail.com wrote: I have a very simple txt sitemap (named sitemap.txt) that looks like this: http://myDomain.com http://myDomain.com/about.html http://myDomain.com/faq.html http://myDomain.com/careers.html When I load it up on webmaster tools I get: Sitemap isHTML- Your Sitemap appears to be anHTMLpage. Please use a supported sitemap format instead I tried a few alternatives (such as with or without www) but no luck. I tried also with an xml sitemap and getting the same error so it looks like the server isservingeverything as text/htmlinstead of text/plain.. Now the question is ... how do I get the appspot server to server text as plain? Anyone any clue? Any help appreciated! P.S. if I am not posting in the appropriate group please tell me which one should I post to -- Nick Johnson, Developer Programs Engineer,AppEngine --~--~-~--~~~---~--~~ 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: App Engine serving all pages as html -
Ok, I jst noticed I was doing the opposite of what you suggested, from the doc: To serve a file with a custom MIME type, make the file a resource file instead of a static file, and create a servlet that serves the data with the custom MIME type. Does this mean I have to make my sistemaps resource files in the appengine-web.xml and implement a servlet just to serve them as text? On Aug 9, 12:12 pm, John_Idol giovanni.id...@gmail.com wrote: Hi Nick - thanks for your help, I tried with: static-files include path=/**.xml / include path=/**.txt / /static-files in my appengine-web.xml but now I am getting errors on the otherpages: WARNING: Can not serve /index.htmldirectly. You need to include it in static-files in your appengine-web.xml. If I includehtmlfiles then it complains about pngs and so forth :) Any help appreciated! On Aug 9, 11:28 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi John, If the mime-type being served is incorrect, you need to specify it manually - see the docs on static handlers for Python:http://code.google.com/appengine/docs/python/config/appconfig.html#St... and Java:http://code.google.com/appengine/docs/java/config/appconfig.html#Stat... -Nick Johnson On Sat, Aug 8, 2009 at 4:56 PM, John_Idolgiovanni.id...@gmail.com wrote: I have a very simple txt sitemap (named sitemap.txt) that looks like this: http://myDomain.com http://myDomain.com/about.html http://myDomain.com/faq.html http://myDomain.com/careers.html When I load it up on webmaster tools I get: Sitemap isHTML- Your Sitemap appears to be anHTMLpage. Please use a supported sitemap format instead I tried a few alternatives (such as with or without www) but no luck. I tried also with an xml sitemap and getting the same error so it looks like the server isservingeverything as text/htmlinstead of text/plain.. Now the question is ... how do I get the appspot server to server text as plain? Anyone any clue? Any help appreciated! P.S. if I am not posting in the appropriate group please tell me which one should I post to -- Nick Johnson, Developer Programs Engineer,AppEngine --~--~-~--~~~---~--~~ 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: App Engine serving all pages as html -
The other strange thing is that robots.txt is apparently being served correctly (no errors from webmaster tools) and being a txt I would expect the same error as my txt sitemap On Aug 9, 12:15 pm, John_Idol giovanni.id...@gmail.com wrote: Ok, I jst noticed I was doing the opposite of what you suggested, from the doc: To serve a file with a custom MIME type, make the file a resource file instead of a static file, and create a servlet that serves the data with the custom MIME type. Does this mean I have to make my sistemaps resource files in the appengine-web.xml and implement a servlet just to serve them as text? On Aug 9, 12:12 pm, John_Idol giovanni.id...@gmail.com wrote: Hi Nick - thanks for your help, I tried with: static-files include path=/**.xml / include path=/**.txt / /static-files in my appengine-web.xml but now I am getting errors on the otherpages: WARNING: Can not serve /index.htmldirectly. You need to include it in static-files in your appengine-web.xml. If I includehtmlfiles then it complains about pngs and so forth :) Any help appreciated! On Aug 9, 11:28 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi John, If the mime-type being served is incorrect, you need to specify it manually - see the docs on static handlers for Python:http://code.google.com/appengine/docs/python/config/appconfig.html#St... and Java:http://code.google.com/appengine/docs/java/config/appconfig.html#Stat... -Nick Johnson On Sat, Aug 8, 2009 at 4:56 PM, John_Idolgiovanni.id...@gmail.com wrote: I have a very simple txt sitemap (named sitemap.txt) that looks like this: http://myDomain.com http://myDomain.com/about.html http://myDomain.com/faq.html http://myDomain.com/careers.html When I load it up on webmaster tools I get: Sitemap isHTML- Your Sitemap appears to be anHTMLpage. Please use a supported sitemap format instead I tried a few alternatives (such as with or without www) but no luck. I tried also with an xml sitemap and getting the same error so it looks like the server isservingeverything as text/htmlinstead of text/plain.. Now the question is ... how do I get the appspot server to server text as plain? Anyone any clue? Any help appreciated! P.S. if I am not posting in the appropriate group please tell me which one should I post to -- Nick Johnson, Developer Programs Engineer,AppEngine --~--~-~--~~~---~--~~ 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: Memcache inrc()/decr() need expiration time parameter
On Aug 9, 4:08 am, keakon kea...@gmail.com wrote: In the Python SDK version 1.2.4, Memcache incr() and decr() functions can set an initial value for a counter if the key does not exist. But I only find out the initial_value parameter. When I try this enhancement, the cached value seems never expire. For the transaction reason, I don't want to use replace() to set its expiration time, so can Google add expiration time parameter for inrc ()/decr(), or offer a new function to set expiration time? Why not check if memcache already has the key in it before incrementing? --~--~-~--~~~---~--~~ 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: Transactions
I think this problem is discussed there: http://code.google.com/p/googleappengine/issues/detail?id=313 Julian On Aug 7, 4:30 am, Cornel corneliu.lupu...@gmail.com wrote: Hello. I'm using app engine to write a business application. I've read that during a transaction one can modify only entities within the same entity group. How would one approach the following scenario? : Consider the Account object with the Owner and Credit fields. If i want to make a credit transfer between accounts A and B (A.credit--; B.credit++), it must be done in a single transaction. That can only happen if A and B are in the same entity group (from what i understand) Since a credit transfer can be done between any two random accounts, i must put them all in the same entity group; but this way, two unrelated transfers (A to B and C to D let's say) cannot be done at the same time anymore. Which again is not desired (i understand that having a single big entity group is bad practice) I think this is a pretty general problem (not related only to this scenario), so how is it solved? --~--~-~--~~~---~--~~ 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: App Engine serving all pages as html -
@Nick ok - I implemented a servlet to serve the sitemap as text/plain (I am loading the file into an array of bytes then calling): resp.setContentType(text/plain); resp.getOutputStream().write(bytes); If I call the servlet manually I see the output I expect but if I feed the servlet path to google webmaster tools I still get -- Sitemap is HTML Trying with both XMl and TXT plain text ... starting to lose hope! :) On Aug 9, 12:25 pm, John_Idol giovanni.id...@gmail.com wrote: The other strange thing is that robots.txt is apparently being served correctly (no errors from webmaster tools) and being a txt I would expect the same error as my txt sitemap On Aug 9, 12:15 pm, John_Idol giovanni.id...@gmail.com wrote: Ok, I jst noticed I was doing the opposite of what you suggested, from the doc: To serve a file with a custom MIME type, make the file a resource file instead of a static file, and create a servlet that serves the data with the custom MIME type. Does this mean I have to make my sistemaps resource files in the appengine-web.xml and implement a servlet just to serve them as text? On Aug 9, 12:12 pm, John_Idol giovanni.id...@gmail.com wrote: Hi Nick - thanks for your help, I tried with: static-files include path=/**.xml / include path=/**.txt / /static-files in my appengine-web.xml but now I am getting errors on the otherpages: WARNING: Can not serve /index.htmldirectly. You need to include it in static-files in your appengine-web.xml. If I includehtmlfiles then it complains about pngs and so forth :) Any help appreciated! On Aug 9, 11:28 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi John, If the mime-type being served is incorrect, you need to specify it manually - see the docs on static handlers for Python:http://code.google.com/appengine/docs/python/config/appconfig.html#St... and Java:http://code.google.com/appengine/docs/java/config/appconfig.html#Stat... -Nick Johnson On Sat, Aug 8, 2009 at 4:56 PM, John_Idolgiovanni.id...@gmail.com wrote: I have a very simple txt sitemap (named sitemap.txt) that looks like this: http://myDomain.com http://myDomain.com/about.html http://myDomain.com/faq.html http://myDomain.com/careers.html When I load it up on webmaster tools I get: Sitemap isHTML- Your Sitemap appears to be anHTMLpage. Please use a supported sitemap format instead I tried a few alternatives (such as with or without www) but no luck. I tried also with an xml sitemap and getting the same error so it looks like the server isservingeverything as text/htmlinstead of text/plain.. Now the question is ... how do I get the appspot server to server text as plain? Anyone any clue? Any help appreciated! P.S. if I am not posting in the appropriate group please tell me which one should I post to -- Nick Johnson, Developer Programs Engineer,AppEngine --~--~-~--~~~---~--~~ 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: Basic Event Tracking Question
Thanks Nick, makes complete sense. I'll write it so that for each Interaction, it finds the appropriate entity, increments the counter and stores it; if looking for the entity turns nothing up, i make a new one with a counter set to 1. right? thanks again for the quick and kind attention. best, Christopher On Aug 7, 6:02 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi Markitecht, It sounds like your best option is to have a single Interaction entity for each unique string. You can use the key name to ensure uniqueness. Then, to record a new interaction, in a transaction fetch the existing one (if any), increment the count, and store it. If you expect some interactions to be very popular (more than a few updates a second), you should probably look into sharded counters. -Nick Johnson On Wed, Aug 5, 2009 at 7:15 PM, Markitechtmarkite...@gmail.com wrote: I am writing a dirt-simple tracking API. For the sake of explanation, i will over-simplify my question even further. I have an endpoint that accepts one item of string metadata, and saves a new instance of an Interaction object. (the interaction object also saves the user and the date created) How do i query Interaction to return the most popular 'interactions' (using those string metadata values), with a count for each? This seems *so* simple, but i just can't figure out how to do it on AE. Thanks, Christopher -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ 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] Session Token without current user?
In studying the AuthSub sample code at this location: http://code.google.com/appengine/articles/gdata.html I am confused about the comments pasted below. In the elif case, how can there be a token without there being a current (logged in) user? In order for the app to have received a token to begin with, didn't it have to know which user was accessing the app? Could you give me a scenario in which there would be a token, but the user hasn't logged in yet? The only case I can think of is if the user just logged in at the page to grant them the token (from client.GenerateAuthSubURL), but hasn't yet logged into my app (using the link generated by users.create_login_url). If I am right about this, then could I avoid this by always first requiring my user to login to my app, before checking to see if they have a token? Thanks, Dave session_token = None # Find the AuthSub token and upgrade it to a session token. auth_token = gdata.auth.extract_auth_sub_token_from_url (self.request.uri) if auth_token: # Upgrade the single-use AuthSub token to a multi-use session token. session_token = client.upgrade_to_session_token(auth_token) if session_token and users.get_current_user(): # If there is a current user, store the token in the datastore and # associate it with the current user. Since we told the client to # run_on_appengine, the add_token call will automatically store the # session token if there is a current_user. client.token_store.add_token(session_token) elif session_token: # Since there is no current user, we will put the session token # in a property of the client. We will not store the token in the # datastore, since we wouldn't know which user it belongs to. # Since a new client object is created with each get call, we don't # need to worry about the anonymous token being used by other users. client.current_token = session_token --~--~-~--~~~---~--~~ 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: Memcache inrc()/decr() need expiration time parameter
Maybe users will update it at the same time, so sometimes it will get lost. 2009/8/9 Wooble geoffsp...@gmail.com On Aug 9, 4:08 am, keakon kea...@gmail.com wrote: In the Python SDK version 1.2.4, Memcache incr() and decr() functions can set an initial value for a counter if the key does not exist. But I only find out the initial_value parameter. When I try this enhancement, the cached value seems never expire. For the transaction reason, I don't want to use replace() to set its expiration time, so can Google add expiration time parameter for inrc ()/decr(), or offer a new function to set expiration time? Why not check if memcache already has the key in it before incrementing? --~--~-~--~~~---~--~~ 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] ListProperty vs StringListProperty
Hey all, is there any datastop/API overhead difference between these two? Is there any difference in index (or lack thereof) maintenance by the datastore? Thanks, Jeff --~--~-~--~~~---~--~~ 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: Google App Engine Custom Domain Stopped Working
I am now having the same problem. What is unusual is that it started on August the 5th and I haven't been able to resolve it. Have tried disabling and re-adding but still causes the same issue. www.sohoappspot.com is the main website this just shows the message TEST sohosched.appspot.com is the appspot location of the website and this works fine. I haven't changed the application for months but all of a sudden this has happend. Any ideas? Cheers Gene On Jul 24, 6:40 am, casebash walkr...@gmail.com wrote: I can't disable the service :-(. Everytime I try it says it should be disabled in half an hour, but I come back and it isn't. On Jul 24, 2:53 am, Hrishi bakshi.hrishik...@gmail.com wrote: Removing and re-adding the 'App Engine' service for this domainin Apps control panel fixed the issue. Is there a way to avoid this issue? Or was it a one-time issue due to app engine downtime yesterday? Thanks, Hrishikesh Bakshi On Jul 23, 6:11 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi casebash, Can you please try removing and re-adding the 'App Engine' service for this domainin your Apps control panel, and report back if that fixes the error? Also, make sure you don't have anything else, such as Sites, mapped to the www subdomain. -Nick Johnson On Wed, Jul 22, 2009 at 7:50 AM, casebash walkr...@gmail.com wrote: Hi all, I am running a Google App Engine App on thedomainhttp://www.usydunit.com . Until recently, it wasworking(for several months), but it suddenly stoppedafter my last update. However, it is still accessible at http://1.latest.casebash-temp.appspot.com/. I don't believe I have touched any settings, although I did go in and confirm that they were what they should be. Does anyone have any idea of why it might not be working? Thanks very much, Chris -- Nick Johnson, App Engine Developer Programs Engineer Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---