[google-appengine] Re: Inconsistency between dev_server and production server on sharded counter behaviour.

2009-02-07 Thread djidjadji

Every GeneralCounterShard is an entity group.
A transaction can only operate on ONE entity group.
Your transaction code accesses every GeneralCounterShard for a given name.
With sharded counters you NEVER have a perfect value for the total count.
The value for get_count() <= Sum(shards)
You use shards because you have object-lock possibilities.

Maybe this will work (using the function names from the article [1])
Be aware that at maintenance moments memcache is not working.

def get_count_and_increment(name):
count = get_count(name)
increment(name)
return count+1

[1] http://code.google.com/appengine/articles/sharding_counters.html

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



[google-appengine] Re: Inconsistency between dev_server and production server on sharded counter behaviour.

2009-02-07 Thread Qian Qiao

On Sat, Feb 7, 2009 at 16:25, djidjadji  wrote:
>
> Every GeneralCounterShard is an entity group.
> A transaction can only operate on ONE entity group.
> Your transaction code accesses every GeneralCounterShard for a given name.
> With sharded counters you NEVER have a perfect value for the total count.
> The value for get_count() <= Sum(shards)
> You use shards because you have object-lock possibilities.
>
> Maybe this will work (using the function names from the article [1])
> Be aware that at maintenance moments memcache is not working.
>
> def get_count_and_increment(name):
>count = get_count(name)
>increment(name)
>return count+1
>
> [1] http://code.google.com/appengine/articles/sharding_counters.html

The code in my original email worked in dev_appserver, which I suppose
is incorrect.

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



[google-appengine] Re: what is the max length of get and post headers?

2009-02-07 Thread higherone

Thanks,but my question seems not being answered.I still don't know why
i only get part of the string . to clarify, i use windows ie explorer.
I guess GAE has do some limits .I need further help.thanks


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



[google-appengine] Re: App engine problems

2009-02-07 Thread conman

This is not the 500 page of our app. The reported problems resulted in
a 500 page of the google service.
So actually we cannot 'design the app to not do that' :)

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



[google-appengine] Re: App engine problems

2009-02-07 Thread conman

The error report on
http://code.google.com/status/appengine/detail/serving/2009/02/06#ae-trust-detail-helloworld-get-latency
from yesterday 11:00 am talks about a memcache problem which 'didn't
affect the perfomance or uptime of applications'

I hope this problem was the reason for the heavy error rate of our
application but then this statement is not quite true!

But most importantly the problem seems to be solved and everything is
back to normal :)

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



[google-appengine] RuntimeWarning: Custom _query_class specified without corresponding custom _query_multi_class. Things will break if you use queries with the "IN" or "!=" operators.

2009-02-07 Thread Tom

My app started throwing these error messages into the log yesterday
(no change to the app on my part).  Any ideas on the cause?

02-06 10:08PM 16.942 /android/bottle/search/ 200 145ms 744ms-cpu 0kb
208.54.83.57 - - [06/Feb/2009:22:08:17 -0800] "POST /android/bottle/
search/ HTTP/1.1" 200 184 - -
E 02-06 10:08PM 17.085
/base/python_lib/versions/1/google/appengine/ext/db/__init__.py:1558:
RuntimeWarning: Custom _query_class specified without corresponding
custom _query_multi_class. Things will break if you use queries with
the "IN" or "!=" operators.
E 02-06 10:08PM 17.085
  ' the "IN" or "!=" operators.', RuntimeWarning)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: RuntimeWarning: Custom _query_class specified without corresponding custom _query_multi_class. Things will break if you use queries with the "IN" or "!=" operators.

2009-02-07 Thread Tom

Perhaps associated with my use of SearchableModel?
http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/search/__init__.py?r=34

I have my own version of SearchableModel but its differences with the
trunk are only in how the words are added for searching
(unicodedata.normalize).

On Feb 7, 7:25 am, Tom  wrote:
> My app started throwing these error messages into the log yesterday
> (no change to the app on my part).  Any ideas on the cause?
>
> 02-06 10:08PM 16.942 /android/bottle/search/ 200 145ms 744ms-cpu 0kb
> 208.54.83.57 - - [06/Feb/2009:22:08:17 -0800] "POST /android/bottle/
> search/ HTTP/1.1" 200 184 - -
> E 02-06 10:08PM 17.085
> /base/python_lib/versions/1/google/appengine/ext/db/__init__.py:1558:
> RuntimeWarning: Custom _query_class specified without corresponding
> custom _query_multi_class. Things will break if you use queries with
> the "IN" or "!=" operators.
> E 02-06 10:08PM 17.085
>   ' the "IN" or "!=" operators.', RuntimeWarning)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Django 500's and Error Reporting

2009-02-07 Thread Waldemar Kornewald

On Feb 7, 4:31 am, Devel63  wrote:
> We just switched our project to using the Django 0.96 framework, and

Why not Django 1.0.2? Tracebacks definitely show up correctly with
that version.
http://code.google.com/p/app-engine-patch/

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



[google-appengine] Re: How to get the server running

2009-02-07 Thread dartdog

You have to specify the entire path to helloworld

On Feb 6, 1:16 pm, "andre...@strombacks.se" 
wrote:
> How do you get the server running? I'm trying to do the "Hello world"
> applicaton described in the "Getting started guide" and when I'm
> trying to start the webserver with the command: google_appengine/
> dev_appserver.py helloworld/, I only get an error message saying
> "Invalid syntax".
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Roadmap update and XMMP

2009-02-07 Thread Roberto Saccon

Now we know it, XMMP comes to appengine. So far, appengine has been
limited to shortlived-HTTP requests.  What are the educated guesses
(or somebody who knows it, is allowed to speak out loud here ...),
will XMMP bring streaming HTTP request with possibly longer lifetime
than 10 sec to appengine (but also higher cost, like HTTPS), so we can
do long-polling or other serverpush hacks ? Or none of this, it will
run on the same platform and just normal polling will be
"encouraged" ?

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



[google-appengine] Re: Roadmap update and XMMP

2009-02-07 Thread Roberto Saccon

Uuhh, typo, I mean XMPP, see
http://code.google.com/intl/und/appengine/docs/roadmap.html

On Feb 7, 12:20 pm, Roberto Saccon  wrote:
> Now we know it, XMMP comes to appengine. So far, appengine has been
> limited to shortlived-HTTP requests.  What are the educated guesses
> (or somebody who knows it, is allowed to speak out loud here ...),
> will XMMP bring streaming HTTP request with possibly longer lifetime
> than 10 sec to appengine (but also higher cost, like HTTPS), so we can
> do long-polling or other serverpush hacks ? Or none of this, it will
> run on the same platform and just normal polling will be
> "encouraged" ?
>
> Roberto
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to get the server running

2009-02-07 Thread dartdog

This might help I wrote up my experience with getting helloworld going
http://tombrander.wordpress.com/2008/12/28/getting-started-with-google-app-engine-hello-world/

On Feb 6, 1:16 pm, "andre...@strombacks.se" 
wrote:
> How do you get the server running? I'm trying to do the "Hello world"
> applicaton described in the "Getting started guide" and when I'm
> trying to start the webserver with the command: google_appengine/
> dev_appserver.py helloworld/, I only get an error message saying
> "Invalid syntax".
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Roadmap Request: increase the urlfetch limits

2009-02-07 Thread Carter Rabasa

Request: please increase the maximum file size of urlfetch!

I have created several apps on GAE that all interface with either
Twitter or FriendFeed's API.  Due to the current limitations of
urlfetch, any API call that tries to retrieve the social graph of some
popular (say, Robert Scoble) gets shut-down due to the size of the
response.

I realize that this is meant to prevent abuse of resources, but maybe
these calls could simply be rolled-in to the bandwidth caps?

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



[google-appengine] urlfetch problem

2009-02-07 Thread alokiN

Hi everyone,

I'm having trouble with using urlfetch. I'm trying to fetch a page
that needs authentication. The authentication is done by using an url
parameter (ie http://server/index.php?auth=authstring).

When I write the url in my browser, the page I want is shown. When I
call the fetch function with the same url, the login page is retrieved
instead of the expected page, as if the authentication parameter
wasn't recognised. I'm calling the function only with the url as the
parameter ( urlfetch.fetch(http://server/index.php?auth=authstring) ),
so the request should be a normal GET request.

Could you please tell me what am I doing wrong?

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



[google-appengine] Re: Django 500's and Error Reporting

2009-02-07 Thread Devel63

I'll look into this, but I think one reason we went with 0.96 is that
it's already included in GAE, so we don't have to upload any files,
have them counted against our file count limit, etc.

On Feb 7, 4:48 am, Waldemar Kornewald  wrote:
> On Feb 7, 4:31 am, Devel63  wrote:
>
> > We just switched our project to using the Django 0.96 framework, and
>
> Why not Django 1.0.2? Tracebacks definitely show up correctly with
> that version.http://code.google.com/p/app-engine-patch/
>
> Bye,
> Waldemar Kornewald
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to get the server running

2009-02-07 Thread andre...@strombacks.se

Thanks for the help but I still don't get it to work. To be honest I'm
feeling a bit stupid right now.

I'm running python version 2.5 and I have tried like a millon ways to
specify the correct path. But where am I supposed to enter the path?
The first I tried was in the Python GUI and in the Python command
line, and there is where I get the "syntax error" messages.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Again *major* server errors of app engine!

2009-02-07 Thread conman

It's happening again!!

Our site is not accessible but instead showing a google 500 server
error page!!!

The whole day everything worked normal but in the early evening
(Germany/Europe) or forenoon (PST) the serving of the site is broken
again - and I definitively didn't change anything today!

Yesterday at the same time of the day app engine had the exact same
problem:
http://groups.google.com/group/google-appengine/browse_thread/thread/4964daf12c05cd2b

What's up with that and where can I report this error so someone at
google will look into that?

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



[google-appengine] Re: Again *major* server errors of app engine!

2009-02-07 Thread johnP

I saw similar issues (with a google-issued, non-customized 500
deadline exceeded error).  I'm using appengine patch, and saw a large
increase in zipimporter calls.  It seemed like a large number of
requests were reloading the entire Django environment (and maybe doing
so more slowly than usual...) which resulted in periodic deadline
exceeded errors on very simple pages.Sound possible?

johnP


On Feb 7, 9:29 am, conman 
wrote:
> It's happening again!!
>
> Our site is not accessible but instead showing a google 500 server
> error page!!!
>
> The whole day everything worked normal but in the early evening
> (Germany/Europe) or forenoon (PST) the serving of the site is broken
> again - and I definitively didn't change anything today!
>
> Yesterday at the same time of the day app engine had the exact same
> problem:http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> What's up with that and where can I report this error so someone at
> google will look into that?
>
> Regards,
> Constantin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Again *major* server errors of app engine!

2009-02-07 Thread conman

Yea, I am using appengine patch too and in my logs are a lot deadline
exceeded errors which result from
request on very simple pages without any datastore operations.

But what's the problem? I have the feeling app engine is lagging at
this time of the day but that may be a oversimplification...
What's your solution to that problem - or are you just igoring it?

Constantin

On 7 Feb., 19:37, johnP  wrote:
> I saw similar issues (with a google-issued, non-customized 500
> deadline exceeded error).  I'm using appengine patch, and saw a large
> increase in zipimporter calls.  It seemed like a large number of
> requests were reloading the entire Django environment (and maybe doing
> so more slowly than usual...) which resulted in periodic deadline
> exceeded errors on very simple pages.    Sound possible?
>
> johnP
>
> On Feb 7, 9:29 am, conman 
> wrote:
>
> > It's happening again!!
>
> > Our site is not accessible but instead showing a google 500 server
> > error page!!!
>
> > The whole day everything worked normal but in the early evening
> > (Germany/Europe) or forenoon (PST) the serving of the site is broken
> > again - and I definitively didn't change anything today!
>
> > Yesterday at the same time of the day app engine had the exact same
> > problem:http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > What's up with that and where can I report this error so someone at
> > google will look into that?
>
> > Regards,
> > Constantin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Again *major* server errors of app engine!

2009-02-07 Thread johnP

No solution - just gathering information.  Looking more closely at the
logs where the errors occur, the deadline exceeded pops up somewhere
while loading and patching django.  This started a couple days ago.
Maybe it'll go away?

Oh well - I'm gonna enjoy the rest of the weekend, and will come back
to this on Monday.  :)

johnP



On Feb 7, 10:59 am, conman 
wrote:
> Yea, I am using appengine patch too and in my logs are a lot deadline
> exceeded errors which result from
> request on very simple pages without any datastore operations.
>
> But what's the problem? I have the feeling app engine is lagging at
> this time of the day but that may be a oversimplification...
> What's your solution to that problem - or are you just igoring it?
>
> Constantin
>
> On 7 Feb., 19:37, johnP  wrote:
>
> > I saw similar issues (with a google-issued, non-customized 500
> > deadline exceeded error).  I'm using appengine patch, and saw a large
> > increase in zipimporter calls.  It seemed like a large number of
> > requests were reloading the entire Django environment (and maybe doing
> > so more slowly than usual...) which resulted in periodic deadline
> > exceeded errors on very simple pages.    Sound possible?
>
> > johnP
>
> > On Feb 7, 9:29 am, conman 
> > wrote:
>
> > > It's happening again!!
>
> > > Our site is not accessible but instead showing a google 500 server
> > > error page!!!
>
> > > The whole day everything worked normal but in the early evening
> > > (Germany/Europe) or forenoon (PST) the serving of the site is broken
> > > again - and I definitively didn't change anything today!
>
> > > Yesterday at the same time of the day app engine had the exact same
> > > problem:http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > > What's up with that and where can I report this error so someone at
> > > google will look into that?
>
> > > Regards,
> > > Constantin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: does GAE have pycrypto?

2009-02-07 Thread Anthony

Thanks, that's what I've been doing locally.  So I suppose when I
deploy to the GAE server, I should bundle all non-standard libraries
with my application files?

On Feb 7, 1:11 am, 陈浩  wrote:
> The module you import is not python standard library. Maybe you can
> find it in that sample folder or download it.
>
> On 2/7/09, Anthony  wrote:
>
>
>
>
>
> > Hi,
>
> > At the end of the OpenSocial gifts tutorial:
> >  http://code.google.com/apis/opensocial/articles/appengine-0.8.html
>
> >pycryptois invoked on GAE to authenticate a signed request.  But when
> > I try to do this myself, GAE can't find thepycryptomodules!  Am I
> > doing something wrong?
>
> > : No module named Crypto.PublicKey
> > Traceback (most recent call last):
> >   File "/base/data/home/apps/accardi-dev/1.331241728430924979/
> > gifts.py", line 8, in 
> > import api
> >   File "/base/data/home/apps/accardi-dev/1.331241728430924979/api.py",
> > line 15, in 
> > from Crypto.PublicKey import RSA
> > : No module named Crypto.PublicKey
>
> --
> This letter from ChenHao.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Again *major* server errors of app engine!

2009-02-07 Thread Xavier Mathews

Post it in the issue tracker.

On 02/07/2009, johnP  wrote:
>
> No solution - just gathering information.  Looking more closely at the
> logs where the errors occur, the deadline exceeded pops up somewhere
> while loading and patching django.  This started a couple days ago.
> Maybe it'll go away?
>
> Oh well - I'm gonna enjoy the rest of the weekend, and will come back
> to this on Monday.  :)
>
> johnP
>
>
>
> On Feb 7, 10:59 am, conman 
> wrote:
>> Yea, I am using appengine patch too and in my logs are a lot deadline
>> exceeded errors which result from
>> request on very simple pages without any datastore operations.
>>
>> But what's the problem? I have the feeling app engine is lagging at
>> this time of the day but that may be a oversimplification...
>> What's your solution to that problem - or are you just igoring it?
>>
>> Constantin
>>
>> On 7 Feb., 19:37, johnP  wrote:
>>
>> > I saw similar issues (with a google-issued, non-customized 500
>> > deadline exceeded error).  I'm using appengine patch, and saw a large
>> > increase in zipimporter calls.  It seemed like a large number of
>> > requests were reloading the entire Django environment (and maybe doing
>> > so more slowly than usual...) which resulted in periodic deadline
>> > exceeded errors on very simple pages.Sound possible?
>>
>> > johnP
>>
>> > On Feb 7, 9:29 am, conman 
>> > wrote:
>>
>> > > It's happening again!!
>>
>> > > Our site is not accessible but instead showing a google 500 server
>> > > error page!!!
>>
>> > > The whole day everything worked normal but in the early evening
>> > > (Germany/Europe) or forenoon (PST) the serving of the site is broken
>> > > again - and I definitively didn't change anything today!
>>
>> > > Yesterday at the same time of the day app engine had the exact same
>> > > problem:http://groups.google.com/group/google-appengine/browse_thread/thread/...
>>
>> > > What's up with that and where can I report this error so someone at
>> > > google will look into that?
>>
>> > > Regards,
>> > > Constantin
> >
>


-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Client Based Tech Support Specialist
Hazel Crest Illinois
xavieruni...@gmail.com¥xavierunited@hotmail.com¥truestar...@yahoo.com
"Fear of a name, only increases fear of the thing itself."

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



[google-appengine] Re: Django 500's and Error Reporting

2009-02-07 Thread David Symonds

On Sun, Feb 8, 2009 at 4:06 AM, Devel63  wrote:

> I'll look into this, but I think one reason we went with 0.96 is that
> it's already included in GAE, so we don't have to upload any files,
> have them counted against our file count limit, etc.

So why not just use the webapp framework as well, then? Is there
something in particular that it doesn't do for you?


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



[google-appengine] Re: Django 500's and Error Reporting

2009-02-07 Thread Xavier Mathews

500 error ocurr when the web server encounter a problem that is
preventing it from fufilling the request. To fix this go through
troblemshoot the  framework in this case.

On 02/07/2009, David Symonds  wrote:
>
> On Sun, Feb 8, 2009 at 4:06 AM, Devel63  wrote:
>
>> I'll look into this, but I think one reason we went with 0.96 is that
>> it's already included in GAE, so we don't have to upload any files,
>> have them counted against our file count limit, etc.
>
> So why not just use the webapp framework as well, then? Is there
> something in particular that it doesn't do for you?
>
>
> Dave.
>
> >
>


-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Client Based Tech Support Specialist
Hazel Crest Illinois
xavieruni...@gmail.com¥xavierunited@hotmail.com¥truestar...@yahoo.com
"Fear of a name, only increases fear of the thing itself."

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



[google-appengine] GAE and REST/SOAP

2009-02-07 Thread tempy

Hi,

I want to build a GAE app that will have the following general
architecture:

Installed clients (mono on desktops and iphone) that will authenticate
and then get/put/delete user-specific data to the GAE app.  (The data
is not public, users should not be able to see each other's data.)
Then, GAE itself will host a website that will allow users to access
and do stuff with the data created by the clients.

I am trying to figure out how exactly the clients will connect to
GAE.  I read about the Authentication API and that sounds pretty much
like what I need.  But as far as the clients communicating with the
GAE app, I figure my choices are REST or a SOAP web-service.  I would
much prefer to go with REST but SOAP would also do.  So I've been
trying to figure out whether either of these are supported and how to
implement them, and the fragmented documentation out there is really
making me feel like a newbie (which I am.)

As for REST, I found this publicly available code:
http://github.com/fczuardi/gae-rest/tree/master
http://code.google.com/p/appengine-rest-server/

For SOAP, I found this blog post which seems to lay things out more or
less clearly:
http://www.ioncannon.net/web-services/180/soap-on-the-google-app-engine-platform/

I am still not quite sure if any of these approaches would do exactly
what I need, so in hoping that I would save myself a day or two of
research/trial-and-error I am posting here, and wondering if anyone
has already accomplished this (REST or SOAP to allow installed clients
to authenticate and then get/put/delete data particular to them.)

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



[google-appengine] Re: Detect HTTPS so we can charge?

2009-02-07 Thread Nash-t

Thanks!

On Feb 6, 7:23 pm, Alexander Kojevnikov 
wrote:
> On Feb 7, 6:56 am, Nash-t  wrote:> It is great that App 
> Engine allowsHttpsconnections and from my
> > limited experience it seems to work really well. Since we have such a
> > small quota forhttpsconnections, I would like to be able to restrict
> > those connections to certain users. Is there a way we can detect in
> > our code if a user is logged in usinghttps?
>
> os.environ['HTTPS'] == 'on'
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to get the server running

2009-02-07 Thread Alexander Kojevnikov

On Feb 8, 4:20 am, "andre...@strombacks.se" 
wrote:
> The first I tried was in the Python GUI and in the Python command
> line, and there is where I get the "syntax error" messages.

You should start the development server from the command prompt, not
from the Python interpreter.

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



[google-appengine] Re: does GAE have pycrypto?

2009-02-07 Thread Alexander Kojevnikov

On Feb 8, 8:23 am, Anthony  wrote:
> Thanks, that's what I've been doing locally.  So I suppose when I
> deploy to the GAE server, I should bundle all non-standard libraries
> with my application files?
>
Yes, as long as they are pure-Python libraries. If a library uses C
extensions, you cannot run it on App Engine:
http://code.google.com/appengine/docs/python/runtime.html#Pure_Python

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



[google-appengine] Re: memcache.add => RuntimeError: maximum recursion depth exceeded

2009-02-07 Thread MatthewRudy

anyone?

My only though is to make all the keys of the hash unicode as well.

{u'title': u'Something', u'url': u'http://someurl'}

On Feb 1, 11:48 pm, MatthewRudy  wrote:
> I've got a recursion error in both my local code, and when deployed.
> But it doesn't make much sense.
>
> At first I thought it was to do with mixing unicode strings in
> dictionaries.
> But I've ironed that out.
>
> Hopefully this is a simple mistake?
>
> @@@ python
>
> splashes = [
>   {
>   'url':           splash.url,
>   'title':         splash.title(),
>   'thumbnail_url': splash.thumbnail_url()
>   }
>   for splash in record.url_records()
> ]
> logging.info("setting values: %s" % splashes)
> memcache.add(cache_key, splashes, 60)
>
> @@@
>
> and the log output when it breaks;
>
> @@@ log
>
> INFO     2009-02-01 23:32:05,256 splashto.py] setting values: [{'url':
> u'http://code.google.com/apis/ajaxsearch/documentation',
> 'thumbnail_url': u'http://images.websnapr.com/?
> size=S&key=69wD353Q05qN&url=http%3A%2F%2Fcode.google.com%2Fapis
> %2Fajaxsearch%2Fdocumentation', 'title': u'Developer'sGuide -
> Google AJAX Search API - Google Code'}, {'url': u'http://
> facebook.com', 'thumbnail_url': u'http://images.websnapr.com/?
> size=S&key=69wD353Q05qN&url=http%3A%2F%2Ffacebook.com', 'title':
> u'http://facebook.com'}]
>
> ERROR    2009-02-01 23:32:05,336 __init__.py] maximum recursion depth
> exceeded
> Traceback (most recent call last):
>   File "/usr/local/lib/google_appengine/google/appengine/ext/webapp/
> __init__.py", line 498, in __call__
>     handler.get(*groups)
>   File "/home/matthew/code/splashTo/splashto.py", line 39, in get
>     splashes = get_splashes(key)
>   File "/home/matthew/code/splashTo/splashto.py", line 66, in
> get_splashes
>     memcache.add(cache_key, splashes, 60)
>   File "/usr/local/lib/google_appengine/google/appengine/api/memcache/
> __init__.py", line 557, in add
>     return self._set_with_policy(MemcacheSetRequest.ADD, key, value,
> time=time)
>   File "/usr/local/lib/google_appengine/google/appengine/api/memcache/
> __init__.py", line 602, in _set_with_policy
>     stored_value, flags = _validate_encode_value(value,
> self._do_pickle)
>   File "/usr/local/lib/google_appengine/google/appengine/api/memcache/
> __init__.py", line 170, in _validate_encode_value
>     stored_value = do_pickle(value)
>   File "/usr/local/lib/google_appengine/google/appengine/api/memcache/
> __init__.py", line 274, in DoPickle
>     self._pickler_instance.dump(value)
>   File "/usr/lib/python2.5/pickle.py", line 224, in dump
>     self.save(obj)
>   File "/usr/lib/python2.5/pickle.py", line 286, in save
>     f(self, obj) # Call unbound method with explicit self
> ...
> (this goes on for hundreds of lines)
> ...
> File "/usr/lib/python2.5/pickle.py", line 419, in save_reduce
>     save(state)
>   File "/usr/lib/python2.5/pickle.py", line 286, in save
>     f(self, obj) # Call unbound method with explicit self
>   File "/usr/lib/python2.5/pickle.py", line 649, in save_dict
>     self._batch_setitems(obj.iteritems())
>   File "/usr/lib/python2.5/pickle.py", line 681, in _batch_setitems
>     save(v)
>   File "/usr/lib/python2.5/pickle.py", line 286, in save
>     f(self, obj) # Call unbound method with explicit self
>   File "/usr/lib/python2.5/pickle.py", line 725, in save_inst
>     save(stuff)
>   File "/usr/lib/python2.5/pickle.py", line 286, in save
>     f(self, obj) # Call unbound method with explicit self
>   File "/usr/lib/python2.5/pickle.py", line 649, in save_dict
>     self._batch_setitems(obj.iteritems())
>   File "/usr/lib/python2.5/pickle.py", line 681, in _batch_setitems
>     save(v)
>   File "/usr/lib/python2.5/pickle.py", line 286, in save
>     f(self, obj) # Call unbound method with explicit self
>   File "/usr/lib/python2.5/pickle.py", line 496, in save_unicode
>     self.write(BINUNICODE + pack(" RuntimeError: maximum recursion depth exceeded
>
> @@@
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Django 500's and Error Reporting

2009-02-07 Thread Devel63

We wanted the i18n features (gettext, trans).

On Feb 7, 2:43 pm, David Symonds  wrote:
> On Sun, Feb 8, 2009 at 4:06 AM, Devel63  wrote:
> > I'll look into this, but I think one reason we went with 0.96 is that
> > it's already included in GAE, so we don't have to upload any files,
> > have them counted against our file count limit, etc.
>
> So why not just use the webapp framework as well, then? Is there
> something in particular that it doesn't do for you?
>
> 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Again *major* server errors of app engine!

2009-02-07 Thread Devel63

We see the same thing, and just converted to Django.  Sounds like it
may be related to Django.

On Feb 7, 11:09 am, johnP  wrote:
> No solution - just gathering information.  Looking more closely at the
> logs where the errors occur, the deadline exceeded pops up somewhere
> while loading and patching django.  This started a couple days ago.
> Maybe it'll go away?
>
> Oh well - I'm gonna enjoy the rest of the weekend, and will come back
> to this on Monday.  :)
>
> johnP
>
> On Feb 7, 10:59 am, conman 
> wrote:
>
> > Yea, I am using appengine patch too and in my logs are a lot deadline
> > exceeded errors which result from
> > request on very simple pages without any datastore operations.
>
> > But what's the problem? I have the feeling app engine is lagging at
> > this time of the day but that may be a oversimplification...
> > What's your solution to that problem - or are you just igoring it?
>
> > Constantin
>
> > On 7 Feb., 19:37, johnP  wrote:
>
> > > I saw similar issues (with a google-issued, non-customized 500
> > > deadline exceeded error).  I'm using appengine patch, and saw a large
> > > increase in zipimporter calls.  It seemed like a large number of
> > > requests were reloading the entire Django environment (and maybe doing
> > > so more slowly than usual...) which resulted in periodic deadline
> > > exceeded errors on very simple pages.    Sound possible?
>
> > > johnP
>
> > > On Feb 7, 9:29 am, conman 
> > > wrote:
>
> > > > It's happening again!!
>
> > > > Our site is not accessible but instead showing a google 500 server
> > > > error page!!!
>
> > > > The whole day everything worked normal but in the early evening
> > > > (Germany/Europe) or forenoon (PST) the serving of the site is broken
> > > > again - and I definitively didn't change anything today!
>
> > > > Yesterday at the same time of the day app engine had the exact same
> > > > problem:http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> > > > What's up with that and where can I report this error so someone at
> > > > google will look into that?
>
> > > > Regards,
> > > > Constantin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] ANNOUNCEMENT: gaeutilities 1.1.3 release

2009-02-07 Thread bowman.jos...@gmail.com

This release is primarily a bugfix release.

- session: bugfix to handle str() and len() methods when there is no
session data. Issue #12
- session: delete_all_sessions changed to a class method. Issue #14
(NOTE: delete_all_sessions is not complete)
- session: Modified session token to include the session key. Issue
#10
- session: Session token encryption changed to md5 from sha1, in order
to improve performance as the salt is randomized with a time string.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: ANNOUNCEMENT: gaeutilities 1.1.3 release

2009-02-07 Thread bowman.jos...@gmail.com

Sorry, forgot the url

http://gaeutilities.appspot.com

On Feb 8, 1:51 am, "bowman.jos...@gmail.com" 
wrote:
> This release is primarily a bugfix release.
>
> - session: bugfix to handle str() and len() methods when there is no
> session data. Issue #12
> - session: delete_all_sessions changed to a class method. Issue #14
> (NOTE: delete_all_sessions is not complete)
> - session: Modified session token to include the session key. Issue
> #10
> - session: Session token encryption changed to md5 from sha1, in order
> to improve performance as the salt is randomized with a time string.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] prepopulate form fields according to http get parameters

2009-02-07 Thread niklasr

I'm looking for template tags or similar that according to http get
request parameters set the corresponding html form fields. To achieve
the selection of an html option and populate a textfield according to
the http request parameters where http get with two parameters should
prepopulate a textfield and the option selected in my html form /main?
q=foo&w=2 should set the textfield to 'foo' and the select option 2 to
state selected. I saw no template tag that directly tests or handles a
http get parameter but there probably is, for a more direct and
favorable way than passing the request parameters and testing option
by option
 
...
{% ifequal w "2" %}
Apples
{% else %}
Apples
 {% endifequal %}
...
Thank you
Niklas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---