[google-appengine] Re: Google App Engine Custom Domain Stopped Working

2009-08-10 Thread Blixt

The same thing that happened to Gene happened to me too. I haven't
updated my app or anything, but suddenly http://beta.multifarce.com/
is down (Google Error - 404 Not Found - The requested URL / was not
found on this server.) while http://multifarce.appspot.com/ works...

Is this a temporary error or do I need to take action to fix this
somehow?

On Aug 9, 8:58 pm, drthink drgenejo...@gmail.com wrote:
 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.comis 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
-~--~~~~--~~--~--~---



[google-appengine] Sharing an app between different Google apps domains

2009-08-10 Thread Sudhir

Heres the background - I'm developing an app, lets say accounting
software, that I'd like to sell to organizations using Google Apps.

How do I manage deployments? If I just create one app, it is possible
for all my clients to import it into their dashboard and use it like
their own app?

I don't want to create, maintain and update a separate app for each
and every one of my customers... how can I share the app with my
client domains keeping a separate datastore and auth setup for each of
them?

Sudhir
--~--~-~--~~~---~--~~
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: Sharing an app between different Google apps domains

2009-08-10 Thread Nick Johnson (Google)

On Mon, Aug 10, 2009 at 9:02 AM, Sudhirsudhi...@gmail.com wrote:

 Heres the background - I'm developing an app, lets say accounting
 software, that I'd like to sell to organizations using Google Apps.

 How do I manage deployments? If I just create one app, it is possible
 for all my clients to import it into their dashboard and use it like
 their own app?

Yes, though currently their users will have to have Google accounts
(you can create a Google account for any email address by going to
https://www.google.com/accounts/NewAccount) in order to sign in, since
you can only set your app to work with Google accounts or one specific
domain's accounts. Alternately, you can work around this limitation by
using OpenID, but this is rather cumbersome.


 I don't want to create, maintain and update a separate app for each
 and every one of my customers... how can I share the app with my
 client domains keeping a separate datastore and auth setup for each of
 them?

If you're using the approach outlined above, you'll need to enforce
separation in your datastore yourself - for example, by restricting
records based on the Host header the site is accessed through, and/or
the hostname of the user who's logged in. One way to do this is with
Hooks: http://code.google.com/appengine/articles/hooks.html

-Nick Johnson


 Sudhir
 




-- 
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: Google App Engine Custom Domain Stopped Working

2009-08-10 Thread Nick Johnson (Google)

Hi Blixt,

Have you made any changes to your Apps domain recently that may have
interfered with this, such as adding or removing another service from
a subdomain of multifarce.com?

-Nick Johnson

On Mon, Aug 10, 2009 at 7:24 AM, Blixtandreasbl...@gmail.com wrote:

 The same thing that happened to Gene happened to me too. I haven't
 updated my app or anything, but suddenly http://beta.multifarce.com/
 is down (Google Error - 404 Not Found - The requested URL / was not
 found on this server.) while http://multifarce.appspot.com/ works...

 Is this a temporary error or do I need to take action to fix this
 somehow?

 On Aug 9, 8:58 pm, drthink drgenejo...@gmail.com wrote:
 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.comis 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
 




-- 
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: ListProperty vs StringListProperty

2009-08-10 Thread Nick Johnson (Google)

Hi Jeff,

A StringListProperty is exactly equivalent, as far as the datastore is
concerned, to multiple individual String properties. That is, an
entity like this:

MyEntity(astring=foo, alist=[foo, bar])

is stored in the datastore analagous to this:

((astring, foo), (alist, foo), (alist, bar))

-Nick Johnson

On Sun, Aug 9, 2009 at 6:33 PM, Jeff Enderwickjeff.enderw...@gmail.com wrote:

 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

 




-- 
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 -

2009-08-10 Thread Nick Johnson (Google)

On Sun, Aug 9, 2009 at 4:43 PM, John_Idolgiovanni.id...@gmail.com wrote:

 @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

Try using curl or wget, or the Firefox 'raw http headers' plugin to
verify the content-type and other headers being served. For example,
in wget, do wget -O /dev/null -S http://yoururl/...;. Try this on
both your original static file and on the new servlet. If they're
actually serving up as text/plain, you need to use the contact
mechanisms for Sitemaps to find out what's up.

-Nick Johnson


 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
 




-- 
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: Basic Event Tracking Question

2009-08-10 Thread Nick Johnson (Google)

On Sun, Aug 9, 2009 at 4:58 PM, Markitechtmarkite...@gmail.com wrote:

 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?

Right. Just make sure to do it inside a transaction if you need exact
counts. And use key naming to avoid the need to do queries.

Finally, do look at the info on sharded counters if you expect
individual counters to be updated more than about once a second.

-Nick Johnson


 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
 




-- 
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] Can we get an example of the new kindless queries, ie. transaction descendant queries?

2009-08-10 Thread obvious

As noted in the App Engine Python 1.2.4 release, there's now support
for kindless queries.

Can we get a quick example on how to use these?
--~--~-~--~~~---~--~~
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

2009-08-10 Thread Nick Johnson (Google)

Hi Cornel,

Atomic transfers between accounts is a classic example of a 'hard'
scalability problem. It's being tackled on App Engine, however, with
higher-level transaction libraries. There were a couple of talks about
it at I/O this year:
http://code.google.com/events/io/sessions/DesignDistributedTransactionLayerAppEngine.html
http://code.google.com/events/io/sessions/TransactionsAcrossDatacenters.html

-Nick Johnson

On Thu, Aug 6, 2009 at 8:30 PM, Cornelcorneliu.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?

 




-- 
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: Indexes stuck in building

2009-08-10 Thread Nick Johnson (Google)

Hi Peecho,

I've moved your indexes to 'error'. Try vacuuming them now.

-Nick Johnson

On Sat, Aug 8, 2009 at 2:48 PM, Peechosan...@peecho.com wrote:

 Hi,
 My indexes seem stuck in Building for over 4 days now. I tried to
 vacuum them but alas. Could anybody help me out, please?
 My app's name is peechotest.

 Thanks!

 




-- 
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: Weird content being injected into my page

2009-08-10 Thread Nick Johnson (Google)
Hi Mike,

In order to help diagnose your problem, we need a lot more details.
What is the source of the handler that is serving this up? What does
your app.yaml look like? What, if anything, have you changed recently?

-Nick Johnson

On Sun, Aug 9, 2009 at 2:12 AM, Mikedavis2...@gmail.com wrote:
 Hello,
 I have a couple of pages that work on my local computer, but when I
 upload them and goto the page, I see weird code being injected in
 front of my page.

 Both Internet Explorer and Safari show the following.  Firefox wants
 to download the code as a file.

 Set-Cookie: appengine-utilities-session-
 sid=agt3aGl0ZWhhdC1hMXIiCxIbX0FwcEVuZ2luZVV0aWxpdGllc19TZXNzaW9uGKcfDAfe0ca33e57b3c2bf7f93396d8f3f61c9;
 Path=/ Set-Cookie: appengine-utilities-session-sid_data=; expires=Sun,
 09-Aug-2009 03:01:42 GMT Content-Type: text/html; charset=utf-8
 Content-Encoding: gzip X-AppEngine-Estimated-CPM-US-Dollars: $0.005745
 X-AppEngine-Resource-Usage: ms=138 cpu_ms=230 api_cpu_ms=148 Date:
 Sun, 09 Aug 2009 01:01:42 GMT Server: Google Frontend Content-Length:
 1167  ‹  ÿµWëoÛ6 ÿœ ý 8 ™ l ídíšTrÑÚé2 Yƒ$ŶO -Ò  JÔÄ“ èú¿ï(J~tN6d®?
 èu¯ß=xwŽ¾ ¾ Üþ~uFRÈ4¹úðöâç ¡ Æ~= 06¼ ’ßÎo//H/ì’ (U Œ ýB
 M ŠSÆf³Y8; M9a·×lî´ôœXóرµL(@ÐþÓ'QmežéÜÆ[4ôNNN¼ uL§šç“˜Ê¼óÓ[/-¹Àû^
 ´ì MÆUN.yÎ'²Œ˜ÿêè™ NœþŽü³RÓ˜ L 2‡Îí¢ ”$þ-¦¼(´J8(“{»ß¡ÙW$Iyi%Ä Œ;/)a
 + 9ÏdL…´I© '¶¦l ã \ÌL)ìÃ\¥  XçQ¹ óïÉØhmf €Vù )¥Ž©MM     I D% @ZÊqLÙ˜OÝ
 {ˆ JýD=  †Í;žoMM#b ]O  ™ÊÃÄ ¯  ZÚTJh  œ s N‡Óâý_§~äSî¿RbËd¥ ŒÑ6ühi?
 bžÁáÀl² ÑȈE M¨)Q +  ²t)ßÛÛ‹Ò^ÿ C¨°–êT¡d¯¡UÚ?ìù«s¯/0 ö¨Û{ 1|#  38zÄ
 [ÿùJ ) Ž.hÿ ¯ ãý á ±¶nS 2åÐá½ ëÈ  ÂÄdì ž2m¦‚×.¡*¯dìDlSë cZÖ¬ \«I     –
 ®,ƒeœ‚MˆHPÙ¤. €Õ…i™«ËNj2  ù$X7  Êþ9 ¼  þ¯u–T Pßý02™Wv+ŽA#jw FÔ ë P|
 ÇÛ  ‹µõ  7(¶»Ìp  S. “ /ªäîÒôà{Á4ôípŽz¼lÅà(_ݾ› ÛÛ×r , ã£ë£xsmv
 £ ¯·ãz i rk”nO~Ã…ópc B:œ’åœ\ŽÉ 9öŒ “ pÿ¹Ã‘_ 2 £ Àä   8|EqìŠ/FÈ ã³í° )
 Ðþ ^ !,¤–€Î ëû  Öѯv S5 ©\ÂÚÄ;SfáÈÌ“TwR„S®q ÇÝÃO\Ë  ‚+-¹•Ä
 ¢Á  ' p’’qi2 ©$ !b,Kmå§Í(y‰àð3íßÔ ÿ í¦ ¿* ‡õÌ~ÿÅÌÞ² Í-îÏM+ªK
 £›„'n=úGpý¸¡ WÎÔ`} Æâ’æwÏeŒ¼š-ó¿Y ü P/CËóCŸïÓ¶¾ ÊjDµ_›¢oV0
 ¿e4 œ¦  iÁ ô ¨ªXikÅÖ ‹Ê‹ª]:S%„Ì[7€Û;J|n—+öýì«zX u[)æB¹ ôõ£96 ÚÍ4ò- Û~±
 (Õ$ òí³Þ‹“Wä¨Û=!õßšfw³FW.3Ömn!y£5¹v –\K··aYF¬Ñ¶f8bÍfŒ  ÿ›ÔPžù ¿í㑳

 This used to work a couple of weeks ago and now it doesn't.

 Any idea on what might be wrong?

 thanks
 




-- 
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: Basic Event Tracking Question

2009-08-10 Thread Andy Freeman

 Finally, do look at the info on sharded counters if you expect
 individual counters to be updated more than about once a second.

That is fairly disturbing advice as it seems to suggest that updating
a simple entity more than once a second is problematic.

I would have thought that it would be safe to update a given entity
10-15 times/second and maybe even 20x/second. (10x/second is 100ms per
update, 15 is over 65ms per update, 20 is 50ms per update.)  Frankly,
I'm surprised that 5 times/second is too fast. (5x/second is 200ms per
update.)

On Aug 10, 5:24 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 On Sun, Aug 9, 2009 at 4:58 PM, Markitechtmarkite...@gmail.com wrote:

  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?

 Right. Just make sure to do it inside a transaction if you need exact
 counts. And use key naming to avoid the need to do queries.

 Finally, do look at the info on sharded counters if you expect
 individual counters to be updated more than about once a second.

 -Nick Johnson







  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

 --
 Nick Johnson, Developer Programs Engineer, App Engine- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Sharing an app between different Google apps domains

2009-08-10 Thread Sudhir

Is there an ETA for that kind of sharing? The point of this idea is to
let the users of each organization use their custom domain based
Google Apps authentication, while saving me the trouble of managing
and updating a large number of app deployments.

Sudhir




On Aug 10, 1:30 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 On Mon, Aug 10, 2009 at 9:02 AM, Sudhirsudhi...@gmail.com wrote:

  Heres the background - I'm developing an app, lets say accounting
  software, that I'd like to sell to organizations using Google Apps.

  How do I manage deployments? If I just create one app, it is possible
  for all my clients to import it into their dashboard and use it like
  their own app?

 Yes, though currently their users will have to have Google accounts
 (you can create a Google account for any email address by going 
 tohttps://www.google.com/accounts/NewAccount) in order to sign in, since
 you can only set your app to work with Google accounts or one specific
 domain's accounts. Alternately, you can work around this limitation by
 using OpenID, but this is rather cumbersome.



  I don't want to create, maintain and update a separate app for each
  and every one of my customers... how can I share the app with my
  client domains keeping a separate datastore and auth setup for each of
  them?

 If you're using the approach outlined above, you'll need to enforce
 separation in your datastore yourself - for example, by restricting
 records based on the Host header the site is accessed through, and/or
 the hostname of the user who's logged in. One way to do this is with
 Hooks:http://code.google.com/appengine/articles/hooks.html

 -Nick Johnson



  Sudhir

 --
 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: Building index stucked

2009-08-10 Thread Nick Johnson (Google)

Hi Bryan,

Please try vacuuming and rebuilding your indexes now.

-Nick Johnson

On Sat, Aug 8, 2009 at 6:29 PM, Bryan Pendletonbpendle...@gmail.com wrote:
 My indexes are stuck, on application aquarium-bp. One index is in error,
 the rest are building. When I attempt to vacuum with a no-indexes-defined
 index.yaml file, I'm offered the opportunity to delete each, in turn.
 If I only choose yes for the Error index, I get the Deleting selected
 index definitions., but the index never disappears (and remains Error).
 If I say yes to delete any other indexes, I'm given the somewhat more
 confusing 2009-08-08 13:20:20,689 WARNING appcfg.py:704 An index was not
 deleted. Most likely this is because it no longer exists. message, and
 still nothing changes.
 I have a fairly small amount of data in my Datastore, but this broken
 application state is making it impossible for me to continue
 development/deployment of my app, which is now (further) behind schedule.
 Could someone from the AppEngine team take a look and maybe knock my indexes
 loose?
 --
 Bryan A. P. Pendleton
 Graduate Student, Carnegie Mellon Human Computer Interaction Institute
 Ph: (877) geek-1-bp


 On Thu, Jun 4, 2009 at 1:40 PM, Nick Johnson (Google)
 nick.john...@google.com wrote:

 Hi,

 I've reset your indexes to 'error' state. You can now vacuum and recreate
 them if you wish.

 -Nick Johnson

 On Wed, Jun 3, 2009 at 10:07 PM, mmiy...@gmail.com mmiy...@gmail.com
 wrote:

 Hi,
 I've got a problem while building a new index for my applicaiton.
 index.yaml is correctly uploaded but its status is stacked in
 Building for a week. Something must be wrong.
 I've tried vaccuming the index by appcfg.py but failed... I need some
 help. My application ID is codepasture-rest.
 Thanks.







 




-- 
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: Problem deploying demo application

2009-08-10 Thread Nick Johnson (Google)

Hi Roberto,

You may have more luck asking this question on the google-appengine-java forum.

-Nick Johnson

On Sat, Aug 8, 2009 at 10:14 AM, Roberto Eguagliasqualo1...@nuoto.it wrote:

 any suggestion??

 On 7 Ago, 18:15, Roberto Eguaglia squalo1...@nuoto.it wrote:
 DemoServlet.java
 package com.demo;

 import java.io.IOException;
 import javax.servlet.http.*;

 @SuppressWarnings(serial)
 public class DemoServlet extends HttpServlet {
         public void doGet(HttpServletRequest req, HttpServletResponse resp)
                         throws IOException {
                 resp.setContentType(text/plain);
                 resp.getWriter().println(Hello, world);
         }

 }

 index.html
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 !-- The HTML 4.01 Transitional DOCTYPE declaration--
 !-- above set at the top of the file will set     --
 !-- the browser's rendering engine into           --
 !-- Quirks Mode. Replacing this declaration     --
 !-- with a Standards Mode doctype is supported, --
 !-- but may lead to some differences in layout.   --

 html
   head
     meta http-equiv=content-type content=text/html;
 charset=UTF-8
     titleHello App Engine/title
   /head

   body
     h1Hello App Engine!/h1

     table
       tr
         td colspan=2 style=font-weight:bold;Available Servlets:/
 td
       /tr
       tr
         tda href=demo/Demo/td
       /tr
     /table
   /body
 /html

 web.xml
 ?xml version=1.0 encoding=utf-8?
 web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns=http://java.sun.com/xml/ns/javaee;
 xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
 xsi:schemaLocation=http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
  version=2.5
         servlet
                 servlet-nameDemo/servlet-name
                 servlet-classcom.demo.DemoServlet/servlet-class
         /servlet
         servlet-mapping
                 servlet-nameDemo/servlet-name
                 url-pattern/demo/url-pattern
         /servlet-mapping
         welcome-file-list
                 welcome-fileindex.html/welcome-file
         /welcome-file-list
 /web-app

 On 7 Ago, 11:57, Roberto Eguaglia squalo1...@nuoto.it wrote:

  Hi Nick,

  My App ID is hello-demo; I've created it after my other application
  gave me the same error.

  I didn't make any modifications from the default app.
  If you want I can post the code

  On 7 Ago, 11:43, Nick Johnson (Google) nick.john...@google.com
  wrote:

   Hi Roberto,

   What is your App ID?

   Did you make any modifications at all from the default app?

   -Nick Johnson

   On Fri, Aug 7, 2009 at 10:39 AM, Roberto Eguagliasqualo1...@nuoto.it 
   wrote:

Hi Nick,

that's my log in the admin console (it's not in the Error logs, but
in the Request)
#

  1.
     08-07 02:34AM 03.175 /demo 500 103ms 0cpu_ms 0kb Mozilla/5.0
(X11; U; Linux x86_64; it; rv:1.9.0.12) Gecko/2009071200 SUSE/
3.0.12-0.1.2 Firefox/3.0.12,gzip(gfe)
     See details

     82.58.115.90 - - [07/Aug/2009:02:34:03 -0700] GET /demo HTTP/
1.1 500 0 http://hello-demo.appspot.com/; Mozilla/5.0 (X11; U;
Linux x86_64; it; rv:1.9.0.12) Gecko/2009071200 SUSE/3.0.12-0.1.2
Firefox/3.0.12,gzip(gfe)

I can't explain myself why the application generated by default
doesn't work (it works only in the develpoment environment...)

On 7 Ago, 10:39, Nick Johnson (Google) nick.john...@google.com
wrote:
Hi,

In order to see what error you are getting, you need to log in to the
admin console, and click on 'Logs'.

-Nick Johnson

On Wed, Aug 5, 2009 at 11:00 AM, 
squalo1...@nuoto.itsqualo1...@nuoto.it wrote:

 Hi everyone.
 I'm new to Google App Engine and I'm using Eclipse 3.4 with the 
 plugin
 downloaded from Google.
 When I create a new Web-Application project Eclipse set the
 appropriate directories, libraries etc...
 Running locally the web-app I can see the Hello App Engine page 
 with
 the available servlets and, when i follow the link to the servlet,
 appears the mighty Hello, world. So locally there are no errors.
 Unfortunately, when I deploy the application, the link to the 
 servlet,
 simply doesn't work: it gives me a 500 error response (Server 
 Error),
 without any information about what error happened.
 Can anyone help me please?
 P.S.: Sorry if my English isn't completely correct

--
Nick Johnson, Developer Programs Engineer, App Engine

   --
   Nick Johnson, Developer Programs Engineer, App Engine


 




-- 
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] Re: Google App Engine Custom Domain Stopped Working

2009-08-10 Thread drthink

Nick Johnson,

Re my domain above www.sohoappspot.com

Nothing has been changed on the domain.  I have tried the following to
rectify:

1.  Removing and re-adding the sohosched.appspot.com app engine
application to my Google Apps domain.
2.  Deleting and re-adding the CNAME record for www that points to
ghs.google.com

Can't think of what else to do.  Any Ideas?

Cheers
Gene



On Aug 10, 5:16 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Blixt,

 Have you made any changes to your Apps domain recently that may have
 interfered with this, such as adding or removing another service from
 a subdomain of multifarce.com?

 -Nick Johnson



 On Mon, Aug 10, 2009 at 7:24 AM, Blixtandreasbl...@gmail.com wrote:

  The same thing that happened to Gene happened to me too. I haven't
  updated my app or anything, but suddenlyhttp://beta.multifarce.com/
  is down (Google Error - 404 Not Found - The requested URL / was not
  found on this server.) whilehttp://multifarce.appspot.com/works...

  Is this a temporary error or do I need to take action to fix this
  somehow?

  On Aug 9, 8:58 pm, drthink drgenejo...@gmail.com wrote:
  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.comisthe 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

 --
 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: Building index stucked

2009-08-10 Thread Bryan Pendleton
It was cleared, but now I seem to have re-introduced the problem as a result
of a poor re-shuffle of my index.yaml file.
Is there a reason that either:
1) More reporting than Error is not provided?
2) Users can't be offered a self-help un-stick, perhaps limited to trying
1x/hour or something? Or am I doing something so wrong that it should never
happen and, thus, stick the indexes?
-- 
Bryan A. P. Pendleton


On Mon, Aug 10, 2009 at 9:27 AM, Nick Johnson (Google) 
nick.john...@google.com wrote:


 Hi Bryan,

 Please try vacuuming and rebuilding your indexes now.

 -Nick Johnson

 On Sat, Aug 8, 2009 at 6:29 PM, Bryan Pendletonbpendle...@gmail.com
 wrote:
  My indexes are stuck, on application aquarium-bp. One index is in
 error,
  the rest are building. When I attempt to vacuum with a
 no-indexes-defined
  index.yaml file, I'm offered the opportunity to delete each, in turn.
  If I only choose yes for the Error index, I get the Deleting selected
  index definitions., but the index never disappears (and remains
 Error).
  If I say yes to delete any other indexes, I'm given the somewhat more
  confusing 2009-08-08 13:20:20,689 WARNING appcfg.py:704 An index was not
  deleted. Most likely this is because it no longer exists. message, and
  still nothing changes.
  I have a fairly small amount of data in my Datastore, but this broken
  application state is making it impossible for me to continue
  development/deployment of my app, which is now (further) behind schedule.
  Could someone from the AppEngine team take a look and maybe knock my
 indexes
  loose?
  --
  Bryan A. P. Pendleton
  Graduate Student, Carnegie Mellon Human Computer Interaction Institute
  Ph: (877) geek-1-bp
 
 
  On Thu, Jun 4, 2009 at 1:40 PM, Nick Johnson (Google)
  nick.john...@google.com wrote:
 
  Hi,
 
  I've reset your indexes to 'error' state. You can now vacuum and
 recreate
  them if you wish.
 
  -Nick Johnson
 
  On Wed, Jun 3, 2009 at 10:07 PM, mmiy...@gmail.com mmiy...@gmail.com
  wrote:
 
  Hi,
  I've got a problem while building a new index for my applicaiton.
  index.yaml is correctly uploaded but its status is stacked in
  Building for a week. Something must be wrong.
  I've tried vaccuming the index by appcfg.py but failed... I need some
  help. My application ID is codepasture-rest.
  Thanks.
 
 
 
 
 
 
 
  
 



 --
 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] Using data viewer to query by key

2009-08-10 Thread Bemmu

If I just know a key, how do I query by that in the admin console data
viewer?

My keys are people, so if I get complaints about mistakes in user
data, it would be convenient to pull up that user's data by key. I've
tried doing the following:

SELECT * FROM User WHERE __key__ = 'myspace.com:472071387'

Result is that I get a page that says Server Error - A server error
has occurred.

I also tried

SELECT * FROM User WHERE __key__ = KEY('myspace.com:472071387')

And got same error. Finally I tried

SELECT * FROM User WHERE __key__ = KEY(myspace.com:472071387)

And this time I got complaint of invalid GQL query. So how should I be
doing this query or is it even possible?
--~--~-~--~~~---~--~~
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] GAE costs more than 10 times than expected.

2009-08-10 Thread Sylvain

Hi,

Here is the background : I've a small app that needs more than 1Go,
currently : 1.27 GB.
So each week, I'm charged by GAE/Chekout : $0.08 (0.056€)

But at the end I pay to my bank : $1.00 (0.71€). So, it is more than
10 times than expected.

I know about taxes (http://code.google.com/intl/fr/appengine/docs/
billing.html#A_Note_About_Taxes), but here the gap between the GAE
price and the Bank price  is too big : 92% is only taxes.

I think billing needs to be changed/adapted asap in several ways to
reduce the taxes part :

1 - add new currencies (Euro, etc,...)

2 - do not charge weekly but monthly. About this, I think it is not
really logical to charge weekly. Most services charge weekly and for
example, if you use Google Adsense to pay you GAE site : Adsense
will pay monthly. Else add an option (weekly/monthly)

3 - Do not charge under a certain amount ($1 or more)

4 - Add a credit system. For example, I credit my account with 50€,
then GAE/Chekout use this money

I know that banks need money ;), but here, I think this is very bad
for users and GAE if it doesn't change and particularly for small
project from non US users.

I want too give my money to Google, not to banks :)

Regards.
--~--~-~--~~~---~--~~
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

2009-08-10 Thread Nick Johnson (Google)

Hi Blixt,

Please try removing and re-adding the mapping in Apps. This ought to
fix the problem.

-Nick Johnson

On Mon, Aug 10, 2009 at 7:24 AM, Blixtandreasbl...@gmail.com wrote:

 The same thing that happened to Gene happened to me too. I haven't
 updated my app or anything, but suddenly http://beta.multifarce.com/
 is down (Google Error - 404 Not Found - The requested URL / was not
 found on this server.) while http://multifarce.appspot.com/ works...

 Is this a temporary error or do I need to take action to fix this
 somehow?

 On Aug 9, 8:58 pm, drthink drgenejo...@gmail.com wrote:
 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.comis 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
 




-- 
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: Using data viewer to query by key

2009-08-10 Thread Nick Johnson (Google)

Hi Bemmu,


On Mon, Aug 10, 2009 at 3:39 PM, Bemmubemmu@gmail.com wrote:

 If I just know a key, how do I query by that in the admin console data
 viewer?

 My keys are people, so if I get complaints about mistakes in user
 data, it would be convenient to pull up that user's data by key. I've
 tried doing the following:

 SELECT * FROM User WHERE __key__ = 'myspace.com:472071387'

 Result is that I get a page that says Server Error - A server error
 has occurred.

 I also tried

 SELECT * FROM User WHERE __key__ = KEY('myspace.com:472071387')

 And got same error. Finally I tried

 SELECT * FROM User WHERE __key__ = KEY(myspace.com:472071387)

 And this time I got complaint of invalid GQL query. So how should I be
 doing this query or is it even possible?

None of these are keys - they are only key _names_. A key consists of
a type as well as a name or ID (and possibly the type  name/id pairs
of parent entities). In your case, you want to do something like this:

SELECT * FROM User WHERE __key__ = KEY('User', 'myspace.com:472071387')

-Nick Johnson

 




-- 
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: GAE costs more than 10 times than expected.

2009-08-10 Thread Rodrigo Moraes

On Mon, Aug 10, 2009 at 11:49 AM, Sylvain wrote:
 4 - Add a credit system. For example, I credit my account with 50€,
 then GAE/Chekout use this money

this is a sweet idea!

same thing happened to me for a while. i  also think app engine should
not charge below a certain amount, or allow us to buy credits.

-- rodrigo

--~--~-~--~~~---~--~~
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: Building index stucked

2009-08-10 Thread Nick Johnson (Google)

Hi Bryan,

I've reset your indexes again.

We are working on improving the index building system to the point
where this will no longer be an issue.

-Nick Johnson

On Mon, Aug 10, 2009 at 3:29 PM, Bryan Pendletonbpendle...@gmail.com wrote:
 It was cleared, but now I seem to have re-introduced the problem as a result
 of a poor re-shuffle of my index.yaml file.
 Is there a reason that either:
 1) More reporting than Error is not provided?
 2) Users can't be offered a self-help un-stick, perhaps limited to trying
 1x/hour or something? Or am I doing something so wrong that it should never
 happen and, thus, stick the indexes?
 --
 Bryan A. P. Pendleton


 On Mon, Aug 10, 2009 at 9:27 AM, Nick Johnson (Google)
 nick.john...@google.com wrote:

 Hi Bryan,

 Please try vacuuming and rebuilding your indexes now.

 -Nick Johnson

 On Sat, Aug 8, 2009 at 6:29 PM, Bryan Pendletonbpendle...@gmail.com
 wrote:
  My indexes are stuck, on application aquarium-bp. One index is in
  error,
  the rest are building. When I attempt to vacuum with a
  no-indexes-defined
  index.yaml file, I'm offered the opportunity to delete each, in turn.
  If I only choose yes for the Error index, I get the Deleting selected
  index definitions., but the index never disappears (and remains
  Error).
  If I say yes to delete any other indexes, I'm given the somewhat more
  confusing 2009-08-08 13:20:20,689 WARNING appcfg.py:704 An index was
  not
  deleted. Most likely this is because it no longer exists. message, and
  still nothing changes.
  I have a fairly small amount of data in my Datastore, but this broken
  application state is making it impossible for me to continue
  development/deployment of my app, which is now (further) behind
  schedule.
  Could someone from the AppEngine team take a look and maybe knock my
  indexes
  loose?
  --
  Bryan A. P. Pendleton
  Graduate Student, Carnegie Mellon Human Computer Interaction Institute
  Ph: (877) geek-1-bp
 
 
  On Thu, Jun 4, 2009 at 1:40 PM, Nick Johnson (Google)
  nick.john...@google.com wrote:
 
  Hi,
 
  I've reset your indexes to 'error' state. You can now vacuum and
  recreate
  them if you wish.
 
  -Nick Johnson
 
  On Wed, Jun 3, 2009 at 10:07 PM, mmiy...@gmail.com mmiy...@gmail.com
  wrote:
 
  Hi,
  I've got a problem while building a new index for my applicaiton.
  index.yaml is correctly uploaded but its status is stacked in
  Building for a week. Something must be wrong.
  I've tried vaccuming the index by appcfg.py but failed... I need some
  help. My application ID is codepasture-rest.
  Thanks.
 
 
 
 
 
 
 
  
 



 --
 Nick Johnson, Developer Programs Engineer, App Engine




 




-- 
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: Google App Engine Custom Domain Stopped Working

2009-08-10 Thread drthink

Nick,

I know this message was directed at me, but thought I would give it
another go.

Deleted and re-added still does the same thing.

Cheers
Gene

On Aug 10, 8:54 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Blixt,

 Please try removing and re-adding the mapping in Apps. This ought to
 fix the problem.

 -Nick Johnson



 On Mon, Aug 10, 2009 at 7:24 AM, Blixtandreasbl...@gmail.com wrote:

  The same thing that happened to Gene happened to me too. I haven't
  updated my app or anything, but suddenlyhttp://beta.multifarce.com/
  is down (Google Error - 404 Not Found - The requested URL / was not
  found on this server.) whilehttp://multifarce.appspot.com/works...

  Is this a temporary error or do I need to take action to fix this
  somehow?

  On Aug 9, 8:58 pm, drthink drgenejo...@gmail.com wrote:
  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.comisthe 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

 --
 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 -

2009-08-10 Thread niklasr

Try if you like gzipped sitemap.xml.gz approved via google webmaster
tools, Http header: Content-Type: gzip


import zlib
import gzip
import string
import os
import gzip
import StringIO
class SiteMap(webapp.RequestHandler):
  def get(self):
start = datetime.now() - timedelta (days = 91)
url = os.environ['HTTP_HOST'] if os.environ.get('HTTP_HOST') else
os.environ['SERVER_NAME']
items= Item.gql(where published = True and modified :1, start)
output =  '?xml version=1.0 encoding=UTF-8?urlset
xmlns=http://www.sitemaps.org/schemas/sitemap/0.9; '
for item in items:
output =output + 'urllochttp://%s/%s/%s/loclastmod%s/
lastmodchangefreqdaily/changefreqpriority0.8/priority/url'
%( url,item.key().id(),defaultfilters.slugify
(item.title),item.modified.date()  )
output = output + '/urlset'
self.response.headers[Content-Type] = 'gzip'
buf = compressBuf(output)
self.response.headers['Content-Length'] = str(len(output))
self.response.out.write(buf)

def compressBuf(buf):
zbuf = StringIO.StringIO()
zfile = gzip.GzipFile(None, 'wb', 9, zbuf)
zfile.write(buf)
zfile.close()
return zbuf.getvalue()

--~--~-~--~~~---~--~~
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: I can't see my registered apps :(

2009-08-10 Thread karlas

It worked, thanks Nick!

On 4 ago, 14:51, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Karlas,

 Try logging in athttp://appengine.google.com/a/karlas.org. This is
 where you need to log in to the admin console if using an Apps domain.

 -Nick Johnson

 On Mon, Aug 3, 2009 at 1:37 AM, Karlaskar...@karlas.org wrote:

  Hi everybody,

  I registered some apps succesfully (I can manage them after with app
  SDK and I can upload files, and they are working), but Ican'tsee
  them athttp://appengine.google.com/, or in My account

  Any suggestion?

  Thank you in advance

 --
 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] urllib2 and cookies in GAE environment

2009-08-10 Thread aig

Prompt please, I wish to make automatic mail check through GAE,
however the given script works on my computer but does not work in GAE
enviroment (unable to login):

#!/usr/bin/env python

import cookielib
import urllib
import urllib2

cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
urllib2.install_opener(opener)

user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
headers = { 'User-Agent' : user_agent }
values = {'Email' : 'lo...@gmail.com',
  'Passwd' : 'password',
  'PersistentCookie' : 'yes',
  'null': 'Sign in',
  'rm': 'false',
  'hl': 'en',
  'service': 'mail',
  'continue': 'https://mail.google.com/mail/h/'}

data = urllib.urlencode(values)

url = 'https://www.google.com/accounts/ServiceLoginAuth'
req = urllib2.Request(url, data, headers)

handle = urllib2.urlopen(req)

req = urllib2.Request('https://mail.google.com/mail/h/')
handle = urllib2.urlopen(req)

print 'Content-Type: text/plain'
print ''

print handle.read()

--~--~-~--~~~---~--~~
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] Error in Installing the Java SDK page

2009-08-10 Thread Dave Yost

Which is it? Do we cd to appengine-java-sdk and run
  bin/dev_appserver.sh appengine-java-sdk/demos/guestbook/war
or do we cd to the parent directory of appengine-java-sdk and run
  appengine-java-sdk/bin/dev_appserver.sh appengine-java-sdk/demos/
guestbook/war

--~--~-~--~~~---~--~~
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] Parameter Binding with Data Viewer

2009-08-10 Thread Jeff

How do you pass parameters into a GQL query with data viewer?

I'd like to say select * from abc where xdate  'some date value'
which needs to use parameter binding for the date value, right?  How?

--~--~-~--~~~---~--~~
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] Appengine Jetty Stuck at checking for update

2009-08-10 Thread abhinav

Hi,

I am using appengine sdk with eclipse. When I am using it in my office
which has a firewall and no direct access to internet it takes a long
time to start the jetty server. This is probably because of the
default update check that appengine dev app server is doing at
startup. How can I disable this from eclipse ???


--
Abhinav

--~--~-~--~~~---~--~~
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] verifying an account via SMS

2009-08-10 Thread Luiz Fernando Rodrigues
Hello,

I'm trying to create an account but my mobile provider is not supported.
I've read that I should receive the SMS confirmation anyway but I just don't
arrive.
After trying some times I'm receiving a message that to my phone number has
been sent too many messages.
Can I open an account without depending on my mobile provider?

thanks,
Luiz

--~--~-~--~~~---~--~~
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] Group search problem

2009-08-10 Thread jd

Hi,

When I search this group for transcript there are no results.  But
clearly there are results e.g.

http://groups.google.com/group/google-appengine/browse_thread/thread/ae99786ea4baee2/0c6c2fab728da13d


--~--~-~--~~~---~--~~
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] Trouble using lists in the datastore

2009-08-10 Thread Jay

Why can't I retrieve the list I stored in the code below?  Any help
would be appreciated.

from google.appengine.ext import db


class Delta(db.Model):
fdelta=db.ListProperty(float)
reckey=db.StringProperty()


def Runit():

 
#---
# retrieve the delta
delta=Delta()
deltentries = db.GqlQuery(SELECT * FROM Delta WHERE reckey=
'onlyone' )

# if entries found,  print - why is len of lists on retrieve a
0?
deltentrycnt=0

for entry in deltentries:
print type(delta.fdelta)
print ' len on retrieve=',len(delta.fdelta)
deltentrycnt=deltentrycnt+1
print 'deltentrycnt before ', deltentrycnt

# if no entries then create an entry for the delta
if deltentrycnt  == 0:

# populate a list in Delta
print ' adding a entry'
delta.reckey='onlyone'
delta.fdelta= [1.,2.,3.]
print 'len', len(delta.fdelta)
delta.put()
print 'len after put', len(delta.fdelta)



if __name__ == __main__:
Runit()

--~--~-~--~~~---~--~~
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] Problem adding App Engine to Google Apps domain

2009-08-10 Thread Brad Allison

Hello,

When I try to add my app to my Google Apps domain I get this message:
You do not have the permissions necessary to install this
application.

I have tried adding the app with my Google Account and with my Google
Apps account, both of which are developers for the app. The Google
Apps account is the domain administrator. Does anyone know what could
be happening here?

--~--~-~--~~~---~--~~
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] You do not have the permissions necessary to install this application.

2009-08-10 Thread Brad Allison

I am getting the above message when I try to add my app to Google
Apps. I've tried using my Google account and using my Google Apps
account to add the app but I still get the same message. Has anyone
seen this before? I've tried searching for the error message but
didn't come up with 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: Problem adding App Engine to Google Apps domain

2009-08-10 Thread Holger

Did you check if the name in the first line of the app.yaml file is
identical with your registred AppEngineName (the pure name only and
nothing else)?


--~--~-~--~~~---~--~~
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: Trouble using lists in the datastore

2009-08-10 Thread Holger

I think, 'deltentries' is just the query and doesn't include the
fetching process.

Add a line like:
delEntities = deltentries.fetch(1000)

as explained here:
http://code.google.com/appengine/docs/python/datastore/creatinggettinganddeletingdata.html#Deleting_an_Entity

--~--~-~--~~~---~--~~
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: Parameter Binding with Data Viewer

2009-08-10 Thread Nick Johnson (Google)

Hi Jeff,

It's not possible to pass parameters using the data viewer. Date and
Datetime arguments can be provided using the methods outlined here:
http://code.google.com/appengine/docs/python/datastore/gqlreference.html

-Nick Johnson

On Sun, Aug 9, 2009 at 8:09 PM, Jeffj...@jgyoung.com wrote:

 How do you pass parameters into a GQL query with data viewer?

 I'd like to say select * from abc where xdate  'some date value'
 which needs to use parameter binding for the date value, right?  How?

 




-- 
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: Error in Installing the Java SDK page

2009-08-10 Thread Nick Johnson (Google)

Hi Dave,

On Sun, Aug 9, 2009 at 7:01 PM, Dave Yostdaveyost...@gmail.com wrote:

 Which is it? Do we cd to appengine-java-sdk and run
  bin/dev_appserver.sh appengine-java-sdk/demos/guestbook/war
 or do we cd to the parent directory of appengine-java-sdk and run
  appengine-java-sdk/bin/dev_appserver.sh appengine-java-sdk/demos/
 guestbook/war

The latter - the argument you pass to the dev_appserver.sh script is
simply the path to your app.

-Nick Johnson


 




-- 
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: Something is wrong with CPU time calculations

2009-08-10 Thread Jeff S (Google)
Hi Mark,

The difference between the total CPU used and the datastore CPU is the cost
of running the code surrounding the datastore calls. There is also some
runtime CPU cost associated with the conversion of Python objects to and
from protocol buffers (which sent to and received from the datastore). Also,
it is quite easy to use more CPU time in a unit of wall clock time as most
datastore operations are executed on multiple machines in parallel. I hope
this helps explain the numbers you are seeing, and I'm more than happy to
explain further as I think CPU quota is something that can sometimes be
difficult to estimate.

Thank you,

Jeff

On Mon, Aug 3, 2009 at 10:04 PM, Mark Jones mark0...@gmail.com wrote:


 Oh yea, to add some other #'s
 18.5 hours CPU eaten by:
 793238 of 141241791 Datastore Calls which consumed 14.56 of 1243.85
 Datastore CPU hours
 and did so with less than
 247859 of 4320 requests

 Something does not add up.

 On Aug 3, 11:26 pm, Mark Jones mark0...@gmail.com wrote:
  I added ~ 1/4 million simple Items last night and managed to consume
  12 hours of CPU time in under 1.5 hours of wall clock time.
 
  Here is the model, below is the code.  I don't know how much simpler
  this could get.  Account and Tenant are essentially EMPTY objects
  having keys and their name in the Key field as well, but otherwise
  empty.
 
  class FlatItem(db.Model):
  account = db.ReferenceProperty(Account) populated with account
  tenant = db.ReferenceProperty(Tenant) populated with tenant
  refersto = db.SelfReferenceProperty() None
  when = db.DateTimeProperty()  populated
  amount = db.FloatProperty() populated with random value
  tax = db.FloatProperty() None
  text = db.StringProperty(multiline=True) about 420 characters (not
  sent in request)
  image = db.BlobProperty() None
 
  def post(self):
  start = datetime.now()
  account_keys = self.request.get('account_name',
  allow_multiple=True)
  added = 0
  for account_key in account_keys:
  account = Account.get_by_key_name(account_key)
  if account == None:
  self.error(404)
  self.response.out.write(Account '%s' not found %
  self.request.get('account_name'))
  return
  try:
  tenant = Tenant.get(self.request.get('tenant_key'))
  if tenant == None:
  raise db.BadKeyError
  except db.BadKeyError:
  self.error(404)
  self.response.out.write(Tenant key '%s' not
  found % self.request.get('tenant_key'))
  return
 
  when = datetime.strptime(self.request.get('when'), %Y/%m/
  %d %H:%M:%S)
 
  i = FlatItem(tenant=tenant, account=account,
  amount=random.random()*400, when=when,
   text=Flat %s blah blah blah blah..(~ 420
  characters).. blah blah blah. % account.key())
  key = i.put()
  added += 1
 
  end = datetime.now()
  s = Added %d Flat Item(s) in %d microseconds % (added, (end-
  start).microseconds,)
 
  logging.info(s)
  self.response.out.write(%sbr/a href='/flatitems/add'Add
  more flat items/a % s)
 
  Funny thing is I burned up the 12 hours I had to pay for FASTER than
  the 6.5 hours I got for free.
 


--~--~-~--~~~---~--~~
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 -

2009-08-10 Thread John_Idol

@Nick

thanks for your help.

I tried with a firefox plugin - everything seems to be coming up as
expected:

http://www.wokhei.com/sitemaps/sitemap.xml -- Contet-type: text/plain
http://www.wokhei.com/sitemaps/sitemap.xml -- Contet-type:
application/xml

With my servlet:
http://www.wokhei.com/wokhei/serveSitemap?fileType=TXT -- Contet-
type: text/plain
http://www.wokhei.com/wokhei/serveSitemap?fileType=XML-- Contet-type:
text/plain

All I get from webmaster tool is --Sitemap is HTML.

I guess it's time to move this to the webmaster tools help forum.



On Aug 10, 1:14 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 On Sun, Aug 9, 2009 at 4:43 PM, John_Idolgiovanni.id...@gmail.com wrote:

  @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

 Try using curl or wget, or the Firefox 'raw http headers' plugin to
 verify the content-type and other headers being served. For example,
 in wget, do wget -O /dev/null -Shttp://yoururl/...;. Try this on
 both your original static file and on the new servlet. If they're
 actually serving up as text/plain, you need to use the contact
 mechanisms for Sitemaps to find out what's up.

 -Nick Johnson







  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

 --
 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: Insertion Performance

2009-08-10 Thread Martyn

Thanks Nick, glad I wasn't going mad.

I have reported as issue 1962

- Martyn

On Aug 7, 4:28 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Martyn,

 The Java interface to the Memcache API, unfortunately, is noticeably
 slower than the Python version. This is the cause of the discrepancies
 you're seeing here. As always, using the batch interface to minimize
 round trips is a good idea.

 Please do file a bug, though - the discrepancy between runtimes is
 something we'd like to address.

 -Nick Johnson





 On Fri, Aug 7, 2009 at 8:58 AM, Martynmartyn.cutc...@googlemail.com wrote:

  After some more detailed logging I have isolated the problem and it is
  worrying.

  It so happens that I make several memcache requests, I had assumed
  that since I was making
  calls to the Datastore API, any delay would be due to that, but it
  turns out that around
  half the delay is due to the memcache calls.

  Specifically, I am seeing ~13ms latency for each memcache (single get/
  put/increment), and since I am
  making typically 5 calls, I am seeing ~65ms delay due to this.

  This is in contradiction with AppEngine System status that indicates
  memcache latency ~4-5ms.

  Of course, what is meant by latency vs call elapsed is a little
  ambiguous, but the figures for Datastore latency
  tie up with what I see in my request logs.

  In other words I time the api call/return and I see around the same
  figures for Datastore latency but almost three times the memcache
  latency.

  Is this a problem specific to the Java API perhaps?

  If I batch three memcache puts using putAll, I see 13ms for the three
  rather than 39ms.

  On 30 July, 19:47, Martyn martyn.cutc...@googlemail.com wrote:
  I am using the low-level Java Datastore interface and writing a
  transactional store - where each entity stores a number of data
  updates in a single Blob.
  Each transaction requires two updates, one to a Header entity, and one
  to the new transaction data entity.  Keys for each are created
  explicitly.  This has a number of advantages, specifically with regard
  to guaranteed transaction isolation and caching potential.
  However, I am disappointed with the insertion performance.  I use the
  DatastoreService put(Iterable) to invoke the two updates witha single
  API call (or rather one update and one insert), but I am seeing 120ms
  request times in the logs. The log trace confirms the delay is largely
  down to the datastore put.

  Am I missing something, or is this really the best I can hope for?
  Apart from the blob data, which is normally ~1k, a couple of debug
  properties (Date and VM hash) are included but set using
  setUnindexedProperty.

  Any help/advice appreciated.

 --
 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: Using data viewer to query by key

2009-08-10 Thread Bemmu

Thank you. Mental model adjusted.

On Aug 10, 6:02 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Bemmu,



 On Mon, Aug 10, 2009 at 3:39 PM, Bemmubemmu@gmail.com wrote:

  If I just know a key, how do I query by that in the admin console data
  viewer?

  My keys are people, so if I get complaints about mistakes in user
  data, it would be convenient to pull up that user's data by key. I've
  tried doing the following:

  SELECT * FROM User WHERE __key__ = 'myspace.com:472071387'

  Result is that I get a page that says Server Error - A server error
  has occurred.

  I also tried

  SELECT * FROM User WHERE __key__ = KEY('myspace.com:472071387')

  And got same error. Finally I tried

  SELECT * FROM User WHERE __key__ = KEY(myspace.com:472071387)

  And this time I got complaint of invalid GQL query. So how should I be
  doing this query or is it even possible?

 None of these are keys - they are only key _names_. A key consists of
 a type as well as a name or ID (and possibly the type  name/id pairs
 of parent entities). In your case, you want to do something like this:

 SELECT * FROM User WHERE __key__ = KEY('User', 'myspace.com:472071387')

 -Nick Johnson



 --
 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: GQL IS NOT NULL and LIKE queries

2009-08-10 Thread Jaap Taal
Guys,
If you want to have prefix searches, you might want to google for:
whoosh app engine. Whoosh is a lucene like indexer in pure python. Someone
has created a app engine component.
Haven't done a lot with it, but it works quite OK.

Jaap

On Sat, Aug 8, 2009 at 4:35 AM, Wooble geoffsp...@gmail.com wrote:




 On Aug 7, 12:56 pm, Hrishi bakshi.hrishik...@gmail.com wrote:
  If you are thinking of using the LIKE statement of MySQL, you should
  not be having a huge table.
 
  If you have entries in 1s, it works great.

 I've never been able to fetch anywhere close to 10,000 entities in a
 single request.  YMMV.
 


--~--~-~--~~~---~--~~
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] SMS Verification Code error

2009-08-10 Thread Baba Ganoush

Hi,

I am trying to verify my account. I entered my mobile phone and
recieved an SMS message back.
The only text in the message was an 8 digit number.

I tried using this to verify my account in the form provided, but it
only acceptes 7 characters.
Not sure, am I missing something here?

Any help appreciated

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: ListProperty vs StringListProperty

2009-08-10 Thread Jeff Enderwick

Thanks Nick. So in the case below, will the datastore then maintain an
index on alist by default?

On Mon, Aug 10, 2009 at 3:35 AM, Nick Johnson
(Google)nick.john...@google.com wrote:

 Hi Jeff,

 A StringListProperty is exactly equivalent, as far as the datastore is
 concerned, to multiple individual String properties. That is, an
 entity like this:

 MyEntity(astring=foo, alist=[foo, bar])

 is stored in the datastore analagous to this:

 ((astring, foo), (alist, foo), (alist, bar))

 -Nick Johnson

 On Sun, Aug 9, 2009 at 6:33 PM, Jeff Enderwickjeff.enderw...@gmail.com 
 wrote:

 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

 




 --
 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] SEO and Google App Engine

2009-08-10 Thread student_thesis

Hello

A big decision in moving our high volume website completely to google
app engine is to see, how does GAE handle SEO of a website.

We dont want to lose on our SEO rankings with the move.

I cant find one popular SEO website in google app engine.

I tried typing a few GAE app names in google and the app does not come
up.

So does google ever index GAE apps?

We are willing to make an investment in GAE development, if someone
can shed light on the SEO issue.

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: ListProperty vs StringListProperty

2009-08-10 Thread Nick Johnson (Google)

On Mon, Aug 10, 2009 at 7:25 PM, Jeff Enderwickjeff.enderw...@gmail.com wrote:

 Thanks Nick. So in the case below, will the datastore then maintain an
 index on alist by default?

Yes - str and unicode instances get indexed by default.

-Nick


 On Mon, Aug 10, 2009 at 3:35 AM, Nick Johnson
 (Google)nick.john...@google.com wrote:

 Hi Jeff,

 A StringListProperty is exactly equivalent, as far as the datastore is
 concerned, to multiple individual String properties. That is, an
 entity like this:

 MyEntity(astring=foo, alist=[foo, bar])

 is stored in the datastore analagous to this:

 ((astring, foo), (alist, foo), (alist, bar))

 -Nick Johnson

 On Sun, Aug 9, 2009 at 6:33 PM, Jeff Enderwickjeff.enderw...@gmail.com 
 wrote:

 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

 




 --
 Nick Johnson, Developer Programs Engineer, App Engine

 


 




-- 
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: SEO and Google App Engine

2009-08-10 Thread Nick Johnson (Google)

Hello student_thesis,

Google does not treat App Engine apps any differently to other sites
when it comes to indexing and ranking.

Note that many apps serve primarily off their own domain, not off
appspot.com - you can't tell simply by looking at the domain name if
it's being hosted by App Engine or not.

-Nick Johnson

On Mon, Aug 10, 2009 at 7:27 PM, student_thesisprakash...@gmail.com wrote:

 Hello

 A big decision in moving our high volume website completely to google
 app engine is to see, how does GAE handle SEO of a website.

 We dont want to lose on our SEO rankings with the move.

 I cant find one popular SEO website in google app engine.

 I tried typing a few GAE app names in google and the app does not come
 up.

 So does google ever index GAE apps?

 We are willing to make an investment in GAE development, if someone
 can shed light on the SEO issue.

 Thanks

 




-- 
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: SEO and Google App Engine

2009-08-10 Thread Barry Hunter

AppEngine itself is just hosting - so it doesnt really have much effect on SEO.

Dont forget that you can access a appengine app via a custom domain -
so you might not even know a site is AppEngine.


As to indexing them - yes: http://www.google.com/search?q=site:appspot.com
and a random example http://www.google.com/search?q=life+flow+charts

2009/8/10 student_thesis prakash...@gmail.com:

 Hello

 A big decision in moving our high volume website completely to google
 app engine is to see, how does GAE handle SEO of a website.

 We dont want to lose on our SEO rankings with the move.

 I cant find one popular SEO website in google app engine.

 I tried typing a few GAE app names in google and the app does not come
 up.

 So does google ever index GAE apps?

 We are willing to make an investment in GAE development, if someone
 can shed light on the SEO issue.

 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] Aug 5 Transcript?

2009-08-10 Thread dfabulich

Is there a transcript posted for the August 5, 2009 chat?

BTW, something may be wrong with the Google Group search here; when I
go to the top of this page and search the group for transcript I see
nothing, even though I know transcripts have been posted for months.
Google Web Search turns up the July 15th transcript, but not the
August 5 transcript.
--~--~-~--~~~---~--~~
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 and Google App Engine

2009-08-10 Thread Holger

This flow chart page may be a nice example:
http://infosthetics.com/archives/2008/11/life_flow_chart_community_authored_flowcharts.html

On the other hand it seems clear that Appengine still needs time and
massive investment by Google if Appengine shall become a kind of
blockbuster application earning money for Google.

To become more popular it needs a better documentation understandable
not only for experts.

To attract high traffic sites it needs far better datastore handling
with professional snapshot backups, high speed bulk data up/downloads
of the whole datastore (not only single kinds), single command high
speed deletion of whole kinds and some professional framework has to
be developed to an extend that it runs equally on Appengine as on Non-
Appengine infrastructure to guarantee the possibility not being stuck
to Google.





On Aug 10, 8:39 pm, Barry Hunter barrybhun...@googlemail.com wrote:
 AppEngine itself is just hosting - so it doesnt really have much effect on 
 SEO.

 Dont forget that you can access a appengine app via a custom domain -
 so you might not even know a site is AppEngine.

 As to indexing them - yes:http://www.google.com/search?q=site:appspot.com
 and a random examplehttp://www.google.com/search?q=life+flow+charts

 2009/8/10 student_thesis prakash...@gmail.com:



  Hello

  A big decision in moving our high volume website completely to google
  app engine is to see, how does GAE handle SEO of a website.

  We dont want to lose on our SEO rankings with the move.

  I cant find one popular SEO website in google app engine.

  I tried typing a few GAE app names in google and the app does not come
  up.

  So does google ever index GAE apps?

  We are willing to make an investment in GAE development, if someone
  can shed light on the SEO issue.

  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: Indexes stuck in building

2009-08-10 Thread Peecho

Thanks, I could vacuum them now.

However, my second attempt does not seem to do much either. I am a
Python newbie, so I fear I do something wrong...
For some reason, I see only 4 indexes 'building' in my console, while
my index.yaml actually describes 7 indexes. Does that mean some error
in the other three?

This is my index.yaml (standard Bloog - I added only one line of code
to fix the search - see note below):

indexes:

- kind: Article
  properties:
  - name: __searchable_text_index
  - name: published
direction: desc

- kind: Article
  properties:
  - name: article_type
  - name: published
direction: desc

- kind: Article
  properties:
  - name: article_type
  - name: title

- kind: Article
  properties:
  - name: display_type
  - name: published
direction: desc

- kind: Article
  properties:
  - name: published
direction: desc

- kind: Article
  properties:
  - name: tags
  - name: published
direction: desc

- kind: Comment
  properties:
  - name: article
  - name: thread

Note: I added the following line in def _ToPb (search.py) at line
number 270:

prop.set_multiple(len(keywords)  1)

Does this compromise the indexes, you think?

Thanks again!

Sander
On Aug 10, 2:59 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 HiPeecho,

 I've moved your indexes to 'error'. Try vacuuming them now.

 -Nick Johnson

 On Sat, Aug 8, 2009 at 2:48 PM,Peechosan...@peecho.com wrote:

  Hi,
  My indexes seem stuck in Building for over 4 days now. I tried to
  vacuum them but alas. Could anybody help me out, please?
  My app's name is peechotest.

  Thanks!

 --
 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] Custom Domain Shows TEST rather than correct domain.

2009-08-10 Thread drthink

I operate a domain called www.sohoappspot.com which points to
sohosched.appspot.com.

I haven't changed the application in months but last week it stopped
working.

I tried deleting and re-adding the app to the Manage this Domain
section of sohoappspot.com (A google apps domain).

I have tried re-adding the url mapping to the url mapping section.

Still on luck.  Until recently sohosched.appspot.com was working but
now that is showing a 404 error.

This has been a problem for over a week and is causing me some concern
about my adoption of this technology.

Cheers
Gene
--~--~-~--~~~---~--~~
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: Custom Domain Shows TEST rather than correct domain.

2009-08-10 Thread Nick Johnson (Google)

Hi drthink,

Sorry for the delay in responding. We've been working on your issue.

www.sohoappspot.com should now be serving your app as normal. I'll
look into the 404 error you're seeing on the appspot domain - though I
presume it's less critical as long as your custom domain is serving
correctly?

-Nick Johnson

On Mon, Aug 10, 2009 at 9:23 PM, drthinkdrgenejo...@gmail.com wrote:

 I operate a domain called www.sohoappspot.com which points to
 sohosched.appspot.com.

 I haven't changed the application in months but last week it stopped
 working.

 I tried deleting and re-adding the app to the Manage this Domain
 section of sohoappspot.com (A google apps domain).

 I have tried re-adding the url mapping to the url mapping section.

 Still on luck.  Until recently sohosched.appspot.com was working but
 now that is showing a 404 error.

 This has been a problem for over a week and is causing me some concern
 about my adoption of this technology.

 Cheers
 Gene
 




-- 
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: Catching database error

2009-08-10 Thread Jeff S (Google)
Hi John,

Tracking down the exact exception is a bit tricky in this case as in this
stack trace apiproxy_rpc re-raises whatever exception is sent it's way. I
would guess that the particular Error class is originating from
google/appengine/api/datastore_errors.py but to configm you could catch the
exception e and log or display type(e).

Cheers,

Jeff

On Tue, Aug 4, 2009 at 1:54 PM, johnP j...@thinkwave.com wrote:


 What specifically should I be catching in order to properly handle the
 following item that appears in my stacktrace?  Where do I import this
 exception (Error) from?  This error occurs intermittently.


  Error: An error occurred for the API request
 datastore_v3.RunQuery().


 The full stacktrace is:

  File /base/python_lib/versions/1/google/appengine/ext/db/
 __init__.py, line 1382, in get
results = self.fetch(1)
  File /base/python_lib/versions/1/google/appengine/ext/db/
 __init__.py, line 1426, in fetch
raw = self._get_query().Get(limit, offset)
  File /base/python_lib/versions/1/google/appengine/api/
 datastore.py, line 959, in Get
return self._Run(limit, offset)._Get(limit)
  File /base/python_lib/versions/1/google/appengine/api/
 datastore.py, line 900, in _Run
apiproxy_stub_map.MakeSyncCall('datastore_v3', 'RunQuery', pb,
 result)
  File /base/python_lib/versions/1/google/appengine/api/
 apiproxy_stub_map.py, line 72, in MakeSyncCall
apiproxy.MakeSyncCall(service, call, request, response)
  File /base/python_lib/versions/1/google/appengine/api/
 apiproxy_stub_map.py, line 244, in MakeSyncCall
stub.MakeSyncCall(service, call, request, response)
  File /base/data/home/apps/tw3/16.335384870848503913/twa/
 datastore_cache.py, line 66, in MakeSyncCall
self.CallWrappedStub(call, request, response)
  File /base/data/home/apps/tw3/16.335384870848503913/twa/
 datastore_cache.py, line 54, in CallWrappedStub
self._wrapped_stub.MakeSyncCall(self.SERVICE_NAME, call, request,
 response)
  File /base/python_lib/versions/1/google/appengine/runtime/
 apiproxy.py, line 183, in MakeSyncCall
rpc.CheckSuccess()
  File /base/python_lib/versions/1/google/appengine/api/
 apiproxy_rpc.py, line 110, in CheckSuccess
raise self.exception
 Error: An error occurred for the API request datastore_v3.RunQuery().
 


--~--~-~--~~~---~--~~
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: dataviewer complication

2009-08-10 Thread Jeff S (Google)
Hi Nick,

I'd like to know a bit more about this. Could you provide the app ID and
also the error message which the admin console provides for your third
query?

Thank you,

Jeff

On Thu, Aug 6, 2009 at 4:19 AM, niklasr nik...@montao.com.br wrote:


 Hello
 Recently there were results I can't understand from the dataviewer
 console:
 SELECT * FROM Article order by added desc
 #The above works to view entities
 SELECT * FROM Article where published=True
 #The above works to view lists entities
 The following however generates a server error
 SELECT * FROM Article where published=True order by added desc
 #Server Error
 It happens with 2 independent applications. The queries used to work.
 Please inform what could be the case.
 Thank you
 ___
 NickRTZ
 


--~--~-~--~~~---~--~~
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 Performance

2009-08-10 Thread Jeff S (Google)
Hi Martyn,

Nick has chimed in on the question in the following thread:

http://groups.google.com/group/google-appengine/browse_thread/thread/5c9b5ecc25499250

Thank you,

Jeff

On Thu, Aug 6, 2009 at 5:23 AM, Martyn martyn.cutc...@googlemail.comwrote:


 .h...

 checking the AppEngine status Latency figures...

 I note that Datastore best Put latency is ~60ms but frequently over
 80ms, which is what I see in my performance tests.

 However, the memcache latency is reported at ~5ms, which is definitely
 NOT what I see, I am experiencing almost three times that.


 On 6 Aug, 10:08, Martyn martyn.cutc...@googlemail.com wrote:
  This is from a Google Code resource:
 
  Memcache is a distributed RAM cache in which you can store transient
  data using a key-value model. Writes to memcache never touch the disk
  and are approximately 10 times faster in comparison to writes to the
  datastore. Also, direct gets to memcache are approximately five times
  faster than a get request to the datastore.
 
  I am not finding this, specifically, a batch write of 2 2K Blob
  entities takes  60ms
 
  Let's assume the worst case that a single Blob put would take 60ms
 
  A memcache put is taking around 13ms which is definitely not one tenth
  the time.
  A memcache get is also taking the same 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] Redistributing the GAE SDK

2009-08-10 Thread Perica Zivkovic

Hi there,

what are the licensing terms about redistributing the SDK. I would
like to include it in my Python distribution (http://
www.PortablePython.com) and I was wondering is that allowed and under
what conditions.

cheers

Perica

--~--~-~--~~~---~--~~
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: Indexes stuck in building status

2009-08-10 Thread Jeff S (Google)
Hi Tom,

I've errored out these indexes for you, so you can now vacuum and recreate.
If my memory serves me correctly, I've reset these before and I'm wondering
if there is something in your usual upload procedure which is triggering the
stuck indexes issue. Could you describe the process you use when uploading
your app or your indexes?

Thank you,

Jeff

On Thu, Aug 6, 2009 at 5:10 AM, Tom Wu service.g2...@gmail.com wrote:

 My apps id are blitzg2100, cccwikig2100, djangog2100, g2100.


 Best Regards
 Tom Wu

 


--~--~-~--~~~---~--~~
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: Redistributing the GAE SDK

2009-08-10 Thread Rodrigo Moraes

On Mon, Aug 10, 2009 at 3:53 PM, Perica Zivkovic wrote:
 what are the licensing terms about redistributing the SDK. I would
 like to include it in my Python distribution (http://
 www.PortablePython.com) and I was wondering is that allowed and under
 what conditions.

The SDK is released under a strict Apache 2 License:
http://code.google.com/p/googleappengine/

So I guess it'd be ok to redistribute it.

-- rodrigo

--~--~-~--~~~---~--~~
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] Get data based on Key Name

2009-08-10 Thread Ste

Hi,

I'm a total newbie to App Engine, and to web apps in general, with a
background in front end web design.

Anyway, I've worked through the (python) Getting Started guide, and
it makes sense. Now I'm trying to change small bits and pieces to
better my understanding.

For instance, I'm now using a descriptive primary key for the
datastore by providing a user-submitted Key Name:

greeting = Greeting(key_name=%s % self.request.get('ID'))

This works fine.

However, I'm at a loss as to how to get a row back out of the
datastore by using its Key Name. What variable should I include in my
GQL, or am I missing the point?

Many thanks, and excuse my ignorance,
Stephen

--~--~-~--~~~---~--~~
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: Error deploying sample app

2009-08-10 Thread Jeff S (Google)
Hi Kashif,

It looks like this might be an issue with DNS or some part of the network.
Are you behind a proxy?

Thank you,

Jeff

On Thu, Aug 6, 2009 at 9:53 AM, Kashif alam.kas...@gmail.com wrote:


 All, I am running into the following error when running appcfg.py
 update command - any guidance will be appreciated

 G:\GAEg:\Program Files (x86)\Google\google_appengine\appcfg.py
 update helloworld/
 Scanning files on local disk.
 Initiating update.
 Email: x...@gmail.com
 Password for x...@gmail.com:
 2009-08-06 09:48:47,328 ERROR appcfg.py:1272 An unexpected error
 occurred. Abort
 ing.
 Traceback (most recent call last):
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pcfg.py, line 1250, in DoUpload
missing_files = self.Begin()
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pcfg.py, line 1045, in Begin
version=self.version, payload=self.config.ToYAML())
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pengine_rpc.py, line 356, in Send
self._Authenticate()
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pengine_rpc.py, line 391, in _Authenticate
super(HttpRpcServer, self)._Authenticate()
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pengine_rpc.py, line 271, in _Authenticate
auth_token = self._GetAuthToken(credentials[0], credentials[1])
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pengine_rpc.py, line 214, in _GetAuthToken
response = self.opener.open(req)
  File G:\Python25\lib\urllib2.py, line 381, in open
response = self._open(req, data)
  File G:\Python25\lib\urllib2.py, line 399, in _open
'_open', req)
  File G:\Python25\lib\urllib2.py, line 360, in _call_chain
result = func(*args)
  File G:\Python25\lib\urllib2.py, line 1115, in https_open
return self.do_open(httplib.HTTPSConnection, req)
  File G:\Python25\lib\urllib2.py, line 1082, in do_open
raise URLError(err)
 URLError: urlopen error (11004, 'getaddrinfo failed')
 Traceback (most recent call last):
  File G:\Program Files (x86)\Google\google_appengine\appcfg.py,
 line 60, in 
 module
run_file(__file__, globals())
  File G:\Program Files (x86)\Google\google_appengine\appcfg.py,
 line 57, in r
 un_file
execfile(script_path, globals_)
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pcfg.py, line 2303, in module
main(sys.argv)
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pcfg.py, line 2294, in main
result = AppCfgApp(argv).Run()
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pcfg.py, line 1458, in Run
self.action(self)
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pcfg.py, line 2182, in __call__
return method()
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pcfg.py, line 1730, in Update
lambda path: open(os.path.join(basepath, path), 'rb'))
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pcfg.py, line 1250, in DoUpload
missing_files = self.Begin()
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pcfg.py, line 1045, in Begin
version=self.version, payload=self.config.ToYAML())
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pengine_rpc.py, line 356, in Send
self._Authenticate()
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pengine_rpc.py, line 391, in _Authenticate
super(HttpRpcServer, self)._Authenticate()
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pengine_rpc.py, line 271, in _Authenticate
auth_token = self._GetAuthToken(credentials[0], credentials[1])
  File G:\Program Files (x86)\Google\google_appengine\google\appengine
 \tools\ap
 pengine_rpc.py, line 214, in _GetAuthToken
response = self.opener.open(req)
  File G:\Python25\lib\urllib2.py, line 381, in open
response = self._open(req, data)
  File G:\Python25\lib\urllib2.py, line 399, in _open
'_open', req)
  File G:\Python25\lib\urllib2.py, line 360, in _call_chain
result = func(*args)
  File G:\Python25\lib\urllib2.py, line 1115, in https_open
return self.do_open(httplib.HTTPSConnection, req)
  File G:\Python25\lib\urllib2.py, line 1082, in do_open
raise URLError(err)
 urllib2.URLError: urlopen error (11004, 'getaddrinfo failed')

 


--~--~-~--~~~---~--~~
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 

[google-appengine] PDF Generation

2009-08-10 Thread rong...@gmail.com

I am trying to generate PDF-file with Google App Engine. I heard that
iText is not supported.

Is there a way to use iText on GAE ?
Otherwise, do you know a way to generate PDF with GAE ?

Thanks in advance,

Clément

--~--~-~--~~~---~--~~
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] java.rmi.server.UID error

2009-08-10 Thread Icarus

Hi,

 While using the Jena Semantic Framework for extracting RDF based
data, I come across the following error on GAE :

Uncaught exception from servlet
java.lang.NoClassDefFoundError: java.rmi.server.UID is a restricted
class. Please see the Google App Engine developer's guide for more
details.
at
com.google.apphosting.runtime.security.shared.stub.java.rmi.server.UID.clinit
(UID.java)
at com.hp.hpl.jena.rdf.model.AnonId.init(AnonId.java:78)
at com.hp.hpl.jena.rdf.model.AnonId.create(AnonId.java:60)
at com.hp.hpl.jena.graph.Node.createAnon(Node.java:45)
at com.hp.hpl.jena.rdf.arp.JenaReader.convert(JenaReader.java:116)
at com.hp.hpl.jena.rdf.arp.JenaReader.convert(JenaReader.java:128)
at com.hp.hpl.jena.rdf.arp.JenaHandler.statement(JenaHandler.java:73)
at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.triple(XMLHandler.java:
100)
at com.hp.hpl.jena.rdf.arp.impl.ParserSupport.triple
(ParserSupport.java:240)
at com.hp.hpl.jena.rdf.arp.states.WantPropertyElement.aPredAndObj
(WantPropertyElement.java:187)
at com.hp.hpl.jena.rdf.arp.states.Frame.processPropertyAttributes
(Frame.java:112)
at com.hp.hpl.jena.rdf.arp.states.WantPropertyElement.startElement
(WantPropertyElement.java:116)
at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.startElement
(XMLHandler.java:137)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(Unknown Source)
at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement
(Unknown Source)
at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:
107)
at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:158)
at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:145)
at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:215)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:188)

This runs in dev mode on my local machine but gives problem from the
deployment on GAE server.

Any suggestions would be highly appreciated.

-Ic

--~--~-~--~~~---~--~~
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: Struts 2 action as welcome-file

2009-08-10 Thread Jeff S (Google)
Hi Ben,

Could we see your web.xml file? It should be possible to map the welcome
file to /. Is there another mapping above the welcome files declaration
which could be intercepting requests to /?

Thank you,

Jeff

On Thu, Aug 6, 2009 at 11:51 AM, benmccann benjamin.j.mcc...@gmail.comwrote:


 Hi,
 I'd like to set a Struts 2 action as my homepage.  I tried doing this
 with the welcome-file tag in web.xml, but couldn't get it to work.
 The best I could do was point welcome-file to an html page that
 redirected to the action.  However, this is quite different than what
 I actually want.  If the user visits myapp.appspot.com I want them to
 see that URL in their browser and bookmark that URL.  I do not want to
 be forced to redirect them to myapp.appspot.com/Struts2Action.action
 Is there any way to accomplish this?

 Thanks,
 Ben

 


--~--~-~--~~~---~--~~
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: Need Index Quota Reset

2009-08-10 Thread Jeff S (Google)
You should be all set. Cheers, Jeff

On Thu, Aug 6, 2009 at 7:34 AM, Devel63 danstic...@gmail.com wrote:


 Need Index Quota rest on lifehints-beta.  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: Weird Quotas Error

2009-08-10 Thread Jon McAlister

Workaround documented at
http://code.google.com/p/googleappengine/issues/detail?id=744.
Apologies for the confusion.

On Mon, Jul 20, 2009 at 7:07 AM, Federico
Builesfederico.bui...@gmail.com wrote:



 On Jul 19, 4:24 pm, Federico Builes federico.bui...@gmail.com wrote:
 When I log into my dashboard I find the following error message:
    Your application is exceeding a quota: App Config Service Config
 App Call Count

 And when trying to update I get:

    HTTPError: HTTP Error 403: Forbidden
    Rolling back the update.
    Error 403: --- begin server output ---
    The application already has the maximum number of versions.

 My current number of versions showing in the dashboard is 4.

 This was apparently solved when the quotas reset today, but it'd still
 like to know what happened. According to some posts online it might be
 related to the number of updates pushed in a day, but I was still
 around 140, well below the 250 limit.  Is there another limit I don't
 know about?

 --
 Federico
 


--~--~-~--~~~---~--~~
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: Server Error,please help me

2009-08-10 Thread Jon McAlister

Workaround documented at
http://code.google.com/p/googleappengine/issues/detail?id=744.
Apologies for the confusion.

On Mon, Jul 20, 2009 at 7:36 PM, Benbhym...@gmail.com wrote:

 This usually means you have too many versions in the management
 console.  try deleting some of the versions you have in Administration
 Versions.

 On Jul 18, 11:39 am, TaoGOGO yuntaotian...@gmail.com wrote:
 today i update my gae file,and some error happened so i roolback.
 but after roolback about 6 times ,server error happend!
 i can;t update my data,can not upload file,and i when i contol it as a
 user in appengine.google.com, Server Error display!!!
 what happend ,and how to solve the problom?

 the appcfg.py say i have too many versons,but i only upload one!
 


--~--~-~--~~~---~--~~
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: Too many Versions (403)

2009-08-10 Thread Jon McAlister

Workaround documented at
http://code.google.com/p/googleappengine/issues/detail?id=744.
Apologies for the confusion.

On Tue, Jul 21, 2009 at 3:48 PM, Jeremy Truaxtrup...@gmail.com wrote:

 Here's the issue about it: 
 http://code.google.com/p/googleappengine/issues/detail?id=744

 I still am unable to get this working even with the workarounds people
 have mentioned =/

 On Jul 21, 2:49 pm, Jeremy Truax trup...@gmail.com wrote:
 I'm having the same problem. Only one version and my Daily quota of
 Deployments is at a mere 12% utilization for the day. =/

 On Jul 20, 11:05 am, Paul webtab...@gmail.com wrote:

  X-No-Archive: yes

  After ~100 updates without changing the version string AppEngine
  suddenly
  tells me:

   The application already has the maximum number of versions.

  Rollback or upload with other version-string did not help, the only
  version
  cant be deleted, no quote messages, after 3 days still the same.

  App-ID: w e b t a b l e t

  thanks
  Paul
 


--~--~-~--~~~---~--~~
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: Getting 403 over quota errors but dashboard all green

2009-08-10 Thread Jon McAlister

Workaround documented at
http://code.google.com/p/googleappengine/issues/detail?id=744.
Apologies for the confusion.

On Fri, May 29, 2009 at 12:12 AM,
bwh...@dappervision.come133tc1p...@gmail.com wrote:

 Was at version 1 (only version) and version 2 didn't fix it but
 version 3 did the trick!  Odd, seems to be related to
 http://code.google.com/p/googleappengine/issues/detail?id=690

 On May 28, 11:58 pm, bwh...@dappervision.com e133tc1p...@gmail.com
 wrote:
 These are the quotas shown (note that they are on the dashboard, the
 quota page says everything is great).
 Your application is exceeding a quota: App Config Service Delete App
 Version Call Count
 Your application is exceeding a quota: App Config Service Config App
 Call Count 
 I am only using 1 version for this app so the version call count is
 odd.  Also the message changes regularly from 403's to 500's.

 On May 28, 11:26 pm, bwh...@dappervision.com e133tc1p...@gmail.com
 wrote:



  Same on mosai    no space  caserv3.appspot.com
  Too Many Versions (403)
  The application already has the maximum number of versions.  Also with
  billing and I also need my app to work.  Hope this gets fixed soon.

  On May 28, 8:36 pm, Jim jdeib...@gmail.com wrote:

   My app (linkscocom.appspot.com) is getting mostly 403 errors but the
   dashboard shows 15% on CPU, 3% on incoming, 4% on outgoing and nothing
   much on the others.

   I do have billing enabled.

   There's absolutely nothing that I can see that should be causing a
   problem.

   I need my app to work.   Suggestions on how to get somebody from
   Google to look at the situation?

   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: Too many versions!?!?

2009-08-10 Thread Jon McAlister

Workaround documented at
http://code.google.com/p/googleappengine/issues/detail?id=744.
Apologies for the confusion.

On Fri, Jun 26, 2009 at 9:11 PM, Stephen Mayerstephen.ma...@gmail.com wrote:

 How many deployments are you currently using?  If you delete a few old
 ones it will probably let you add a new one.  Or you could overwrite
 an old version and then deploy under that version since it probably
 takes some time before your quota resets once you reach the max number
 of versions.  See the Deployments in your Quota Details in AppEngine
 Control Panel.

 Hope that helps!
 Stephen

 On Jun 26, 7:29 pm, manuelaraoz manuelar...@gmail.com wrote:
 PLEASE HELP
 this is urgent

 when trying to deploy, I get this error message:

 Rolling back the update.
 Error 403: --- begin server output ---

 Too Many Versions (403)
 The application already has the maximum number of versions.
 --- end server output ---

 WHAT DOES THAT MEAN

 I really need to deploy today, it's urgent
 please please please someone help me

 I've tried deleting old versions of my app and deploying a new one
 (changing version id)
 but nothing...

 I'm getting desperate!!! I REALLY HAVE TO DEPLOY TODAY
 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: Too Many Versions

2009-08-10 Thread Jon McAlister

Workaround documented at
http://code.google.com/p/googleappengine/issues/detail?id=744.
Apologies for the confusion.

On Tue, Jul 21, 2009 at 3:54 PM, Jeremy Truaxtrup...@gmail.com wrote:

 The issue for this is here: 
 http://code.google.com/p/googleappengine/issues/detail?id=744

 I'm having the same issue. I get an error Too Many Versions when I
 try to appcfg.py update.

 I've tried rollback as well as incrementing the version number in my
 app.yaml with no resolution.

 I'm on version 1 still so I don't have the option of changing to
 another version to try it as the default version is 1 and you cannot
 delete the default version.

 My daily upload quota is still at 30 of 250 for the day so it's not
 like that's even maxed.


 On Jul 13, 10:35 am, Matthew Blain matthew.bl...@google.com wrote:
 Typically this means an internal error occurred at some point when you
 deployed your application, and the fix is usually to go to the
 'Versions' section of the admin console and set the default version to
 something/something else, then upload again.

 --Matthew

 On Jul 13, 7:31 am, Ilya i...@labpixies.com wrote:

  Hi!

  I'm trying to update my app, but get TooManyVersions(403) error.
  My deployments quota is 125 (out of 250).
  I tried to change the version in app.yaml - same result
  My app id: labpixiesfacebook

  Please 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: Too Many Versions (403)

2009-08-10 Thread Jon McAlister

Workaround documented at
http://code.google.com/p/googleappengine/issues/detail?id=744.
Apologies for the confusion.

On Tue, Jul 28, 2009 at 5:48 PM, TaoGOGOyuntaotian...@gmail.com wrote:

 thanks! my app had got to nomal,i wait and change it 1 to 1,(1 is not
 the default in my app).

 On 7月24日, 下午1时40分, Philippe philippe.cr...@gmail.com wrote:
 this time, I could solve doing:
 1- change the default version 
 fromhttp://appengine.google.com/deployment?app_id=
 I had 2 version (I always use n°1, so i switched to n°2)
 2- upload the version I wanted tu upload (n°1)
 it worked :)
 3- change the default back to n°1

 On Jul 24, 9:27 am, Philippe philippe.cr...@gmail.com wrote:



  Hi TaoGOGO,

  I can not help you, last time, I had to wait 2 or 3 days, and then,
  everything worked normally.

  and since yesterday, it happened again.
  here is my app ID : dicoillico

  Yesterday, I had a message on my App Version Call quota and my App API
  Call quota. (but everything was green in the quotadetails)
  Today (after 24hours reset), no more messages, everything green, but
  still appcfg.py update get a 403 error.

  I hope AppEngine team can solve that.

  Philippe

  On Jul 22, 12:53 am, Jeremy Truax trup...@gmail.com wrote:

   The issue for this is 
   here:http://code.google.com/p/googleappengine/issues/detail?id=744

   I'm having the same issue. I get an error Too Many Versions when I
   try to appcfg.py update.

   I've tried rollback as well as incrementing the version number in my
   app.yaml with no resolution.

   I'm on version 1 still. My daily upload quota is still at 30 of 250
   for the day so it's not like that's even maxed.

   On Jul 18, 10:38 pm, TaoGOGO yuntaotian...@gmail.com wrote:

have you solve the problems?it happened to me the same?:(
can you help me?

On 6月13日, 下午3时00分,Philippephilippe.cr...@gmail.com wrote:

 Hi,

 I got this error for 1 hours now :TooManyVersions(403)
 My quota stuff is green.
 I have only 1 version of my app.
 I tried making a new version, but it did not upload anything.

 I hope someone can help.
 here is the full error message:

 Deploying new version.
 2009-06-13 08:44:11,328 ERROR appcfg.py:1241 An unexpected error
 occurred. Aborting.
 Traceback (most recent call last):
 File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appcfg.py, line 1234, in DoUpload self.Commit()
 File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appcfg.py, line 1106, in Commit self.Deploy()
 File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appcfg.py, line 1134, in Deploy version=self.version)
 File C:\Program Files\Google\google_appengine\google\appengine\tools
 \appengine_rpc.py, line 344, in Send f = self.opener.open(req)
 File C:\python25\lib\urllib2.py, line 387, in open response = meth
 (req, response)
 File C:\python25\lib\urllib2.py, line 498, in http_response 'http',
 request, response, code, msg, hdrs)
 File C:\python25\lib\urllib2.py, line 425, in error return
 self._call_chain(*args)
 File C:\python25\lib\urllib2.py, line 360, in _call_chain result =
 func(*args)
 File C:\python25\lib\urllib2.py, line 506, in http_error_default
 raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
 HTTPError: HTTP Error 403: Forbidden
 Rolling back the update.
 Error 403: --- begin server output ---

TooManyVersions(403)
 The application already has themaximumnumberofversions.
 --- end server output ---

 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Too Many Versions (403)

2009-08-10 Thread Jon McAlister

Workaround documented at
http://code.google.com/p/googleappengine/issues/detail?id=744.
Apologies for the confusion.

2009/8/3 besook.com bes...@gmail.com:

 我也有相同的问题.不知道怎么解决

 I had thit problem too, anyone help me?

 On Jul 24, 6:08 pm, Euan Adie euan.a...@gmail.com wrote:
 This is affecting me too. I've only got one version listed in the
 application dashboard.

 On Jul 21, 11:02 pm, Jeremy Truax trup...@gmail.com wrote:



  Note It seems to be an old issue but not resolved:

 http://code.google.com/p/googleappengine/issues/detail?id=690

  On Jul 21, 2:44 pm, Jeremy Truax trup...@gmail.com wrote:

   Crap I just got that, it's been working fine before that today.

   I did notice they changed some quota stuff as of tomorrow, I think but
   it doesn't say anything about a limited number ofversions.

   On Jul 19, 2:33 am, j...@zenkraft.com ja...@zenkraft.com wrote:

Yes, I just hit thistoo:

Error 403:  begin server output ---

   TooManyVersions(403)
The applicationalreadyhasthemaximumnumber ofversions.
--- end server output ---

On Jul 19, 6:33 am, TaoGOGO yuntaotian...@gmail.com wrote:

 have you solve the problems?it happened to me the same?:(
 can you help me?

 On 6月26日, 下午3时04分, dannyr danny...@gmail.com wrote:

  I'm getting the following error. I only have 1 version of the app.
  According to Quota Details, my Deployments are only 28 of 250 
  (11%).
  My application name is 'launchset'.

  Deploying new version.
  2009-06-25 23:50:52,071 ERROR appcfg.py:1241 An unexpected error
  occurred. Abort
  ing.
  Traceback (most recent call last):
File C:\Program 
  Files\Google\google_appengine\google\appengine\tools
  \appcfg.p
  y, line 1234, in DoUpload
  self.Commit()
File C:\Program 
  Files\Google\google_appengine\google\appengine\tools
  \appcfg.p
  y, line 1106, in Commit
  self.Deploy()
File C:\Program 
  Files\Google\google_appengine\google\appengine\tools
  \appcfg.p
  y, line 1134, in Deploy
  version=self.version)
File C:\Program 
  Files\Google\google_appengine\google\appengine\tools
  \appengin
  e_rpc.py, line 344, in Send
  f = self.opener.open(req)
File C:\Python25\lib\urllib2.py, line 387, in open
  response = meth(req, response)
File C:\Python25\lib\urllib2.py, line 498, in http_response
  'http', request, response, code, msg, hdrs)
File C:\Python25\lib\urllib2.py, line 425, in error
  return self._call_chain(*args)
File C:\Python25\lib\urllib2.py, line 360, in _call_chain
  result = func(*args)
File C:\Python25\lib\urllib2.py, line 506, in 
  http_error_default
  raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
  HTTPError: HTTP Error 403: Forbidden
  Rolling back the update.
  Error 403: --- begin server output ---

 TooManyVersions(403)
  The applicationalreadyhasthemaximumnumberofversions.
  --- end server output ---

 


--~--~-~--~~~---~--~~
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: Rest server: user-group access

2009-08-10 Thread Jeff S (Google)
Yes, what you are describing sounds like Access Control Lists (ACLs) and it
is possible to check within your code to see if the current user has
necessary permissions before carrying out an action. I'm not familiar with
the rest server module that you are using but there might be something in it
already which provides ACLs. If not, you can roll your own by adding a list
(or lists) of authorized users to an entity, or you could create groupings
for users (roles) and each entity could have a list of authorized roles.
There are quite a few design possibilities, some designs call require more
complex ACL implementations than others. Is sharing mostly on a per user
basis or are there identifiable types of users (admins, editors, readers,
etc.)?

Thank you,

Jeff

On Thu, Aug 6, 2009 at 8:39 PM, epb esbenbu...@gmail.com wrote:


 Hi

 I am using the app engine rest server module to access different
 instances of a datamodel on my GAE app. Login is required on the app
 but I would like the system to use instance-wise authentication so
 that only a specific set of users A (and not all users) has access to
 a specific datamodel instance B via the rest server interface. Fx. the
 datamodel instance with key 1234 can only be accessed by a specfic set
 of users via http://myapp.com/rest/DATAMODELNAME/1234, both with HTTP
 GET and POST/PUT. Can this be done?
 


--~--~-~--~~~---~--~~
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 - how much space?

2009-08-10 Thread Jeff S (Google)
Hi Taylor,

The overall memcache size limit is not set in stone so we usually don't give
a hard number as whatever I say might soon be out of date. I recommend using
as you need it because if your app goes over it's allotment, then the
less-used data is evicted.

Thank you,

Jeff


On Thu, Aug 6, 2009 at 1:57 PM, taylorbarstow taylorbars...@gmail.comwrote:


 Hi all,

 I assume that each application has an upper limit on how much cache
 space it is allowed to occupy.  Does anyone know if this is correct?
 And if so, what is the limit on cache space?

 I'm sorry if this is covered elsewhere -- I have looked extensively
 but haven't found anything.

 Many thanks,
 Taylor

 


--~--~-~--~~~---~--~~
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 cross entity groups

2009-08-10 Thread Jeff S (Google)
Hi Cornel,

I recall a session at Google I/O from Daniel Wilkerson which describes this
scenario and an approach for solving it:

http://code.google.com/events/io/sessions/DesignDistributedTransactionLayerAppEngine.html

The above describes an implementation which does not require A and B to be
in the same entity group or have changes execute withing a single
transaction.

Thank you,

Jeff



On Fri, Aug 7, 2009 at 5:37 AM, Cornel corneliu.lupu...@gmail.com wrote:


 (I've posted this message one day ago but it did not appear on the
 group discussion list, so i will post it again. Hope i am not spamming
 or anything)


 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: Is there a per-page quota?

2009-08-10 Thread Jeff S (Google)
Hi Neal,

There used to be. There was a hard limit on the CPU used per request (with a
limited number of requests allowed to go over). This limit has been removed
but the warnings remain as an indication of which of your request handlers
are generally more expensive than others.

http://googleappengine.blogspot.com/2009/02/skys-almost-limit-high-cpu-is-no-more.html

Thank you,

Jeff

On Fri, Aug 7, 2009 at 11:08 AM, NealWalters nealwalt...@nealwalters.comwrote:


 On my appspot dashboard, under Current Load I have a few yellow
 yield signs.  The hover-over tool-tip says This URI uses a high
 amount of CPU and may soon exceed its quota.  Does that mean there is
 some limit per page?

 Thanks,
 Neal

 


--~--~-~--~~~---~--~~
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: appengine / android integration

2009-08-10 Thread Jeff S (Google)
Hi Earl,

If you are able to prompt the user for their Google Account credentials (not
sure what is allowed in applicable terms of service agreements), then you
can forgo the browser and obtain a token using client login.

http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html

This is the approach used by appcfg. I describe an example in Python here:

http://code.google.com/p/scud-cms/source/browse/trunk/app_engine_http/http.py#239

Happy coding,

Jeff



On Sat, Aug 8, 2009 at 4:02 PM, spackest cahi...@gmail.com wrote:


 Howdy,

 I want to write an android app and store the data in app engine.  Just
 wondering if there are easy ways to do this.  Would be nice if
 google.appengine.api.users was available in android.

 For now, I plan on bouncing to my site via the browser and getting
 cookies back which I could use in android.

 Thoughts?

 Thanks,
 Earl

 


--~--~-~--~~~---~--~~
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: Session Token without current user?

2009-08-10 Thread Jeff S (Google)
Hi Dave,

On Sun, Aug 9, 2009 at 9:05 AM, Dave dabo...@gmail.com wrote:


 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?


Yes, that is the approach I recommend. I included the elif check in the same
code because for whatever reason you may decide to not require users to sign
in. Perhaps you are using your own accounts system in the app (which would
require modifying the sample quite a bit) instead of using Google Accounts.

Thank you,

Jeff




 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: Catching database error

2009-08-10 Thread johnP

Thanks for following up.  In my particular case, the solution is to
import

from google.appengine.runtime import apiproxy_errors

and catching

apiproxy_errors.Error:

johnP



On Aug 10, 2:23 pm, Jeff S (Google) j...@google.com wrote:
 Hi John,

 Tracking down the exact exception is a bit tricky in this case as in this
 stack trace apiproxy_rpc re-raises whatever exception is sent it's way. I
 would guess that the particular Error class is originating from
 google/appengine/api/datastore_errors.py but to configm you could catch the
 exception e and log or display type(e).

 Cheers,

 Jeff

 On Tue, Aug 4, 2009 at 1:54 PM, johnP j...@thinkwave.com wrote:

  What specifically should I be catching in order to properly handle the
  following item that appears in my stacktrace?  Where do I import this
  exception (Error) from?  This error occurs intermittently.

           Error: An error occurred for the API request
  datastore_v3.RunQuery().

  The full stacktrace is:

   File /base/python_lib/versions/1/google/appengine/ext/db/
  __init__.py, line 1382, in get
     results = self.fetch(1)
   File /base/python_lib/versions/1/google/appengine/ext/db/
  __init__.py, line 1426, in fetch
     raw = self._get_query().Get(limit, offset)
   File /base/python_lib/versions/1/google/appengine/api/
  datastore.py, line 959, in Get
     return self._Run(limit, offset)._Get(limit)
   File /base/python_lib/versions/1/google/appengine/api/
  datastore.py, line 900, in _Run
     apiproxy_stub_map.MakeSyncCall('datastore_v3', 'RunQuery', pb,
  result)
   File /base/python_lib/versions/1/google/appengine/api/
  apiproxy_stub_map.py, line 72, in MakeSyncCall
     apiproxy.MakeSyncCall(service, call, request, response)
   File /base/python_lib/versions/1/google/appengine/api/
  apiproxy_stub_map.py, line 244, in MakeSyncCall
     stub.MakeSyncCall(service, call, request, response)
   File /base/data/home/apps/tw3/16.335384870848503913/twa/
  datastore_cache.py, line 66, in MakeSyncCall
     self.CallWrappedStub(call, request, response)
   File /base/data/home/apps/tw3/16.335384870848503913/twa/
  datastore_cache.py, line 54, in CallWrappedStub
     self._wrapped_stub.MakeSyncCall(self.SERVICE_NAME, call, request,
  response)
   File /base/python_lib/versions/1/google/appengine/runtime/
  apiproxy.py, line 183, in MakeSyncCall
     rpc.CheckSuccess()
   File /base/python_lib/versions/1/google/appengine/api/
  apiproxy_rpc.py, line 110, in CheckSuccess
     raise self.exception
  Error: An error occurred for the API request datastore_v3.RunQuery().
--~--~-~--~~~---~--~~
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: Aug 5 Transcript?

2009-08-10 Thread jd

Yeah strange to see a search problem in a google product.

I found that the advanced search does work:

http://groups.google.com/advanced_search?q=

I was also looking for the transcript!

On Aug 11, 2:07 am, dfabulich danfabul...@gmail.com wrote:
 Is there atranscriptposted for the August 5, 2009 chat?

 BTW, something may be wrong with the Google Group search here; when I
 go to the top of this page and search the group for transcript I see
 nothing, even though I know transcripts have been posted for months.
 Google Web Search turns up the July 15thtranscript, but not the
 August 5transcript.
--~--~-~--~~~---~--~~
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] Regarding current google app engine customers

2009-08-10 Thread Liang Han

This is not a technical question, but I want to know if Google has a
list of current app engine big customers, which is not
confidential.  In other words, what big customers are using google
app engine to build their websites?

Thanks in advance.

Liang Han
--~--~-~--~~~---~--~~
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: About the latest release (1.2.4)

2009-08-10 Thread johnP

To clarify -

The datastore_cache recipe *did* stop working.  It seems that the only
call that's getting passed-through to the wrapped stub is CreateRPC -
this is a newly-introduced method - and the recipe does not have a
method handle this call.

How to make it work is several levels beyond my level of
comprehension:)  If anyone has some pointers as to how to make it
work, I (and many developers) will be thankful:)  This is such a super-
valuable recipe...

Also - is there a way to make it more future-proof?

Thanks!

johnP

http://appengine-cookbook.appspot.com/recipe/seamless-memcache-caching-of-all-entities






On Aug 7, 1:21 pm, johnP j...@thinkwave.com wrote:
 Were there any changes on the production server that would cause the
 datastore_cache recipe to stop working?

 http://appengine-cookbook.appspot.com/recipe/seamless-memcache-cachin...

 johnP

 On Aug 7, 1:14 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)

 evlogime...@gmail.com wrote:
  On Fri, Aug 7, 2009 at 1:00 PM, nebulabug saira...@gmail.com wrote:

   Can somebody explain more no

   # Composite indexes no longer required for certain types of key
   queries.

  Example queries:

  db.MyModel.all().ancestor()

  This doesn't need an ancestor index anymore since ancestors are stored in
  the key.

  db.MyModel.all().ancestor().filter('__key__ ', ...)

  Likewise.

   # Enhancement to SearchableModel allowing multiple properties to be
   indexed.

   On Aug 7, 6:49 am, johntray john.tur...@gmail.com wrote:
I'm with you. 1.2.4 is a big disappointment.

On Aug 6, 9:38 pm, Emilien Klein emilien.kl...@gmail.com wrote:

 Is it just me or does it seem that this new release adds
 functionalities that don't seem to be on the list of that many people?

 The 3 issues that are linked to fromhttp://
   code.google.com/p/googleappengine/wiki/SdkReleaseNotes
 for release 1.2.4 were starred by respectively 2,1, and a whopping 5
 persons! Making the assumption that these are all different people,
 that means that 8 persons have directly asked for these
 improvements...

 I'm not criticizing the release, just questioning the priorities...
 It's nice to somewhat improve the queries and the Remote API, but
 aren't there other features that seem to be much more urgent? What
 happened to the important points of the Roadmap to be done around June
 2009, if I remember well?
  http://code.google.com/intl/fr/appengine/docs/roadmap.html
 Quite a lot of the things on this page seem to be much more urgent
 than what's just been released...

 Or maybe am I just asking too much???

  --

  Alkis


--~--~-~--~~~---~--~~
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: About the latest release (1.2.4)

2009-08-10 Thread GenghisOne

I'm curious...did this latest release address the crippled full-text
search issue?


On Aug 10, 8:13 pm, johnP j...@thinkwave.com wrote:
 To clarify -

 The datastore_cache recipe *did* stop working.  It seems that the only
 call that's getting passed-through to the wrapped stub is CreateRPC -
 this is a newly-introduced method - and the recipe does not have a
 method handle this call.

 How to make it work is several levels beyond my level of
 comprehension:)  If anyone has some pointers as to how to make it
 work, I (and many developers) will be thankful:)  This is such a super-
 valuable recipe...

 Also - is there a way to make it more future-proof?

 Thanks!

 johnP

 http://appengine-cookbook.appspot.com/recipe/seamless-memcache-cachin...

 On Aug 7, 1:21 pm, johnP j...@thinkwave.com wrote:

  Were there any changes on the production server that would cause the
  datastore_cache recipe to stop working?

 http://appengine-cookbook.appspot.com/recipe/seamless-memcache-cachin...

  johnP

  On Aug 7, 1:14 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)

  evlogime...@gmail.com wrote:
   On Fri, Aug 7, 2009 at 1:00 PM, nebulabug saira...@gmail.com wrote:

Can somebody explain more no

# Composite indexes no longer required for certain types of key
queries.

   Example queries:

   db.MyModel.all().ancestor()

   This doesn't need an ancestor index anymore since ancestors are stored in
   the key.

   db.MyModel.all().ancestor().filter('__key__ ', ...)

   Likewise.

# Enhancement to SearchableModel allowing multiple properties to be
indexed.

On Aug 7, 6:49 am, johntray john.tur...@gmail.com wrote:
 I'm with you. 1.2.4 is a big disappointment.

 On Aug 6, 9:38 pm, Emilien Klein emilien.kl...@gmail.com wrote:

  Is it just me or does it seem that this new release adds
  functionalities that don't seem to be on the list of that many 
  people?

  The 3 issues that are linked to fromhttp://
code.google.com/p/googleappengine/wiki/SdkReleaseNotes
  for release 1.2.4 were starred by respectively 2,1, and a whopping 5
  persons! Making the assumption that these are all different people,
  that means that 8 persons have directly asked for these
  improvements...

  I'm not criticizing the release, just questioning the priorities...
  It's nice to somewhat improve the queries and the Remote API, but
  aren't there other features that seem to be much more urgent? What
  happened to the important points of the Roadmap to be done around 
  June
  2009, if I remember well?
   http://code.google.com/intl/fr/appengine/docs/roadmap.html
  Quite a lot of the things on this page seem to be much more urgent
  than what's just been released...

  Or maybe am I just asking too much???

   --

   Alkis
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---