[google-appengine] Question about SDK Redistribution

2008-09-30 Thread ericsk

Dear all,

If I develop an application, am I permitted to include App Engine's
SDK in my distributed package?
And, should my package declare the same license?

Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Source IP address(es) for fetch API

2008-09-30 Thread David Poblador Garcia

Hi all,

I'm trying to use an external HTTP service with the Fetch API from the
AppEngine. I'm wondering if there is any way to know which IP
address(es) Google is using for the fetch infrastructure. I'd like to
know that in order to block non-trustable IP addresses in the remote
HTTP RPC.

Thanks for your help,

David
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Application statistics are currently unavailable?

2008-09-30 Thread Sylvain

Yes, same here.


On 30 sep, 04:49, mitnickcbc <[EMAIL PROTECTED]> wrote:
> This is all I got on Dashboard in Admin Console, performing upgrade or
> something 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Strange patterns in traffic graph - do these indicate app engine problems?

2008-09-30 Thread mitnickcbc

Those zeros should be fine. What drives me mad is that the high amount
CPU warning is coming like anything during the last 6 hours but I
didn't change a single line of code! This makes quota denials heavily
and makes request error rate above 10%.

On Sep 30, 3:44 am, Alex Epshteyn <[EMAIL PROTECTED]>
wrote:
> Every once in a while I see my traffic (requests/seconds) graph dotted
> with zero craters like this graph for the last 24 hours:
>
> http://tinyurl.com/5xkt6d
>
> Notice how the first half of the graph is smooth and the second half
> is full of spikes and craters.
>
> I'm concerned about this since there's never a time when my app is
> actually idle. Do these zero craters indicate that my app or GAE on
> the whole is unavailable at certain intervals?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Source IP address(es) for fetch API

2008-09-30 Thread David Symonds

On Tue, Sep 30, 2008 at 5:35 PM, David Poblador Garcia
<[EMAIL PROTECTED]> wrote:

> I'm trying to use an external HTTP service with the Fetch API from the
> AppEngine. I'm wondering if there is any way to know which IP
> address(es) Google is using for the fetch infrastructure. I'd like to
> know that in order to block non-trustable IP addresses in the remote
> HTTP RPC.

I don't think there will ever be any IP address guarantees that Google
will give you for that.

Using trusted IPs for cross-Internet traffic went out of vogue in the
80s, and is woefully insecure. You'd probably find it (a) more secure
and (b) more reliable to just send a secret token along with the
fetch.


Dave.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Any Site in Production Use ?

2008-09-30 Thread Feris Thia
Hi All,

I understand that GAE is still in preview used only, but I just wonder if
anyone has used it in any semi or full production ? And with how many page
hits / visitors per day ?

-- 
Thanks & Best Regards,

Feris Thia

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Strange patterns in traffic graph - do these indicate app engine problems?

2008-09-30 Thread Sylvain

Yes, for my app, it is the same thing.

Very strange.

On 29 sep, 21:44, Alex Epshteyn <[EMAIL PROTECTED]> wrote:
> Every once in a while I see my traffic (requests/seconds) graph dotted
> with zero craters like this graph for the last 24 hours:
>
> http://tinyurl.com/5xkt6d
>
> Notice how the first half of the graph is smooth and the second half
> is full of spikes and craters.
>
> I'm concerned about this since there's never a time when my app is
> actually idle. Do these zero craters indicate that my app or GAE on
> the whole is unavailable at certain intervals?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Any Site in Production Use ?

2008-09-30 Thread mitnickcbc

I do, full production. And my suggestion is not to use it for
production. You can have very easy start with GAE since no server
config, easy deploy and tons of other good things. But you will get
more pain of growth due to these issues:
1. Manually quota increase process. This is not a problem if during
working hours. But you may met this issue at 7PM and you need to wait
for at least 14 hours to get a response, not mention during weekend or
holidays. For people who have no idea about quota denials, quota
denial means almost totally out of service. And currently we don't
have visibility to all quotas like datastore and URL fetch. This makes
it even harder to predict the needs of quota increase.
2. High amount CPU quota. This one has a very small quota number and
does't scale with your other quota. Recently I found it comes abnormal
and almost all my requests fallen into this category during certain
period of time (can be up to hours), while I didn't change any code.
Your traffic will drop to below 1.5 request/sec immediately no matter
how much quota you have.
3. It's out of your control. Since it's preview version, GAE team has
no responsibility to stay up late and work out your problem or provide
you 24*7 support. So when issue happens, you can do nothing except
waiting. Although GAE team responses quickly and provides useful
helps, but there are several times I felt helpless off working hours.
And my app has met 4 - 5 times serious issues like out of service for
6 hours during the last 10 days, due to the quota issues and there is
nobody helping me (no blame here, they are sleeping or in weekend).

If you are building something not going to have heavy load, you can
use GAE as production without much problem. But surely not business
application, otherwise your customer will shout at you and you really
can do nothing to help them.

On Sep 30, 5:21 pm, "Feris Thia" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I understand that GAE is still in preview used only, but I just wonder if
> anyone has used it in any semi or full production ? And with how many page
> hits / visitors per day ?
>
> --
> Thanks & Best Regards,
>
> Feris Thia
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] .net

2008-09-30 Thread amshuhu

HI Developers and Moderators, in our GAE ".net" coding is 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Custom HTTP 404/500 messages

2008-09-30 Thread Alexander Kojevnikov

> > If you are using Django under GAE, just add your 404.html and 500.html
> > templates to the templates folder. Django will take care of the rest.
>
> thank you for your reply. Let me slightly rephrase the question - can
> this be done with the built in django (I believe Google have built in
> v. 0.96)? I would liek to avoid having to maintain a separate django
> installation. If yes, how do I determine/configure what folder is the
> templates folder? I am sorry if the question sounds lame, I am a n00b.

I didn't test it but the documentation says it's the same in 0.96:
http://www.djangoproject.com/documentation/0.96/request_response/#the-404-page-not-found-view

The template directory is specified in the settings.py, for example:
TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__), 'templates'),
)



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Resuming a Partially Loaded Bulk Load

2008-09-30 Thread Canis

I submitted a patch to the GAE Issue Tracker for this, back in June --
you may find it helpful:

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

On Sep 27, 6:47 am, Ones  Self <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm trying to load a large amount of data to my application using the
> bulkload_client.py.
> The load regularly fails after uploading a good amount of data.  I was
> wondering if
> there is an easy way to resume load from the last record.
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: appengine.google.com/start -- redirect loop

2008-09-30 Thread Alexander Kojevnikov

You are probably trying to login using a Google Apps account. If so,
you should use this link:
http://appengine.google.com/a//

On Sep 30, 4:10 pm, shaunc <[EMAIL PROTECTED]> wrote:
> When I try to log into the admin console, I get sent in a redirect
> loop
>
> I am not sure how to debug this... (what further info should I
> provide, and how should I obtain it). Obviously this doesn't happen to
> everyone
>
> Thanks,
>
> - Shaun Cutts
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] TONS of High Amount CPU Warnings!!

2008-09-30 Thread mitnickcbc

It has been 6 hours that my app is total unavailable due to quota
denials caused by abnormal amount of high amount CPU warnings. I
didn't change a single line of code and most of my requests start
throwing this warning. Any change in logic about high CPU warning?
Lowering this high CPU bar will kill apps.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Terrible

2008-09-30 Thread Barry Hunter

On Mon, Sep 29, 2008 at 11:43 PM, zunzun <[EMAIL PROTECTED]> wrote:
>
> What is unistalling?
>
> What is an unuser?

I just hope a user and a unuser never actully meet, the anti-matter
explosion could destroy the earth!

>
> James
>
> On Sep 27, 9:48 pm, rc <[EMAIL PROTECTED]> wrote:
>> This is the most unuser friendly way of managing a site. You have to
>> be kidding me, command line deployment?! Unistalling...
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Did something change on the live site for caching?

2008-09-30 Thread [EMAIL PROTECTED]

http://gaeutilities.appspot.com/flash

The setting a flash message then display on the next page view used to
work correctly on this demo page. However, while looking into another
problem (which will be my next post) I noticed that I have to shift-
refresh to see the flash messages now. It looks like somethings
changed. I realize I can set cache headers on my own, and will do that
with the next update I'll make sometime this week. But, I was curious
what might have changed to cause this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Are all servers in the cloud up to date?

2008-09-30 Thread [EMAIL PROTECTED]

http://code.google.com/p/appengine-utitlies/issues/detail?id=33

This issue was recently filed on the appengine-utilities project. This
problem was actually resolved several updates ago when some changes
were made for the pickling process. Seeing it happen live now causes
me to be concerned that not all application servers in the cloud are
getting updated?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Did something change on the live site for caching?

2008-09-30 Thread Sylvain

Can you check this issue :

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

Since 1.1.3, I think,  there is an error with caching (Expiration
date).
Even the Dashboard has this issue.

Regards



On 30 sep, 14:53, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> http://gaeutilities.appspot.com/flash
>
> The setting a flash message then display on the next page view used to
> work correctly on this demo page. However, while looking into another
> problem (which will be my next post) I noticed that I have to shift-
> refresh to see the flash messages now. It looks like somethings
> changed. I realize I can set cache headers on my own, and will do that
> with the next update I'll make sometime this week. But, I was curious
> what might have changed to cause this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Question about SDK Redistribution

2008-09-30 Thread Wooble

I'm not a lawyer, but the SDK is under the Apache license, so yes, you
should be able to redistribute it as long as you follow the terms of
the license.  I believe your package can be under just about any
license you want except GPLv2; the Apache license has language about
patents that is considered incompatible with that license.

On Sep 30, 3:44 am, ericsk <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> If I develop an application, am I permitted to include App Engine's
> SDK in my distributed package?
> And, should my package declare the same license?
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: .net

2008-09-30 Thread Wooble



On Sep 30, 6:33 am, amshuhu <[EMAIL PROTECTED]> wrote:
> HI Developers and Moderators, in our GAE ".net" coding is possible?

No.  Well, not unless you want to write a pure Python library that
emulates the .net API.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Textmate bundle

2008-09-30 Thread Sudhir

I'm making a Textmate bundle for the app engine... those interested
can take a look and give feedback and feature requests...
http://corn-man.blogspot.com/2008/09/google-app-engine-ahoy.html

Do keep in mind that its a bare start, so I'm adding stuff slowly as i
go along.

Also making a bundle for unit / web testing that lets you run GAE Unit
( http://code.google.com/p/gaeunit/ ) tests in textmate. Let me know
if anyone wants to see :)

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Terrible

2008-09-30 Thread Martynas Brijunas

> I just hope a user and a unuser never actully meet, the anti-matter
> explosion could destroy the earth!

Colleagues are looking at me as if I am crazy, cannot stop laughing
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Any Site in Production Use ?

2008-09-30 Thread theo

I'd like to second this, and perhaps offer a bit of clarification.

I've been involved in a project for some time now (I've been a user
from the very beginning), and I've been constantly frustrated with
some of the features of App Engine.  In some ways, it's been amazing.
The fact that one is constrained from the start to create apps that
can scale horizontally is interesting and exciting to me.  That being
said, there are a number of challenges that you should be aware of:

1. Poor documentation.

This is a dramatically changing project.  It is definitely not like
other "beta" Google projects.  It really is beta.  You are not going
to be able to trust that all of the documentation is correct.  This is
not a huge criticism of the project - it seems like things are
changing at a pretty rapid rate and I know from experience that it is
often difficult to keep documentation in sync with the current
production version.  But it is something you'll have to deal with.

2. Poor uptime compared to commercial services

Everyone and their mother was atwitter over the S3 downtime some time
ago.  App Engine regularly has such downtimes.  App Engine is a much
more complex system to manage, so that is to be expected somewhat,
still - take that into account.  To partially mitigate this, you can
follow a few websites:

cloudstatus.com
http://groups.google.com/group/google-appengine-downtime-notify

If you look at the history on the downtime google group, you can see
that they are at about 2 9's of reliability.  This is not a criticism
- I love the service and well - you get what you pay for, but if you
are promising customers high reliability, they won't get it.  Be aware
of this.

Besides that, the platform is great.  The quotas are amazingly high
(if you don't hit the high CPU quota).  The really great thing is that
App Engine (especially with the django helper) is essentially Django,
so there is little risk in developing for App Engine.  If you find
that you can't continue to host your project on App Engine, you can
easily port it over to Django on something like slicehost or AWS.

On Sep 30, 3:05 am, mitnickcbc <[EMAIL PROTECTED]> wrote:
> I do, full production. And my suggestion is not to use it for
> production. You can have very easy start with GAE since no server
> config, easy deploy and tons of other good things. But you will get
> more pain of growth due to these issues:
> 1. Manually quota increase process. This is not a problem if during
> working hours. But you may met this issue at 7PM and you need to wait
> for at least 14 hours to get a response, not mention during weekend or
> holidays. For people who have no idea about quota denials, quota
> denial means almost totally out of service. And currently we don't
> have visibility to all quotas like datastore and URL fetch. This makes
> it even harder to predict the needs of quota increase.
> 2. High amount CPU quota. This one has a very small quota number and
> does't scale with your other quota. Recently I found it comes abnormal
> and almost all my requests fallen into this category during certain
> period of time (can be up to hours), while I didn't change any code.
> Your traffic will drop to below 1.5 request/sec immediately no matter
> how much quota you have.
> 3. It's out of your control. Since it's preview version, GAE team has
> no responsibility to stay up late and work out your problem or provide
> you 24*7 support. So when issue happens, you can do nothing except
> waiting. Although GAE team responses quickly and provides useful
> helps, but there are several times I felt helpless off working hours.
> And my app has met 4 - 5 times serious issues like out of service for
> 6 hours during the last 10 days, due to the quota issues and there is
> nobody helping me (no blame here, they are sleeping or in weekend).
>
> If you are building something not going to have heavy load, you can
> use GAE as production without much problem. But surely not business
> application, otherwise your customer will shout at you and you really
> can do nothing to help them.
>
> On Sep 30, 5:21 pm, "Feris Thia" <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > I understand that GAE is still in preview used only, but I just wonder if
> > anyone has used it in any semi or full production ? And with how many page
> > hits / visitors per day ?
>
> > --
> > Thanks & Best Regards,
>
> > Feris Thia
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Who would post a detailed app with testcases powered by gaeunit?

2008-09-30 Thread Issac Trotts
GAEUnit looks useful, but when I followed the instructions I got a
traceback:

Traceback (most recent call last):
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/__init__.py",
line 496, in __call__
handler.get(*groups)
  File "/Users/issactrotts/Documents/swyzl/gaeunit.py", line 193, in get
module_names = [mf[0:-3] for mf in os.listdir(_DEFAULT_TEST_DIR)
if mf.endswith(".py")]
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py",
line 782, in __call__
raise OSError(errno.EACCES, 'path not accessible')
OSError: [Errno 13] path not accessible

The problem persists after creating a test/ subdirectory (which I guessed
from _DEFAULT_TEST_DIR = 'test').

Issac


On Fri, Sep 26, 2008 at 8:22 PM, Steven R. Farley <[EMAIL PROTECTED]>wrote:

>
> You can see a few examples in the sample app I recently added to
> GAEUnit:
>
>  http://code.google.com/p/gaeunit/source/browse/#svn/trunk/sample_app
>
> ++Steve
>
> On Sep 25, 10:31 pm, GAEFans <[EMAIL PROTECTED]> wrote:
> > For example, some testcases for '%google_appengine_home%\demos
> > \guestbook'.
> >
> > Thanks!
>
> >
>


-- 
http://svwebbuilder.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Who would post a detailed app with testcases powered by gaeunit?

2008-09-30 Thread Issac Trotts
This time I followed the instructions more closely, using dev_appserver.py
instead of the graphical App Engine launcher on Mac OS X, and putting a test
case in the test/ directory.  It runs fine.  Thanks for making this
available!

On Tue, Sep 30, 2008 at 12:32 AM, Issac Trotts <[EMAIL PROTECTED]>wrote:

> GAEUnit looks useful, but when I followed the instructions I got a
> traceback:
>
> Traceback (most recent call last):
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/__init__.py",
>  line 496, in __call__
>
> handler.get(*groups)
>   File "/Users/issactrotts/Documents/swyzl/gaeunit.py", line 193, in get
> module_names = [mf[0:-3] for mf in os.listdir(_DEFAULT_TEST_DIR) if 
> mf.endswith(".py")]
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py",
>  line 782, in __call__
>
> raise OSError(errno.EACCES, 'path not accessible')
> OSError: [Errno 13] path not accessible
>
> The problem persists after creating a test/ subdirectory (which I guessed
> from _DEFAULT_TEST_DIR = 'test').
>
> Issac
>
>
>
> On Fri, Sep 26, 2008 at 8:22 PM, Steven R. Farley <[EMAIL PROTECTED]>wrote:
>
>>
>> You can see a few examples in the sample app I recently added to
>> GAEUnit:
>>
>>  http://code.google.com/p/gaeunit/source/browse/#svn/trunk/sample_app
>>
>> ++Steve
>>
>> On Sep 25, 10:31 pm, GAEFans <[EMAIL PROTECTED]> wrote:
>> > For example, some testcases for '%google_appengine_home%\demos
>> > \guestbook'.
>> >
>> > Thanks!
>>
>> >>
>>
>
>
> --
> http://svwebbuilder.com
>
>
>


-- 
http://svwebbuilder.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How do i embedd an image or html code while sending email in appengine ?

2008-09-30 Thread Rahul Devassy
please explain to me how to embedd an image ot html code while sending email
in appengine ...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Question about effect of ListProperty on index size and put times

2008-09-30 Thread Alex Epshteyn

I have an entity with a db.ListProperty(float), each instance having
about 10 values in the list.  I have no custom indexes on this
property.

A relatively large number of puts (0.01%) on this entity kind end up
in timeout.  I'm wondering if removing this list property will reduce
the risk of timeout on put.

The alternative is to replace it with a TextProperty holding a
JSONized list.  I do not need to query on this list property.  Should
I go ahead and do this?

I'd like to also get feedback on the data migration implications of
this.  If I delete a property in the python model definition, what
will actually happen under the hood?

Thanks for your feedback.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Timeout - operation took too long

2008-09-30 Thread Adam Loving

I am seeing the datastore timeout error intermittently several times a
day (application = toyvirtualgifts) on a fairly simple put operation.
Could this be caused by the rest of the request taking too long (like
if the timeout for the entire request fires during the put)? It
doesn't seem like that would be the case here, but that's the only
explanation I can think of.

  File "/base/python_lib/versions/1/google/appengine/ext/db/
__init__.py", line 618, in put
return datastore.Put(self._entity)
  File "/base/python_lib/versions/1/google/appengine/api/
datastore.py", line 162, in Put
raise _ToDatastoreError(err)
  File "/base/python_lib/versions/1/google/appengine/api/
datastore.py", line 1627, in _ToDatastoreError
raise errors[err.application_error](err.error_detail)
Timeout

Thanks,
Adam

On Sep 28, 3:19 am, Ronald <[EMAIL PROTECTED]> wrote:
> Hi,
> I don't know how much work has been done on this front, but my app is
> still cripple by this issue.
> Maybe the amount of timeout errors in the log has decrease a little,
> but so has the amount of happy users of my site =(
>
> /ronald
>
> On Sep 19, 9:45 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Our engineers are looking in to your reports.
>
> > If all of the people experiencing quota issues like this could email me
> > directly with your application id, as well as the approximate times these
> > errors were occurring, that would be helpful!
>
> > Thanks,
> > Marzia
>
> > On Fri, Sep 19, 2008 at 11:17 AM, Michael Bailey <[EMAIL PROTECTED]>wrote:
>
> > > I got the error below on a app that has almost zero traffic:
> > > see screenshot:
> > >http://imagebin.ca/img/3rlwzkBy.png
>
> > > Traceback (most recent call last):
> > >  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > > __init__.py", line 496, in __call__
> > >    handler.get(*groups)
> > >   File "/base/data/home/apps/***/1.4/search.py", line 25, in get
> > >    for kw in kws:
> > >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > > __init__.py", line 1257, in __iter__
> > >    return self.run()
> > >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > > __init__.py", line 1589, in run
> > >    query_run = self._proto_query.Run(*self._args, **self._kwds)
> > >  File "/base/python_lib/versions/1/google/appengine/ext/gql/
> > > __init__.py", line 572, in Run
> > >    it = bind_results.Run()
> > >  File "/base/python_lib/versions/1/google/appengine/ext/gql/
> > > __init__.py", line 1211, in Run
> > >    results.append(bound_query.Run())
> > >   File "/base/python_lib/versions/1/google/appengine/api/
> > > datastore.py", line 860, in Run
> > >    return self._Run()
> > >   File "/base/python_lib/versions/1/google/appengine/api/
> > > datastore.py", line 879, 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 46, in MakeSyncCall
> > >    stub.MakeSyncCall(service, call, request, response)
> > >  File "/base/python_lib/versions/1/google/appengine/runtime/
> > > apiproxy.py", line 246, in MakeSyncCall
> > >    rpc.CheckSuccess()
> > >  File "/base/python_lib/versions/1/google/appengine/runtime/
> > > apiproxy.py", line 189, in CheckSuccess
> > >    raise self.exception
> > > OverQuotaError: The API call datastore_v3.RunQuery() required more
> > > quota than is available.
>
> > > On Sep 10, 1:16 pm, Ronald <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > > I'm seeing a number of Timeout errors on my log file:
>
> > > > Traceback (most recent call last):
> > > >   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > > > __init__.py", line 496, in __call__
> > > >     handler.get(*groups)
> > > >   File "/base/data/home/apps/40tazo/2.29/index.py", line 46, in get
> > > >     moves = g.move(card,pickups)
> > > >   File "/base/data/home/apps/40tazo/2.29/game.py", line 231, in move
> > > >     self.save()
> > > >   File "/base/data/home/apps/40tazo/2.29/game.py", line 290, in save
> > > >     self.g.put()
> > > >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > > > __init__.py", line 618, in put
> > > >     return datastore.Put(self._entity)
> > > >   File "/base/python_lib/versions/1/google/appengine/api/
> > > > datastore.py", line 162, in Put
> > > >     raise _ToDatastoreError(err)
> > > >   File "/base/python_lib/versions/1/google/appengine/api/
> > > > datastore.py", line 1627, in _ToDatastoreError
> > > >     raise errors[err.application_error](err.error_detail)
> > > > Timeout: datastore timeout: operation took too long.
>
> > > > In this thread:
> > >http://groups.google.com/group/google-appengine/browse_thread/thread/...,
> > > > someone describes a similar problem and Jeff Scudder reply that we
> > > > should spect some increase latency until Tuesday 9/2.
>
> > > > Is this increased latency still an issue?
> > > > If that's not the case, any suggestions abo

[google-appengine] Re: Question about effect of ListProperty on index size and put times

2008-09-30 Thread ryan

hi alex! serializing the list property into json shouldn't make much
of a difference in the timeout rate, but you're welcome to try it.
honestly, though, .01% is noticeable, but i wouldn't exactly call it
"large." regardless of how your data is shaped, you'll at least see a
small timeout rate. .01% is in the ballpark.

as for deleting a property in your model definition, that's backward
compatible. the existing data in the datastore will remain unchanged.
when you load entities with the new model definition, they'll just
ignore the old property, and not populate it in new entities. other
changes, e.g. changing a property type or adding a required property,
will cause exceptions when you fetch entities created with the old
model definition. you can use Expando and optional properties to help
with schema changes like 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Timeout - operation took too long

2008-09-30 Thread johnP

For a while today, I started seeing errors in custom form validation.
Requesting self.instance in ModelForm form resulted in ValueErrors.
Now, it seems to have recovered a bit...







On Sep 30, 9:43 am, Adam Loving <[EMAIL PROTECTED]> wrote:
> I am seeing the datastore timeout error intermittently several times a
> day (application = toyvirtualgifts) on a fairly simple put operation.
> Could this be caused by the rest of the request taking too long (like
> if the timeout for the entire request fires during the put)? It
> doesn't seem like that would be the case here, but that's the only
> explanation I can think of.
>
>   File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 618, in put
> return datastore.Put(self._entity)
>   File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 162, in Put
> raise _ToDatastoreError(err)
>   File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 1627, in _ToDatastoreError
> raise errors[err.application_error](err.error_detail)
> Timeout
>
> Thanks,
> Adam
>
> On Sep 28, 3:19 am, Ronald <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I don't know how much work has been done on this front, but my app is
> > still cripple by this issue.
> > Maybe the amount of timeout errors in the log has decrease a little,
> > but so has the amount of happy users of my site =(
>
> > /ronald
>
> > On Sep 19, 9:45 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > Our engineers are looking in to your reports.
>
> > > If all of the people experiencing quota issues like this could email me
> > > directly with your application id, as well as the approximate times these
> > > errors were occurring, that would be helpful!
>
> > > Thanks,
> > > Marzia
>
> > > On Fri, Sep 19, 2008 at 11:17 AM, Michael Bailey <[EMAIL PROTECTED]>wrote:
>
> > > > I got the error below on a app that has almost zero traffic:
> > > > see screenshot:
> > > >http://imagebin.ca/img/3rlwzkBy.png
>
> > > > Traceback (most recent call last):
> > > >  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > > > __init__.py", line 496, in __call__
> > > >handler.get(*groups)
> > > >   File "/base/data/home/apps/***/1.4/search.py", line 25, in get
> > > >for kw in kws:
> > > >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > > > __init__.py", line 1257, in __iter__
> > > >return self.run()
> > > >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > > > __init__.py", line 1589, in run
> > > >query_run = self._proto_query.Run(*self._args, **self._kwds)
> > > >  File "/base/python_lib/versions/1/google/appengine/ext/gql/
> > > > __init__.py", line 572, in Run
> > > >it = bind_results.Run()
> > > >  File "/base/python_lib/versions/1/google/appengine/ext/gql/
> > > > __init__.py", line 1211, in Run
> > > >results.append(bound_query.Run())
> > > >   File "/base/python_lib/versions/1/google/appengine/api/
> > > > datastore.py", line 860, in Run
> > > >return self._Run()
> > > >   File "/base/python_lib/versions/1/google/appengine/api/
> > > > datastore.py", line 879, 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 46, in MakeSyncCall
> > > >stub.MakeSyncCall(service, call, request, response)
> > > >  File "/base/python_lib/versions/1/google/appengine/runtime/
> > > > apiproxy.py", line 246, in MakeSyncCall
> > > >rpc.CheckSuccess()
> > > >  File "/base/python_lib/versions/1/google/appengine/runtime/
> > > > apiproxy.py", line 189, in CheckSuccess
> > > >raise self.exception
> > > > OverQuotaError: The API call datastore_v3.RunQuery() required more
> > > > quota than is available.
>
> > > > On Sep 10, 1:16 pm, Ronald <[EMAIL PROTECTED]> wrote:
> > > > > Hi,
> > > > > I'm seeing a number of Timeout errors on my log file:
>
> > > > > Traceback (most recent call last):
> > > > >   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > > > > __init__.py", line 496, in __call__
> > > > > handler.get(*groups)
> > > > >   File "/base/data/home/apps/40tazo/2.29/index.py", line 46, in get
> > > > > moves = g.move(card,pickups)
> > > > >   File "/base/data/home/apps/40tazo/2.29/game.py", line 231, in move
> > > > > self.save()
> > > > >   File "/base/data/home/apps/40tazo/2.29/game.py", line 290, in save
> > > > > self.g.put()
> > > > >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > > > > __init__.py", line 618, in put
> > > > > return datastore.Put(self._entity)
> > > > >   File "/base/python_lib/versions/1/google/appengine/api/
> > > > > datastore.py", line 162, in Put
> > > > > raise _ToDatastoreError(err)
> > > > >   File "/base/python_lib/versions/1/google/appengine/api/
> > > > > datastore.py", line 1627, in _ToDatastoreError
> > > > > raise errors[err.app

[google-appengine] Re: appengine.google.com/start -- redirect loop

2008-09-30 Thread shaunc

Thanks for the reply Alexander.

I think I've got it diagnosed now, but I don't know what to do about
it.

Apparently, although it is for my google apps domain, I must have
created it with my previously existing google account.

When I am in my google apps account, if I go to appengine.google.com/
start, I am redirected in a  loop. When I go to appengine.google.com/a/
/ I don't see it at all.

When I am logged in to my other google account, I am able to log in
and see it. However, this is pathalogical, as it is an intranet
application for my domain -- so log in is restricted to only domain
members (as is confirmed on the screen). Thus I can only administer
from an account that I can't actually log in with.

I don't have significant data in it, so I guess I could just delete it
and start a new one in my google apps domain account. But there seems
to be no "delete" function... certainly there is no "transfer"
functionality. Is a transfer something I could ask a google admin
somewhere to do for me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Question about effect of ListProperty on index size and put times

2008-09-30 Thread Alex Epshteyn

Hi Ryan,

Thanks for your explanation!

Actually, upon further analysis my write timeout rate is more like
1-3% and timeouts happen every 5 - 10 minutes throughout the day.
Although I have retry logic to deal with this, I feel uneasy with so
many errors in my logs.  It doesn't sound like you think that indexing
a 10-valued list is a big contributor to the timeouts, so I'll leave
it alone.  Do you have any other ideas that could reduce the timeout
rate?

So I gather the best way to replace a property in App Engine, is
actually to leave the old property in the model spec but just not
write anything to it in the future, to avoid exceptions, right?

Alex




On Tue, Sep 30, 2008 at 1:06 PM, ryan <[EMAIL PROTECTED]> wrote:
>
> hi alex! serializing the list property into json shouldn't make much
> of a difference in the timeout rate, but you're welcome to try it.
> honestly, though, .01% is noticeable, but i wouldn't exactly call it
> "large." regardless of how your data is shaped, you'll at least see a
> small timeout rate. .01% is in the ballpark.
>
> as for deleting a property in your model definition, that's backward
> compatible. the existing data in the datastore will remain unchanged.
> when you load entities with the new model definition, they'll just
> ignore the old property, and not populate it in new entities. other
> changes, e.g. changing a property type or adding a required property,
> will cause exceptions when you fetch entities created with the old
> model definition. you can use Expando and optional properties to help
> with schema changes like 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Application statistics are currently unavailable?

2008-09-30 Thread Marzia Niccolai
Hi,

This was a result of the downtime that we had yesterday (
http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/3759c0d44c13886a),
but the dashboard should now be back to normal.

-Marzia

On Tue, Sep 30, 2008 at 1:01 AM, Sylvain <[EMAIL PROTECTED]> wrote:

>
> Yes, same here.
>
>
> On 30 sep, 04:49, mitnickcbc <[EMAIL PROTECTED]> wrote:
> > This is all I got on Dashboard in Admin Console, performing upgrade or
> > something 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: ReferenceProperty - id access without fetching the entity

2008-09-30 Thread Marzia Niccolai
Hi,

The method that you are using currently works, but there is no guarantee
that it will continue to work in the future - by which I mean that the
current API design only specifies that ReferenceProperty is fetched from the
datastore when referenced.

We've had requests that there be a way to expose only the key of the
reference, and not the actual entity, and I think this is a valid feature
request.  I don't believe it's filed in the tracker, so you should do that,
and those interested in this feature should star the issue.

-Marzia

On Mon, Sep 29, 2008 at 6:23 PM, Andy Freeman <[EMAIL PROTECTED]> wrote:

>
> Is there an approved way to copy a ReferenceProperty from one entity
> to another without fetching the referred to entity from the datastore?
>
> In other words,
>
> class C(db.Model):
>...
>
> class A(db.Model):
>C = db.ReferenceProperty(reference_class=C)
>
> class B(db.Model):
>C = db.ReferenceProperty(reference_class=C)
>
> a = {some query}
> b = B()
> # I would like to do the next assignment without retrieving the
> relevant entity
> # from the data store.
> b.C = a.C
>
> Yes, I know that a._C.id() can be used to read the id, but that
> doesn't seem to be part of the documented interface.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Not 48 hours but indexes stuck

2008-09-30 Thread Marzia Niccolai
Hi,

Several hours is not out of the question, but more than a day is most likely
worrisome.  If you are still having this issue, please reply to me directly
with the app id and I can look in to it further.

-Marzia

On Sun, Sep 28, 2008 at 10:51 AM, abwaters <[EMAIL PROTECTED]> wrote:

>
> It's only been several hours but its already quite a bit longer than
> any other time in the past.  With the other posts about indexes
> getting stuck building, i thought I would overreact and post a message
> here...
>
> Should I be worried?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How do i embedd an image or html code while sending email in appengine ?

2008-09-30 Thread Sylvain

Check my little project :

http://formamail.appspot.com/

Source available

Regards

On 30 sep, 11:31, "Rahul Devassy" <[EMAIL PROTECTED]> wrote:
> please explain to me how to embedd an image ot html code while sending email
> in appengine ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: No module named pwd - even though no instance of "import pwd" exists in the codebase

2008-09-30 Thread Marzia Niccolai
Hi,

The import pwd doesn't actually occur in your code, but in a standard
library that is called by django/utils/translation/ trans_real.py.

Due to the sandbox restrictions, I believe that there are still some issues
using all of Django's internationalization functionality.  It seems as
though this might be one of those issues.

If you aren't directly using the i18n features of Django, it may still be an
issue since, according to their documentation
http://docs.djangoproject.com/en/dev/topics/i18n/, internationalization is
on by default:

"Django's internationalization hooks are on by default, and that means
there's a bit of i18n-related overhead in certain places of the framework.
If you don't use internationalization, you should take the two seconds to
set USE_I18N = 
Falsein
your settings file. If
USE_I18Nis
set to
False, then Django will make some optimizations so as not to load the
internationalization machinery.

You'll probably also want to remove
'django.core.context_processors.i18n'from your
TEMPLATE_CONTEXT_PROCESSORS setting."
Hopefully this will help some,
Marzia

On Mon, Sep 29, 2008 at 2:09 PM, jamesv <[EMAIL PROTECTED]> wrote:

>
> Good afternoon, I have a bit of a vexing problem.
>
> After deploying my application, everything runs perfectly well for a
> while (5 minutes to a couple hours) then out of the blue I get the
> following error:
>
> : Caught an exception
> while rendering: No module named pwd
>
> Original Traceback (most recent call last):
>  File "/base/data/home/apps/site/1.XXX/django/template/debug.py",
> line 71, in render_node
>result = node.render(context)
>  File "/base/data/home/apps/site/1.XXX/django/template/debug.py",
> line 87, in render
>output = force_unicode(self.filter_expression.resolve(context))
>  File "/base/data/home/apps/site/1.XXX/django/template/__init__.py",
> line 559, in resolve
>new_obj = func(obj, *arg_vals)
>  File "/base/data/home/apps/site/1.XXX/django/template/
> defaultfilters.py", line 631, in date
>return format(value, arg)
>  File "/base/data/home/apps/site/1.XXX/django/utils/dateformat.py",
> line 264, in format
>return df.format(format_string)
>  File "/base/data/home/apps/site/1.XXX/django/utils/dateformat.py",
> line 29, in format
>pieces.append(force_unicode(getattr(self, piece)()))
>  File "/base/data/home/apps/site/1.XXX/django/utils/dateformat.py",
> line 174, in r
>return self.format('D, j M Y H:i:s O')
>  File "/base/data/home/apps/site/1.XXX/django/utils/dateformat.py",
> line 29, in format
>pieces.append(force_unicode(getattr(self, piece)()))
>  File "/base/data/home/apps/site/1.XXX/django/utils/encoding.py",
> line 49, in force_unicode
>s = unicode(s)
>  File "/base/data/home/apps/site/1.XXX/django/utils/functional.py",
> line 201, in __unicode_cast
>return self.__func(*self.__args, **self.__kw)
>  File "/base/data/home/apps/site/1.XXX/django/utils/translation/
> __init__.py", line 62, in ugettext
>return real_ugettext(message)
>  File "/base/data/home/apps/site/1.XXX/django/utils/translation/
> trans_real.py", line 290, in ugettext
>return do_translate(message, 'ugettext')
>  File "/base/data/home/apps/site/1.XXX/django/utils/translation/
> trans_real.py", line 280, in do_translate
>_default = translation(settings.LANGUAGE_CODE)
>  File "/base/data/home/apps/site/1.XXX/django/utils/translation/
> trans_real.py", line 198, in translation
>default_translation = _fetch(settings.LANGUAGE_CODE)
>  File "/base/data/home/apps/site/1.XXX/django/utils/translation/
> trans_real.py", line 183, in _fetch
>app = __import__(appname, {}, {}, [])
>  File "/base/data/home/apps/site/1.XXX/analyze/__init__.py", line 9,
> in 
>from user import __questionPermsForUser
>  File "/base/python_dist/lib/python2.5/user.py", line 30, in 
>home = os.path.expanduser("~/")
>  File "/base/python_dist/lib/python2.5/posixpath.py", line 320, in
> expanduser
>import pwd
> ImportError: No module named pwd
>
> I am running Django 1.0 with rev52 of the App Engine Helper, and
> nowhere in my codebase is there -any- reference to "import pwd". I
> have even gone so far as to remove the sole reference to "pwd" in the
> Django core, and remove /django/views/static.py (which is the only
> place "import posixpath" is reference, which in turn references "pwd"
>
> This has been confusing me to no end, as I can't replicate the issue
> in the SDK and the site functions without flaw for a while after a
> clean deployment.
>
> _Any_ suggestions or advice would be greatly appreciated
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]

[google-appengine] Re: TONS of High Amount CPU Warnings!!

2008-09-30 Thread jeremysomething

I was getting similar things this weekend. No code changes, but
everything was getting denials.

Are you using memcache?

For me, these were taking to long and using alot of CPU in simple
memcache gets..

I flushed the cache and haven't seen a quota denial since.

On Sep 30, 7:10 am, mitnickcbc <[EMAIL PROTECTED]> wrote:
> It has been 6 hours that my app is total unavailable due to quota
> denials caused by abnormal amount of high amount CPU warnings. I
> didn't change a single line of code and most of my requests start
> throwing this warning. Any change in logic about high CPU warning?
> Lowering this high CPU bar will kill apps.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Fixing Blob output for db.Model.to_xml()

2008-09-30 Thread Rafe

  Folks,

  Rafe Kaplan of the AppEngine team here.  I'm going to fix a small
issue that might effect applications that want to export Blob data as
XML.  It's been reported as issue 430, and you can read about it here:

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

  The output of the XML document being produced by the to_xml method
is always a Unicode string.  The problem arises when binary data is
converted to unicode which doesn't encode properly.  The solution that
I am going to pursue is to convert all Blob objects to a text encoding
format.  I was thinking that base64 is a typical solution, but wanted
to find out if anyone on the boards had opinions or ideas about how
better to encode binary data in to an XML document.

  Also, this change will change the behavior of applications that
already output Blob data to XML.  Normally, we do not make changes to
API's that can break already existing application, but given that this
function is probably broken in most places it is being used, it seems
appropriate.  Hopefully, those applications will already treat text in
such output as opaque binary data.

  I cannot promise that I will honor all ideas, but I want to hear as
many as I can.  I don't believe I've thought of everything!  So,
please respond to this thread with ideas and suggestions if this
feature interests you.

  - Rafe Kaplan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Too Many Versions (403)

2008-09-30 Thread Venkatesh Rangarajan
Hi,
I am getting the following error when I try to upload my app. Been having
this since last night and cannot update my APP at all ?


Closing update.
2008-09-30 11:32:49,500 ERROR appcfg.py:1070 An unexpected error occurred.
Ab
ing.
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 ---


Rgds,
Venkatesh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Announcement: Pycmds, a web-based command line

2008-09-30 Thread Davide Rognoni

I like it :-)

Add here http://appgallery.appspot.com/


On Sep 30, 1:29 am, Chris Tan <[EMAIL PROTECTED]> wrote:
> http://www.pycmds.org
>
> Features:
> Auto-suggest for commands and inputs
> Auto-complete
> Simple API
>
> There are still many kinks to work out with the client side code.
>
> Suggestions & comments are appreciated :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Compress Files

2008-09-30 Thread ipburbank

I have an amazon s3 account, and was hoping that I could make the
user's life easier by compressing files before they download them from
my website (like gmail). The idea being like a shopping cart, when the
user clicks download it adds it to the 'shopping cart' and then after
all of the files for download are selected the user will click a
button which POSTs to google app engine, and google will get the
selected files, compress them into one .zip and then send that to the
user... I just don't know how... I'm very new to python, and have made
programs that are too simple to be useful in Google app engine, so any
basic help would be greatly appreciated, and sample code would be
greatly appreciated!!!

~Thanks in advance, Istvan.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] A few feature suggestions

2008-09-30 Thread Robert Schultz

I've been using the Google App Engine for a few weeks now, with a site
live and am decently impressed.  To go from being a .net developer to
writing Python and having my site live in 72 hours upon account
creation was fun.

To get to the point, I've run across a few things I would like to
mention to the App Engine team that are just minor nuisances I've
noticed.

- Could we have the ability to change the app name?  I'm slightly anal
but I would like to keep my naming consistent with my other Google
Apps services.  Originally it's all lowercase and I'd like to
capitalize it.
- Could we get a graphical data manager for the local environment like
we do with the administration console?  Or am I just not aware of this
one.
- Enhance the Images API to allow us to obtain the width and height of
an image.  This small feature would help a lot with image
manipulation.  For example, I may not want to resize in the case a
dimension is within my constraints.
- Allow more direct manipulation of the data or at least data schema
through the admin console.
- Make the columns sortable in the Data Viewer!
- I am not sure I understand the logic behind the 
http://..appspot.com
approach.  I would expect if I put in http://..appspot.com I could view that version at that point
but the only version I can ever see is the latest.
- Show each previous version in the admini console Versions list with
an option to 'Download'.  I guess this would then be a form of version
control.

Thanks a bunch, still learning something new every day :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: .net

2008-09-30 Thread Davide Rognoni

.NET coding is possible with:
http://pyoohtml.appspot.com/IronBrowser


On Sep 30, 3:32 pm, Wooble <[EMAIL PROTECTED]> wrote:
> On Sep 30, 6:33 am, amshuhu <[EMAIL PROTECTED]> wrote:
>
> > HI Developers and Moderators, in our GAE ".net" coding is possible?
>
> No.  Well, not unless you want to write a pure Python library that
> emulates the .net API.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Fixing Blob output for db.Model.to_xml()

2008-09-30 Thread Sylvain

Cool :)

I like the to_xml function, but it was broken with a model with a blob

Print the same thing than the data viewer ?
Something like that :

"4013 bytes, SHA-1 = 250d99ae712b26f50a26d2232c02ec3c3f05f789"

Regards


On 30 sep, 20:32, Rafe <[EMAIL PROTECTED]> wrote:
>   Folks,
>
>   Rafe Kaplan of the AppEngine team here.  I'm going to fix a small
> issue that might effect applications that want to export Blob data as
> XML.  It's been reported as issue 430, and you can read about it here:
>
>  http://code.google.com/p/googleappengine/issues/detail?id=430
>
>   The output of the XML document being produced by the to_xml method
> is always a Unicode string.  The problem arises when binary data is
> converted to unicode which doesn't encode properly.  The solution that
> I am going to pursue is to convert all Blob objects to a text encoding
> format.  I was thinking that base64 is a typical solution, but wanted
> to find out if anyone on the boards had opinions or ideas about how
> better to encode binary data in to an XML document.
>
>   Also, this change will change the behavior of applications that
> already output Blob data to XML.  Normally, we do not make changes to
> API's that can break already existing application, but given that this
> function is probably broken in most places it is being used, it seems
> appropriate.  Hopefully, those applications will already treat text in
> such output as opaque binary data.
>
>   I cannot promise that I will honor all ideas, but I want to hear as
> many as I can.  I don't believe I've thought of everything!  So,
> please respond to this thread with ideas and suggestions if this
> feature interests you.
>
>   - Rafe Kaplan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Warning 1221mcycles /!\ 0kb

2008-09-30 Thread Marzia Niccolai
Hi Davide,

I've posted this exact same code in one of my apps, but am unable to
replicate this warning. In fact I'm consistently getting around 5 mcycles in
my log for this page.  Can you provide some more information, or the
specific example?

Also, is your application doing any additional module imports, or
pre-processing for each request?  If this were the case, it could be that
you are doing some expensive processing on every request that is causing the
warning.

-Marzia

On Mon, Sep 29, 2008 at 12:13 PM, Davide Rognoni
<[EMAIL PROTECTED]>wrote:

>
> I don't understand, because the page is very simple:
>
> from google.appengine.ext import webapp
>
> class Home(webapp.RequestHandler):
>def get(self):
>self.redirect("http://appgallery.appspot.com/about_app?
> app_id=agphcHBnYWxsZXJ5chMLEgxBcHBsaWNhdGlvbnMYtR8M
> ")
>
>
> On Sep 28, 10:05 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> > Why I see this warning?
> >
> > 09-28 12:44PM 34.736 / 302 371ms 1221mcycles /!\ 0kb
> > 80.104.73.53 - - [28/09/2008:12:44:35 -0700] "GET / HTTP/1.1" 302 0 -
> > -
> > This request used a high amount of CPU, and was roughly 1.2 times over
> > the average request CPU limit. High CPU requests have a small quota,
> > and if you exceed this quota, your app will be temporarily disabled.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Compress Files

2008-09-30 Thread Davide Rognoni

"ZipMe : Download sources of your GAE website, as a zip file"
http://manatlan.com/blog/zipme___download_sources_of_your_gae_website__as_a_zip_file


On Sep 30, 8:47 pm, ipburbank <[EMAIL PROTECTED]> wrote:
> I have an amazon s3 account, and was hoping that I could make the
> user's life easier by compressing files before they download them from
> my website (like gmail). The idea being like a shopping cart, when the
> user clicks download it adds it to the 'shopping cart' and then after
> all of the files for download are selected the user will click a
> button which POSTs to google app engine, and google will get the
> selected files, compress them into one .zip and then send that to the
> user... I just don't know how... I'm very new to python, and have made
> programs that are too simple to be useful in Google app engine, so any
> basic help would be greatly appreciated, and sample code would be
> greatly appreciated!!!
>
> ~Thanks in advance, Istvan.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Warning 1221mcycles /!\ 0kb

2008-09-30 Thread Davide Rognoni

Hi Marzia,
thanks for your response :-)

Now I don't see the Warning.

My example is all: no other module or pre-processing.

-- David(e)

On Sep 30, 9:03 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi Davide,
>
> I've posted this exact same code in one of my apps, but am unable to
> replicate this warning. In fact I'm consistently getting around 5 mcycles in
> my log for this page.  Can you provide some more information, or the
> specific example?
>
> Also, is your application doing any additional module imports, or
> pre-processing for each request?  If this were the case, it could be that
> you are doing some expensive processing on every request that is causing the
> warning.
>
> -Marzia
>
> On Mon, Sep 29, 2008 at 12:13 PM, Davide Rognoni
> <[EMAIL PROTECTED]>wrote:
>
>
>
> > I don't understand, because the page is very simple:
>
> > from google.appengine.ext import webapp
>
> > class Home(webapp.RequestHandler):
> >        def get(self):
> >                self.redirect("http://appgallery.appspot.com/about_app?
> > app_id=agphcHBnYWxsZXJ5chMLEgxBcHBsaWNhdGlvbnMYtR8M
> > ")
>
> > On Sep 28, 10:05 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> > > Why I see this warning?
>
> > > 09-28 12:44PM 34.736 / 302 371ms 1221mcycles /!\ 0kb
> > > 80.104.73.53 - - [28/09/2008:12:44:35 -0700] "GET / HTTP/1.1" 302 0 -
> > > -
> > > This request used a high amount of CPU, and was roughly 1.2 times over
> > > the average request CPU limit. High CPU requests have a small quota,
> > > and if you exceed this quota, your app will be temporarily disabled.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Compress Files

2008-09-30 Thread ipburbank

hmm... that looks as though it is only for site code, i'm talking
about 100 mb + files...

On Sep 30, 3:12 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> "ZipMe : Download sources of your GAE website, as a zip 
> file"http://manatlan.com/blog/zipme___download_sources_of_your_gae_website...
>
> On Sep 30, 8:47 pm, ipburbank <[EMAIL PROTECTED]> wrote:
>
> > I have an amazon s3 account, and was hoping that I could make the
> > user's life easier by compressing files before they download them from
> > my website (like gmail). The idea being like a shopping cart, when the
> > user clicks download it adds it to the 'shopping cart' and then after
> > all of the files for download are selected the user will click a
> > button which POSTs to google app engine, and google will get the
> > selected files, compress them into one .zip and then send that to the
> > user... I just don't know how... I'm very new to python, and have made
> > programs that are too simple to be useful in Google app engine, so any
> > basic help would be greatly appreciated, and sample code would be
> > greatly appreciated!!!
>
> > ~Thanks in advance, Istvan.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Ridiculously High Profile Data for query.fetch

2008-09-30 Thread Marzia Niccolai
Hi Patrick,

The profiler for the dev_appserver won't be very informative for optimizing
your app in production when it comes to the datastore, the datastore on the
dev_appserver is basically a flat file.

You should run the profiler in production.  Instructions on how to do this
can be found in the Google I/O talk Building a Production Quality
Application on Google App Engine (
http://sites.google.com/site/io/best-practices---building-a-production-quality-application-on-google-app-engine
).

Without having more specific details, I'd say two things off the top of my
head are
1) Think about using memcache instead of querying the datastore on every
single request.  It's unlikely that the query results will change with every
request, so there is no need to keep querying the datastore for the same
results
2) Don't import expensive modules until you use them

-Marzia

On Mon, Sep 29, 2008 at 2:19 AM, Hawk-McKain <[EMAIL PROTECTED]> wrote:

>
> Howdy, Folks
>
> A short while ago my app started throwing all sorts of nasty "Your app
> just used 1.9 times the allocated CPU time!" warning logs for
> basically every page load. Apparently I'm having some troubles with
> query.fetch which I'm hoping someone can help me sort out. For some
> reason just a simple query like the one below causes the profiler to
> throw out crazy numbers: "237860 function calls (234982 primitive
> calls) in 1.409 CPU seconds"
>
> query = Profile.all()
> query.filter('public =', True)
> query.order('-updated')
> recent_profiles = query.fetch(5)
>
> the "Profile" datastore object has:
>
> - 1 UserProperty
> - 2 DateTimeProperties
> - 1 BooleanProperty
> - 7 StringProperties
> - 2 TextProperties
>
> Also, since this is on my development server I don't have more than 15
> entries.
>
> My appologies ahead of time for getting any crucial details, I'm a bit
> lost on where to go from here since most of my code has been pulled
> straight from the docs.
>
> Thanks in advance for any support,
> Patrick
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Compress Files

2008-09-30 Thread Davide Rognoni

Yes, the example is your GAE output.
The GAE input will be:

"URL Fetch API"
http://code.google.com/appengine/docs/urlfetch/overview.html


On Sep 30, 9:24 pm, ipburbank <[EMAIL PROTECTED]> wrote:
> hmm... that looks as though it is only for site code, i'm talking
> about 100 mb + files...
>
> On Sep 30, 3:12 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
>
> > "ZipMe : Download sources of your GAE website, as a zip 
> > file"http://manatlan.com/blog/zipme___download_sources_of_your_gae_website...
>
> > On Sep 30, 8:47 pm, ipburbank <[EMAIL PROTECTED]> wrote:
>
> > > I have an amazon s3 account, and was hoping that I could make the
> > > user's life easier by compressing files before they download them from
> > > my website (like gmail). The idea being like a shopping cart, when the
> > > user clicks download it adds it to the 'shopping cart' and then after
> > > all of the files for download are selected the user will click a
> > > button which POSTs to google app engine, and google will get the
> > > selected files, compress them into one .zip and then send that to the
> > > user... I just don't know how... I'm very new to python, and have made
> > > programs that are too simple to be useful in Google app engine, so any
> > > basic help would be greatly appreciated, and sample code would be
> > > greatly appreciated!!!
>
> > > ~Thanks in advance, Istvan.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Are all servers in the cloud up to date?

2008-09-30 Thread Marzia Niccolai
Hi,

All servers on App Engine are running the same version of App Engine, so
this is not the issue.

What was the issue fix that you believe fixed this for appengine utilities?

-Marzia

On Tue, Sep 30, 2008 at 5:54 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> http://code.google.com/p/appengine-utitlies/issues/detail?id=33
>
> This issue was recently filed on the appengine-utilities project. This
> problem was actually resolved several updates ago when some changes
> were made for the pickling process. Seeing it happen live now causes
> me to be concerned that not all application servers in the cloud are
> getting updated?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Fixing Blob output for db.Model.to_xml()

2008-09-30 Thread Davide Rognoni

Does "db.Model.from_xml(xmlstring)" exist?

On Sep 30, 8:58 pm, Sylvain <[EMAIL PROTECTED]> wrote:
> Cool :)
>
> I like the to_xml function, but it was broken with a model with a blob
>
> Print the same thing than the data viewer ?
> Something like that :
>
> "4013 bytes, SHA-1 = 250d99ae712b26f50a26d2232c02ec3c3f05f789"
>
> Regards
>
> On 30 sep, 20:32, Rafe <[EMAIL PROTECTED]> wrote:
>
> >   Folks,
>
> >   Rafe Kaplan of the AppEngine team here.  I'm going to fix a small
> > issue that might effect applications that want to export Blob data as
> > XML.  It's been reported as issue 430, and you can read about it here:
>
> >  http://code.google.com/p/googleappengine/issues/detail?id=430
>
> >   The output of the XML document being produced by the to_xml method
> > is always a Unicode string.  The problem arises when binary data is
> > converted to unicode which doesn't encode properly.  The solution that
> > I am going to pursue is to convert all Blob objects to a text encoding
> > format.  I was thinking that base64 is a typical solution, but wanted
> > to find out if anyone on the boards had opinions or ideas about how
> > better to encode binary data in to an XML document.
>
> >   Also, this change will change the behavior of applications that
> > already output Blob data to XML.  Normally, we do not make changes to
> > API's that can break already existing application, but given that this
> > function is probably broken in most places it is being used, it seems
> > appropriate.  Hopefully, those applications will already treat text in
> > such output as opaque binary data.
>
> >   I cannot promise that I will honor all ideas, but I want to hear as
> > many as I can.  I don't believe I've thought of everything!  So,
> > please respond to this thread with ideas and suggestions if this
> > feature interests you.
>
> >   - Rafe Kaplan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: A few feature suggestions

2008-09-30 Thread Davide Rognoni

I vote this :-)

- Show each previous version in the admini console Versions list with
an option to 'Download'.  I guess this would then be a form of version
control.


On Sep 30, 8:10 pm, Robert Schultz <[EMAIL PROTECTED]> wrote:
> I've been using the Google App Engine for a few weeks now, with a site
> live and am decently impressed.  To go from being a .net developer to
> writing Python and having my site live in 72 hours upon account
> creation was fun.
>
> To get to the point, I've run across a few things I would like to
> mention to the App Engine team that are just minor nuisances I've
> noticed.
>
> - Could we have the ability to change the app name?  I'm slightly anal
> but I would like to keep my naming consistent with my other Google
> Apps services.  Originally it's all lowercase and I'd like to
> capitalize it.
> - Could we get a graphical data manager for the local environment like
> we do with the administration console?  Or am I just not aware of this
> one.
> - Enhance the Images API to allow us to obtain the width and height of
> an image.  This small feature would help a lot with image
> manipulation.  For example, I may not want to resize in the case a
> dimension is within my constraints.
> - Allow more direct manipulation of the data or at least data schema
> through the admin console.
> - Make the columns sortable in the Data Viewer!
> - I am not sure I understand the logic behind the 
> http://..appspot.com
> approach.  I would expect if I put in http:// version>..appspot.com I could view that version at that point
> but the only version I can ever see is the latest.
> - Show each previous version in the admini console Versions list with
> an option to 'Download'.  I guess this would then be a form of version
> control.
>
> Thanks a bunch, still learning something new every day :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Are all servers in the cloud up to date?

2008-09-30 Thread [EMAIL PROTECTED]

This one: (issue 588)

http://code.google.com/p/googleappengine/issues/detail?id=588&can=5&q=eoferror&colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log

On Sep 30, 3:34 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> All servers on App Engine are running the same version of App Engine, so
> this is not the issue.
>
> What was the issue fix that you believe fixed this for appengine utilities?
>
> -Marzia
>
> On Tue, Sep 30, 2008 at 5:54 AM, [EMAIL PROTECTED] <
>
> [EMAIL PROTECTED]> wrote:
>
> >http://code.google.com/p/appengine-utitlies/issues/detail?id=33
>
> > This issue was recently filed on the appengine-utilities project. This
> > problem was actually resolved several updates ago when some changes
> > were made for the pickling process. Seeing it happen live now causes
> > me to be concerned that not all application servers in the cloud are
> > getting updated?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] [Feature Suggestions] The Model Class -- "from_xml(xmlstring)"

2008-09-30 Thread Davide Rognoni

Now exists "to_xml()" -- Returns an XML representation of the model
instance.

This will be useful "from_xml(xmlstring)" -- Returns a model instance
of the XML representation.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Fixing Blob output for db.Model.to_xml()

2008-09-30 Thread Rafe

  Actually, that's an idea.  Include a bit of additional info with the
data.  But maybe those bits of info should go in to attributes?

On Sep 30, 11:58 am, Sylvain <[EMAIL PROTECTED]> wrote:
> Cool :)
>
> I like the to_xml function, but it was broken with a model with a blob
>
> Print the same thing than the data viewer ?
> Something like that :
>
> "4013 bytes, SHA-1 = 250d99ae712b26f50a26d2232c02ec3c3f05f789"
>
> Regards
>
> On 30 sep, 20:32, Rafe <[EMAIL PROTECTED]> wrote:
>
> >   Folks,
>
> >   Rafe Kaplan of the AppEngine team here.  I'm going to fix a small
> > issue that might effect applications that want to export Blob data as
> > XML.  It's been reported as issue 430, and you can read about it here:
>
> >  http://code.google.com/p/googleappengine/issues/detail?id=430
>
> >   The output of the XML document being produced by the to_xml method
> > is always a Unicode string.  The problem arises when binary data is
> > converted to unicode which doesn't encode properly.  The solution that
> > I am going to pursue is to convert all Blob objects to a text encoding
> > format.  I was thinking that base64 is a typical solution, but wanted
> > to find out if anyone on the boards had opinions or ideas about how
> > better to encode binary data in to an XML document.
>
> >   Also, this change will change the behavior of applications that
> > already output Blob data to XML.  Normally, we do not make changes to
> > API's that can break already existing application, but given that this
> > function is probably broken in most places it is being used, it seems
> > appropriate.  Hopefully, those applications will already treat text in
> > such output as opaque binary data.
>
> >   I cannot promise that I will honor all ideas, but I want to hear as
> > many as I can.  I don't believe I've thought of everything!  So,
> > please respond to this thread with ideas and suggestions if this
> > feature interests you.
>
> >   - Rafe Kaplan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Fixing Blob output for db.Model.to_xml()

2008-09-30 Thread Rafe

  No it does not at this time.

On Sep 30, 12:49 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> Does "db.Model.from_xml(xmlstring)" exist?
>
> On Sep 30, 8:58 pm, Sylvain <[EMAIL PROTECTED]> wrote:
>
> > Cool :)
>
> > I like the to_xml function, but it was broken with a model with a blob
>
> > Print the same thing than the data viewer ?
> > Something like that :
>
> > "4013 bytes, SHA-1 = 250d99ae712b26f50a26d2232c02ec3c3f05f789"
>
> > Regards
>
> > On 30 sep, 20:32, Rafe <[EMAIL PROTECTED]> wrote:
>
> > >   Folks,
>
> > >   Rafe Kaplan of the AppEngine team here.  I'm going to fix a small
> > > issue that might effect applications that want to export Blob data as
> > > XML.  It's been reported as issue 430, and you can read about it here:
>
> > >  http://code.google.com/p/googleappengine/issues/detail?id=430
>
> > >   The output of the XML document being produced by the to_xml method
> > > is always a Unicode string.  The problem arises when binary data is
> > > converted to unicode which doesn't encode properly.  The solution that
> > > I am going to pursue is to convert all Blob objects to a text encoding
> > > format.  I was thinking that base64 is a typical solution, but wanted
> > > to find out if anyone on the boards had opinions or ideas about how
> > > better to encode binary data in to an XML document.
>
> > >   Also, this change will change the behavior of applications that
> > > already output Blob data to XML.  Normally, we do not make changes to
> > > API's that can break already existing application, but given that this
> > > function is probably broken in most places it is being used, it seems
> > > appropriate.  Hopefully, those applications will already treat text in
> > > such output as opaque binary data.
>
> > >   I cannot promise that I will honor all ideas, but I want to hear as
> > > many as I can.  I don't believe I've thought of everything!  So,
> > > please respond to this thread with ideas and suggestions if this
> > > feature interests you.
>
> > >   - Rafe Kaplan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



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

2008-09-30 Thread Aral Balkan

How many versions did you have? (I'm assuming you've hit some sort of
upper limit on _minor_ versions?)

Aral

On Sep 30, 7:34 pm, "Venkatesh Rangarajan"
<[EMAIL PROTECTED]> wrote:
> Hi,
> I am getting the following error when I try to upload my app. Been having
> this since last night and cannot update my APP at all ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: 'NoneType' object is unsubscriptable

2008-09-30 Thread Marzia Niccolai
Hi,

I believe this is related to the 'offset' that you are are using, and am
curious if you could elaborate more as to with which values of 'offset' this
occurs and the number of results you think you have in your results set.

-Marzia

On Mon, Sep 29, 2008 at 9:07 AM, Venkatesh Rangarajan <
[EMAIL PROTECTED]> wrote:

> Sample Error :
>
> http://payrate.appspot.com/?keyword=Lead+Programmer
>
>
> On Thu, Sep 25, 2008 at 10:15 AM, Venkatesh Rangarajan <
> [EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I am running a simple query
>>
>>keyword = self.request.get('keyword')
>>
>>if len(keyword) <=0:
>> keyword='Google Engineer'
>>
>>query = search.SearchableQuery('Visa')
>>query.Search(keyword)
>>
>>  for result in query.Get(100, int(page)):
>> visas.append(result)
>>
>> I keep running into the following error in some occasions. Not all.
>>
>> Traceback (most recent call last):
>>
>>   File 
>> "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 
>> 496, in __call__
>> handler.get(*groups)
>>   File "/base/data/home/apps/payrate/3.33/Main.py", line 142, in get
>>
>>
>> for result in query.Get(100, int(page)):
>>   File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 
>> 938, in Get
>> return self._Run(limit, offset)._Next(limit)
>>   File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 
>> 885, in _Run
>>
>>
>> *datastore_index.CompositeIndexForQuery(pb)[:-1])
>> TypeError: 'NoneType' object is unsubscriptable
>>
>>
>> Any idea on how to handle these and what is causing it? And why does it
>> happen only for certain keywords
>>
>> Rgds,
>> Venkatesh
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: 'NoneType' object is unsubscriptable

2008-09-30 Thread Venkatesh Rangarajan
Hi Marzia,

I think this issue is not related to the offset, because the same query was
working fine previously. It started failing after the volume of data
increased . I think the current volume is 700K (700+ MB).

I am using offset to limit 100 records per page.

Refer to : http://payrate.appspot.com/information_architect_salary

This was working till 2 days back and failing now. I have added a Unique URL
to make it Google Search friendly...basically it translate to

http://payrate.appspot.com/?keyword=information+architect

At this point the offset would be zero.

Also :
http://payrate.appspot.com/?keyword=Google+Software+Development+Engineer  .
This fails with the same error

While
http://payrate.appspot.com/?keyword=Google+Engineer  works fine.

I have noticed that if I increase the number of keywords passed for the
search, it fails with this error.

Please help.

Rgds,
Venkatesh



On Tue, Sep 30, 2008 at 2:27 PM, Marzia Niccolai <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I believe this is related to the 'offset' that you are are using, and am
> curious if you could elaborate more as to with which values of 'offset' this
> occurs and the number of results you think you have in your results set.
>
> -Marzia
>
>
> On Mon, Sep 29, 2008 at 9:07 AM, Venkatesh Rangarajan <
> [EMAIL PROTECTED]> wrote:
>
>> Sample Error :
>>
>> http://payrate.appspot.com/?keyword=Lead+Programmer
>>
>>
>> On Thu, Sep 25, 2008 at 10:15 AM, Venkatesh Rangarajan <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hi,
>>>
>>> I am running a simple query
>>>
>>>keyword = self.request.get('keyword')
>>>
>>>if len(keyword) <=0:
>>> keyword='Google Engineer'
>>>
>>>query = search.SearchableQuery('Visa')
>>>query.Search(keyword)
>>>
>>>  for result in query.Get(100, int(page)):
>>> visas.append(result)
>>>
>>> I keep running into the following error in some occasions. Not all.
>>>
>>> Traceback (most recent call last):
>>>
>>>
>>>   File 
>>> "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 
>>> 496, in __call__
>>> handler.get(*groups)
>>>   File "/base/data/home/apps/payrate/3.33/Main.py", line 142, in get
>>>
>>>
>>>
>>> for result in query.Get(100, int(page)):
>>>   File "/base/python_lib/versions/1/google/appengine/api/datastore.py", 
>>> line 938, in Get
>>> return self._Run(limit, offset)._Next(limit)
>>>   File "/base/python_lib/versions/1/google/appengine/api/datastore.py", 
>>> line 885, in _Run
>>>
>>>
>>>
>>> *datastore_index.CompositeIndexForQuery(pb)[:-1])
>>> TypeError: 'NoneType' object is unsubscriptable
>>>
>>>
>>> Any idea on how to handle these and what is causing it? And why does it
>>> happen only for certain keywords
>>>
>>> Rgds,
>>> Venkatesh
>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



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

2008-09-30 Thread Venkatesh Rangarajan
I have 11 versions in all..my default version is 9.5

I can't update either version 11 or version 9,  neither can I add a new
version 12.


On Tue, Sep 30, 2008 at 2:18 PM, Aral Balkan <[EMAIL PROTECTED]> wrote:

>
> How many versions did you have? (I'm assuming you've hit some sort of
> upper limit on _minor_ versions?)
>
> Aral
>
> On Sep 30, 7:34 pm, "Venkatesh Rangarajan"
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I am getting the following error when I try to upload my app. Been having
> > this since last night and cannot update my APP at all ?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: 'NoneType' object is unsubscriptable

2008-09-30 Thread Venkatesh Rangarajan
And yes, my model is defined as a searchable entity. Using the default
bulk-loader code with no tweaking.

def HandleEntity(self, entity):
ent = search.SearchableEntity(entity)
return ent

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



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

2008-09-30 Thread Marzia Niccolai
This is most likely
http://code.google.com/p/googleappengine/issues/detail?id=690

Please try iterating the major version number in your app.yaml file.

-Marzia

On Tue, Sep 30, 2008 at 2:42 PM, Venkatesh Rangarajan <
[EMAIL PROTECTED]> wrote:

> I have 11 versions in all..my default version is 9.5
>
> I can't update either version 11 or version 9,  neither can I add a new
> version 12.
>
>
>
> On Tue, Sep 30, 2008 at 2:18 PM, Aral Balkan <[EMAIL PROTECTED]> wrote:
>
>>
>> How many versions did you have? (I'm assuming you've hit some sort of
>> upper limit on _minor_ versions?)
>>
>> Aral
>>
>> On Sep 30, 7:34 pm, "Venkatesh Rangarajan"
>> <[EMAIL PROTECTED]> wrote:
>> > Hi,
>> > I am getting the following error when I try to upload my app. Been
>> having
>> > this since last night and cannot update my APP at all ?
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: A few feature suggestions

2008-09-30 Thread shday

> - Could we get a graphical data manager for the local environment like
> we do with the administration console?  Or am I just not aware of this
> one.

I think you're looking for this:

http://localhost:8080/_ah/admin/datastore

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



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

2008-09-30 Thread Venkatesh Rangarajan
Okay. I deleted all the versions ( from appengine console in PROD). Now I
was able to create a new version.

Rgds,
Venkatesh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TONS of High Amount CPU Warnings!!

2008-09-30 Thread mitnickcbc

Thanks Jeremy, you saved my life...

It is an issue related with memcache. I did a flush but it isn't back
to normal immediately. Then I removed one most common memcache call
and it works now.


On Oct 1, 2:06 am, jeremysomething <[EMAIL PROTECTED]> wrote:
> I was getting similar things this weekend. No code changes, but
> everything was getting denials.
>
> Are you using memcache?
>
> For me, these were taking to long and using alot of CPU in simple
> memcache gets..
>
> I flushed the cache and haven't seen a quota denial since.
>
> On Sep 30, 7:10 am, mitnickcbc <[EMAIL PROTECTED]> wrote:
>
> > It has been 6 hours that my app is total unavailable due to quota
> > denials caused by abnormal amount of high amount CPU warnings. I
> > didn't change a single line of code and most of my requests start
> > throwing this warning. Any change in logic about high CPU warning?
> > Lowering this high CPU bar will kill apps.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TONS of High Amount CPU Warnings!!

2008-09-30 Thread Marzia Niccolai
Hi,

Can you please provide more information on what happened in this case?  What
code was causing the issue, and how removing memcache would have helped with
this?

Thanks,
Marzia

On Tue, Sep 30, 2008 at 11:06 AM, jeremysomething <
[EMAIL PROTECTED]> wrote:

>
> I was getting similar things this weekend. No code changes, but
> everything was getting denials.
>
> Are you using memcache?
>
> For me, these were taking to long and using alot of CPU in simple
> memcache gets..
>
> I flushed the cache and haven't seen a quota denial since.
>
> On Sep 30, 7:10 am, mitnickcbc <[EMAIL PROTECTED]> wrote:
> > It has been 6 hours that my app is total unavailable due to quota
> > denials caused by abnormal amount of high amount CPU warnings. I
> > didn't change a single line of code and most of my requests start
> > throwing this warning. Any change in logic about high CPU warning?
> > Lowering this high CPU bar will kill apps.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Upgrade to GoogleAppEngineLauncher 1.1.4 breaks apps running on 1.1.3

2008-09-30 Thread esciara

Hi there,

I posted this as issue 748 ( http://groups.google.com/group/google-appengine
) but should probably have asked this group first I guess.

Looks like this is an environment development settings problem that
followed the automatic upgrade 1.1.3 -> 1.1.4, but after that I tried
to roll back to 1.1.3 and even 1.1.4, but I have got the same problem.
Here is a copy/paste of the issue.

What steps will reproduce the problem?
1. Have GoogleAppEngineLauncher 1.1.3 installed on you Mac
2. let Google Updater update to 1.1.4 or download version 1.1.4 dmg
from site and install
3.

Does this problem exist with both the SDK app server and our
production app servers?
No only on the SDK app

What is the expected output? What do you see instead?
Expected output is that application running on 1.1.3 run all the same
on 1.1.4.
Got this error instead, which looks to me like an environment setting
problem:

Traceback (most recent call last):
  File
"/Developer/Applications/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngin
e-
default.bundle/Contents/Resources/google_appengine/google/appengine/
ext/webapp/__init__.
py", line 496, in __call__
handler.get(*groups)
  File "/Users/developer/Development/workspace/property-connect/
property-connect.py", line
180, in get
self.ensureGdataClientsAuthorised()
  File "/Users/developer/Development/workspace/property-connect/
property-connect.py", line
94, in ensureGdataClientsAuthorised
self.ensureGdataClientAuthorised(self.docs_client_scope)
  File "/Users/developer/Development/workspace/property-connect/
property-connect.py", line
105, in ensureGdataClientAuthorised
self.redirectToObtainToken(token_scope)
  File "/Users/developer/Development/workspace/property-connect/
property-connect.py", line
114, in redirectToObtainToken
self.redirectAndThrow(auth_sub_url)
  File "/Users/developer/Development/workspace/property-connect/
property-connect.py", line
72, in redirectAndThrow
self.redirect(url, permanent)
  File
"/Developer/Applications/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngin
e-
default.bundle/Contents/Resources/google_appengine/google/appengine/
ext/webapp/__init__.
py", line 364, in redirect
absolute_url = urlparse.urljoin(self.request.uri, uri)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urlparse.py",
line 254, in urljoin
urlparse(url, bscheme, allow_fragments)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urlparse.py",
line 154, in urlparse
tuple = urlsplit(url, scheme, allow_fragments)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urlparse.py",
line 194, in urlsplit
i = url.find(':')
AttributeError: 'Url' object has no attribute 'find'

What version of the product are you using? On what operating system?
1.1.4 on MacOS 10.5.5

Anybody to tell me how to fix my environment?

Cheers

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: 'NoneType' object is unsubscriptable

2008-09-30 Thread Marzia Niccolai
Hi,

Actually, upon further inspection, this is an issue of the query you are
running needing an index, but since the query doesn't need one in most
cases, we can't print the definition.

Please add indexes for the queries experiencing these issues.

-Marzia

On Tue, Sep 30, 2008 at 2:47 PM, Venkatesh Rangarajan <
[EMAIL PROTECTED]> wrote:

> And yes, my model is defined as a searchable entity. Using the default
> bulk-loader code with no tweaking.
>
> def HandleEntity(self, entity):
> ent = search.SearchableEntity(entity)
> return ent
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TypeError: 'NoneType' object is unsubscriptable

2008-09-30 Thread Venkatesh Rangarajan
Its a search able model ? The documentation says they don't need indexes.
Can you please advice me what index I should add ?

Here is my query below.

def db_visas(keyword, offset):
 visas=[]
 query = search.SearchableQuery('Visa')
 query.Search(keyword)
 for result in query.Get(101, offset):
  visas.append(result)
 return visas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Registering from a non-listed country

2008-09-30 Thread Milton Segura

Thanks Jeff, I tried that when you told me but so far nothing has
happened yet.. so I'll just wait and try some other day

On Sep 25, 12:22 pm, Jeff S <[EMAIL PROTECTED]> wrote:
> Hi Milton,
>
> Registering when SMS is unavailable is covered in our 
> FAQs:http://code.google.com/appengine/kb/sms.html#error
>
> Cheers,
>
> Jeff
>
> On Sep 24, 1:39 pm, Milton Segura <[EMAIL PROTECTED]> wrote:
>
> > Hello, I was wondering what the correct way to input the number for
> > the activation is or if it is even available at the moment.
>
> > I'm from El Salvador, code 503, and I tried to type "+503 7###",
> > where # is a number, but it wouldn't recognize it.
>
> > Any help will be appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Terrible

2008-09-30 Thread zunzun

As I recall, unusers drink 7-Up because it's the uncola.

 James

On Sep 30, 9:01 am, Martynas Brijunas <[EMAIL PROTECTED]> wrote:
> > I just hope a user and a unuser never actully meet, the anti-matter
> > explosion could destroy the earth!
>
> Colleagues are looking at me as if I am crazy, cannot stop laughing
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Terrible

2008-09-30 Thread Sal

I enjoyed reading this thread. Thank you all. :D

On Sep 30, 4:19 am, "Barry Hunter" <[EMAIL PROTECTED]>
wrote:
> On Mon, Sep 29, 2008 at 11:43 PM, zunzun <[EMAIL PROTECTED]> wrote:
>
>
> I just hope a user and a unuser never actully meet, the anti-matter
> explosion could destroy the earth!
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Compilation of unanswered datastore questions

2008-09-30 Thread Bill

Here's another question:
  What's the best practice for handling timeout (and other) db errors?

This is partly prompted by ryan's recent comment that "regardless of
how your data is shaped, you'll at least see a
small timeout rate. .01% is in the ballpark."  [http://
groups.google.com/group/google-appengine/browse_thread/thread/
dd90847d0e7c1ceb#]

I admit to not checking for timeouts for a single small put.  It means
that there should be some thought behind all uses of datastore with
respect to db.Error.  I looked at rietveld source code for some error
handling examples but didn't find any interesting patterns.  There are
some general db.Error catches but no Timeout or CapabilityDisabled
exception handling.   (By the way, a couple of the last exceptions in
datastore_errors.py aren't documented at
http://code.google.com/appengine/docs/datastore/exceptions.html.
Should documentation issues be logged in the SDK area?)

If you receive a timeout, do you need to launch another request from
the client because your time is already used up for the current
request?  I assume that many errors should re-initiate a request (or
ask user to resubmit) because the time quota on each request.  Is this
correct?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: bulk export

2008-09-30 Thread Garrett Davis

Yes.  I built a bulk download module. Please read about it here:
http://code.google.com/p/gawsh/wiki/BulkDownload
and download it from
http://code.google.com/p/gawsh/downloads/list

If it works for you, please let me know.
If it doesn't work for you, please let me know that as well.

On Sep 26, 4:24 am, "I.K." <[EMAIL PROTECTED]> wrote:
> Oops! this was supposed to be a reply to bulk upload post, but the
> question is still valid.
>
> On Sep 26, 12:18 pm, "I.K." <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Sorry to piggy-back off a slightly different topic, but it may have
> > the right audience.
>
> > I am toying with a mashup of google spreadsheets and the GAE, which
> > will partly involve pumping data back and forth.  You have made me
> > aware of the bulkloader which should be a useful way to get a lot of
> > data into GAE, however does anybody ave a suitably efficient version
> > of the reverse? ie getting a lot of data out of datastore in csv,
> > without just coding it yourself?
>
> > thanks
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: TONS of High Amount CPU Warnings!!

2008-09-30 Thread mitnickcbc

It's not solved... Quota denials coming back again.  It just be normal
for about half an hour.

It has been 24 hours that during some period, high volume of high CPU
warning coming and some period, not a single warning at all.

I have removed all related memcache, but still seeing this.

On 10月1日, 上午6时19分, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can you please provide more information on what happened in this case?  What
> code was causing the issue, and how removing memcache would have helped with
> this?
>
> Thanks,
> Marzia
>
> On Tue, Sep 30, 2008 at 11:06 AM, jeremysomething <
>
> [EMAIL PROTECTED]> wrote:
>
> > I was getting similar things this weekend. No code changes, but
> > everything was getting denials.
>
> > Are you using memcache?
>
> > For me, these were taking to long and using alot of CPU in simple
> > memcache gets..
>
> > I flushed the cache and haven't seen a quota denial since.
>
> > On Sep 30, 7:10 am, mitnickcbc <[EMAIL PROTECTED]> wrote:
> > > It has been 6 hours that my app is total unavailable due to quota
> > > denials caused by abnormal amount of high amount CPU warnings. I
> > > didn't change a single line of code and most of my requests start
> > > throwing this warning. Any change in logic about high CPU warning?
> > > Lowering this high CPU bar will kill apps.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] ProtocolBufferDecodeError

2008-09-30 Thread Jeff

Has anyone seen this error before?  It is coming up ~ every 5th
attempt to load the site and I can't figure out what this is.  Anyone
have ideas about what could be causing this?  It seems to be happening
during a fetch of items from the Datastore.  Any suggestions on how to
fix this?

ProtocolBufferDecodeError at /
Problem parsing scalar value into field: stringValue
Request Method: GET
Request URL:http://3.latest.truefoodies.appspot.com/
Exception Type: ProtocolBufferDecodeError
Exception Value:Problem parsing scalar value into field: stringValue
Exception Location: /base/python_lib/versions/1/google/appengine/
runtime/apiproxy.py in CheckSuccess, line 189

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] multiple or single trips to the data store (speed and cpu cycles)

2008-09-30 Thread [EMAIL PROTECTED]

my app is producing significantly high mcycles used results. i have
debugged it and determined that the problem is in my for loop. So I
tried two versions and both are too slow.

Version 1:

somestuff = ['cat', 'dog', 'cow'];

toquery = "SELECT * FROM Animals Where id IN (" + somestuff + ")"
users = db.GqlQuery(toquery)

now i get a list of users that match that key and I do a for loop like
this:

for user in users:
   self.response.out.write(user.id)

Gives me a lot of mcycles with a red hazard warning. If I remove the
for loop the hazard goes away. The datastore query takes less then a
second.

VERSION 2

somestuff = ['cat', 'dog', 'cow'];

for animal in somestuff:
   toquery = "SELECT * FROM Moodster Where id = '" + animal + '\''
   for user in users:
   self.response.out.write(user.id)

in the latter version I am doing many queries (in this case 3) but
because there is only one user in users for each query (i make sure of
this), it takes less mcycles and gets a faster response

AM I DOING SOMETHING WRONG?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] What to expect if an account is created after a User instance?

2008-09-30 Thread pr3d4t0r

Greetings.

I'm trying to determine what the behaviour for a User instance (and
the application) is if the Google Account is created *after* a User is
instantiated and added to the Datastore.

Scenario 1:

a) User instance is created with email = [EMAIL PROTECTED]
b) [EMAIL PROTECTED] is crated in Gmail
c) Application checks if it has a valid user; if not, user signs in
d) User continues to use the application


Senario 2:

Same as scenario 1 except that the email address is
[EMAIL PROTECTED]; somedomain.com is a Google hosted domain
with Google Apps.


I'm almost 100% sure that the User object in the Datastore has no
relevance until the matching account is created.  Prior to that it's
just taking space in the Datastore but it's otherwise unreachable, at
least from the application's point of view, until an account is
created and it can be associated with it through the hasValidUser() or
the get_current_user() methods.

Has Google published any plans to allow sign in through sign ins for
third-party domains that are Google hosted?

Thanks in advance and cheers,

pr3d4t0r
http://www.istheserverup.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: multiple or single trips to the data store (speed and cpu cycles)

2008-09-30 Thread Bill

Try using fetch instead of treating the GqlQuery object as an
iterable.  If you had included a LIMIT or OFFSET clause, it would
automatically be retrieved by fetch.
So it would be something like:

users = db.GqlQuery(toquery).fetch(limit=1000)

See http://code.google.com/appengine/docs/datastore/queryclass.html

You can also cache the query like rietveld.
See http://code.google.com/p/rietveld/source/browse/trunk/codereview/models.py
and look at the gql method.


On Sep 30, 7:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> my app is producing significantly high mcycles used results. i have
> debugged it and determined that the problem is in my for loop. So I
> tried two versions and both are too slow.
>
> Version 1:
>
> somestuff = ['cat', 'dog', 'cow'];
>
> toquery = "SELECT * FROM Animals Where id IN (" + somestuff + ")"
> users = db.GqlQuery(toquery)
>
> now i get a list of users that match that key and I do a for loop like
> this:
>
> for user in users:
>    self.response.out.write(user.id)
>
> Gives me a lot of mcycles with a red hazard warning. If I remove the
> for loop the hazard goes away. The datastore query takes less then a
> second.
>
> VERSION 2
>
> somestuff = ['cat', 'dog', 'cow'];
>
> for animal in somestuff:
>    toquery = "SELECT * FROM Moodster Where id = '" + animal + '\''
>    for user in users:
>        self.response.out.write(user.id)
>
> in the latter version I am doing many queries (in this case 3) but
> because there is only one user in users for each query (i make sure of
> this), it takes less mcycles and gets a faster response
>
> AM I DOING SOMETHING WRONG?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Any Site in Production Use ?

2008-09-30 Thread Bill

I know buddypoke.com is using AppEngine.  It's a fairly successful app
under heavy load.  (I want to say hundreds of requests per second but
can't say my memory is correct there.)

On Sep 30, 2:21 am, "Feris Thia" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I understand that GAE is still in preview used only, but I just wonder if
> anyone has used it in any semi or full production ? And with how many page
> hits / visitors per day ?
>
> --
> Thanks & Best Regards,
>
> Feris Thia
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Compress Files

2008-09-30 Thread Thomas Johansson

You can only send and receive 1Mb of data at a time on AppEngine
currently. Similarly, you can only store 1Mb app files and datastore
blobs.

On Sep 30, 9:24 pm, ipburbank <[EMAIL PROTECTED]> wrote:
> hmm... that looks as though it is only for site code, i'm talking
> about 100 mb + files...
>
> On Sep 30, 3:12 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
>
> > "ZipMe : Download sources of your GAE website, as a zip 
> > file"http://manatlan.com/blog/zipme___download_sources_of_your_gae_website...
>
> > On Sep 30, 8:47 pm, ipburbank <[EMAIL PROTECTED]> wrote:
>
> > > I have an amazon s3 account, and was hoping that I could make the
> > > user's life easier by compressing files before they download them from
> > > my website (like gmail). The idea being like a shopping cart, when the
> > > user clicks download it adds it to the 'shopping cart' and then after
> > > all of the files for download are selected the user will click a
> > > button which POSTs to google app engine, and google will get the
> > > selected files, compress them into one .zip and then send that to the
> > > user... I just don't know how... I'm very new to python, and have made
> > > programs that are too simple to be useful in Google app engine, so any
> > > basic help would be greatly appreciated, and sample code would be
> > > greatly appreciated!!!
>
> > > ~Thanks in advance, Istvan.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] [RESOLVED]: Custom HTTP 404/500 messages

2008-09-30 Thread Martynas Brijunas

Hi Alex,

> The template directory is specified in the settings.py, for example:
> TEMPLATE_DIRS = (
>     os.path.join(os.path.dirname(__file__), 'templates'),
> )

I could not find any instructions on how to use settings.py with the
plain GAE. However, I came accross one of your older posts here:

http://groups.google.com/group/google-appengine/browse_thread/thread/d849fd1a7bf18150/4bba646d86a0d80d?show_docid=4bba646d86a0d80d

In fact, that is exactly what I need! The idea of declaring a
BaseHandler is just brilliant for dealing with Error 500, while the
catch-all approach deals well with 404.

Thanks again.
Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---