[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Continuation


> It's the plain meaning of the word.  I apologise for not knowing that
> you didn't know what it meant when you wrote that Google had an
> obligation to make GAE available in China.  Are there other statements
> that you made without understanding their meaning?

If you think "obligation" only refers to "legal obligation", you are,
as usual, very mistaken.

>From the dictionary:
Obligation:
A social, legal, or moral requirement

Do you see the words "social" and "moral" in addition to "legal" in
the definition for "obligation"? Do you even understand what those
words mean? Feel free to look them up. I have an obligation to provide
the best service to my clients. Does that mean I'm legally required to
do that? Of course not. But is it still an obligation? Absolutely. Can
you keep driveling on about things you know nothing about? I wouldn't
bet against that.

I apologize for not knowing that you didn't know what it meant when
you wrote that obligation only means legal obligation.  Are there
other statements that you made without understanding their meaning?

Next time when you find yourself once again talking about something
you clearly know nothing about, I highly recommend consulting a
dictionary.

That or keep your mouth closed. Better to keep your mouth shut and be
thought a fool than to open it and remove all doubt

> China availability issue is one of the few issues where folks claim
> that/act like Google has an obligation

Let me get this straight:

Some users reported a problem and wanted to know if Google has any
plan to address the problem. For whatever reason that makes you very
angry,

Newsflash: this entire forum is full of threads reporting problems
with GAE and asking about Google's plan to fix those problems. Are you
going to post your "Google has no legal obligation to solve your
problem!" response to every single one of those threads?

> And the basis for this order is...

The same basis that compelled you to feel justified in ordering others
not to report problems and not to ask for Google's help in solving
their problems. So you tell 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Continuation

> So far, I've only seen two people complaining about the Chinese
> firewall and appengine, and a couple others voicing their opinion on
> it not being Google's obligation to support it. So really, when you
> count how many members this group has, I'd venture a guess that most
> just don't care either way. So maybe we're all wasting our time. If
> Google was going to respond, they'd have done it days ago.

Just like any other problems reported in this forum, if it doesn't
affect you, it doesn't affect you.

For those of us who are affected by this problem, we want to hear from
Google any potential solutions they may have. But if the problem
doesn't affect you, why are you even in this thread?

So yes, you're wasting your time. Why are you wasting your time?
That's a question only you can answer for yourself.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem with timeouts on get_by_key_name

2009-04-06 Thread Marcus

Hello Jeff!

Thanks for your reply.

I would estimate that it is around 0.04% of the calls that fails.

Would it help to catch the timeout exception and do a retry directly
again or would that also fail?

I am mostly worried that the data from the users will go lost.


/Marcus



On Apr 4, 3:02 am, Jeff S  wrote:
> Hi Marcus,
>
> You are correct that get_by_key_name does tend to be a very efficient
> query, but it is possible to see atimeoutthough this is usually
> quite rare as a percentage of overall requests. Do you have a feel for
> what percentage of these get operations are timing out?
>
> Thank you,
>
> Jeff
>
> On Apr 2, 1:06 am, Marcus  wrote:
>
> > Hello!
>
> > I am getting some timeouts in my app. My app uses get_by_key_name
> > along with alot of other database accessing. I get around 5-10 timouts
> > each day and it is always get_by_key_name that times out, never any
> > other database acceses.
>
> > Why could this be? Is there a way to protect the app from these
> > timeouts. I thought get_by_key_name was a fast access to the database.
> > The app have akeythat is around 20 characters long and the app have
> > quite a lot of users (I guess around 200 000).
>
> >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > __init__.py", line 849, in get_by_key_name
> >     return get(*keys)
> >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > __init__.py", line 1044, in get
> >     entities = datastore.Get(keys)
> >   File "/base/python_lib/versions/1/google/appengine/api/
> > datastore.py", line 221, in Get
> >     raise _ToDatastoreError(err)
> >   File "/base/python_lib/versions/1/google/appengine/api/
> > datastore.py", line 1965, in _ToDatastoreError
> >     raise errors[err.application_error](err.error_detail)
> >Timeout
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Continuation

> It's the plain meaning of the word.  I apologise for not knowing that
> you didn't know what it meant when you wrote that Google had an
> obligation to make GAE available in China.  Are there other statements
> that you made without understanding their meaning?

If you think "obligation" only refers to "legal obligation", you are,
as usual, very mistaken.

>From the dictionary:
Obligation:
A social, legal, or moral requirement

Do you see the words "social" and "moral" in addition to "legal" in
the definition for "obligation"? Do you even understand what those
words mean? Feel free to look them up. I have an obligation to provide
the best service to my clients. Does that mean I'm legally required to
do that? Of course not. But is it still an obligation? Absolutely. Can
you keep driveling on about things you don't know about? I wouldn't
bet against that.

I apologize for not knowing that you didn't know what it meant when
you wrote that obligation only means legal obligation.  Are there
other statements that you made without understanding their meaning?

Next time when you find yourself once again talking about something
you clearly know nothing about, I highly recommend consulting a
dictionary.

That or keep your mouth closed. Better to keep your mouth shut and be
thought a fool than to open it and remove all doubt

> China availability issue is one of the few issues where folks claim
> that/act like Google has an obligation

Let me get this straight:

Some users reported a problem and wanted to know if Google has any
plan to address the problem. For whatever reason that makes you very
angry,

Newsflash: this entire forum is full of threads reporting problems
with GAE and asking about Google's plan to fix those problems. Are you
going to post your "Google has no legal obligation to solve your
problem!" response to every single one of those threads?

> And the basis for this order is...

The same basis that compelled you to feel justified in ordering others
not to report problems and not to ask for Google's help in solving
their problems. So you tell 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Continuation

> So far, I've only seen two people complaining about the Chinese
> firewall and appengine, and a couple others voicing their opinion on
> it not being Google's obligation to support it. So really, when you
> count how many members this group has, I'd venture a guess that most
> just don't care either way. So maybe we're all wasting our time. If
> Google was going to respond, they'd have done it days ago.

Just like any other problems reported in this forum, if it doesn't
affect you, it doesn't affect you.

For those of us who are affected by this problem, we want to hear from
Google any potential solutions they may have. But if the problem
doesn't affect you, why are you even in this thread?

So yes, you're wasting your time. Why are you wasting your time?
That's a question only you can answer for yourself.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Continuation


>what can Google do to stop the Chinese
> govt from blocking?

>one can argue that Google "needs" the Chinese govt to not block,
>but that doesn't imply that Google can do anything to stop the Chinese
>govt from blocking.

As I've told you, there are plenty of solutions.

One of them is to offer hosting at Google's data center in China. The
biggest objection you could muster up to that solution was a pointless
"Google may or may not offer that solution" piffle. Yes indeed. And
Google "may or may not offer" any solutions to any problems reported
in this forum. What's your point?

What solutions Google may or may not offer is certainly not for you to
say. The only strange thing in this entire thread is what caused you
to take so much offense to some users who are merely doing what
everyone else is doing in this forum: reporting problems and asking
for Google's help in solving such problems.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Andy

> It's the plain meaning of the word.  I apologise for not knowing that
> you didn't know what it meant when you wrote that Google had an
> obligation to make GAE available in China.  Are there other statements
> that you made without understanding their meaning?

If you think "obligation" only refers to "legal obligation", you are,
as usual, very mistaken.

>From the dictionary:
Obligation:
A social, legal, or moral requirement

Do you see the words "social" and "moral" in addition to "legal" in
the definition for "obligation"? Do you even understand what those
words mean? Feel free to look them up. I have an obligation to provide
the best service to my clients. Does that mean I'm legally required to
do that? Of course not. But is it still an obligation? Absolutely. Can
you keep driveling on about things you know nothing about? I wouldn't
bet against that.

I apologize for not knowing that you didn't know what it meant when
you wrote that obligation only means legal obligation.  Are there
other statements that you made without understanding their meaning?

Next time when you find yourself once again talking about something
you clearly know nothing about, I highly recommend consulting a
dictionary.

That or keep your mouth closed. Better to keep your mouth shut and be
thought a fool than to open it and remove all doubt

> China availability issue is one of the few issues where folks claim
> that/act like Google has an obligation

Let me get this straight:

Some users reported a problem and wanted to know if Google has any
plan to address the problem. For whatever reason that makes you very
angry,

Newsflash: this entire forum is full of threads reporting problems
with GAE and asking about Google's plan to fix those problems. Are you
going to post your "Google has no legal obligation to solve your
problem!" response to every single one of those threads?

> And the basis for this order is...

The same basis that compelled you to feel justified in ordering others
not to report problems and not to ask for Google's help in solving
their problems. So you tell 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Andy

> So far, I've only seen two people complaining about the Chinese
> firewall and appengine, and a couple others voicing their opinion on
> it not being Google's obligation to support it. So really, when you
> count how many members this group has, I'd venture a guess that most
> just don't care either way. So maybe we're all wasting our time. If
> Google was going to respond, they'd have done it days ago.

Just like any other problems reported in this forum, if it doesn't
affect you, it doesn't affect you.

For those of us who are affected by this problem, we want to hear from
Google any potential solutions they may have. But if the problem
doesn't affect you, why are you even in this thread?

So yes, you're wasting your time.

As to why are you wasting your time in this thread as opposed to other
threads that also don't concern you...
that's a question only you can answer for yourself.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Andy

>what can Google do to stop the Chinese
> govt from blocking?

>one can argue that Google "needs" the Chinese govt to not block,
>but that doesn't imply that Google can do anything to stop the Chinese
>govt from blocking.

As I've told you, there are plenty of solutions.

One of them is to offer hosting at Google's data center in China. The
biggest objection you could muster up to that solution was a pointless
"Google may or may not offer that solution" piffle. Yes indeed. And
Google "may or may not offer" any solutions to any problems reported
in this forum. What's your point?

What solutions Google may or may not offer is certainly not for you to
say. The only strange thing in this entire thread is what caused you
to take so much offense to some users who are merely doing what
everyone else is doing in this forum: reporting problems and asking
for Google's help in solving such problems.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Secure Requests for Static Files Being Redirected

2009-04-06 Thread Doug

Thanks Barry!

I didn't have that parameter in my app.yaml file.  The default, never,
behavior is exactly what is happing.  I will update the parm!

Thanks,
Doug

On Apr 6, 4:13 am, Barry Hunter  wrote:
> Have you enabled secure for the ga/ga.html file?
>
> http://code.google.com/appengine/docs/python/tools/configuration.html...
>
> On 06/04/2009, Doug  wrote:
>
>
>
>
>
> >  Good Evening,
>
> >  It appears that requests that I make to the secure URL are being
> >  redirected to the insecure address.  I noticed this is my Google
> >  Analytics reports when trying to identify a way to track my GAE.  To
> >  try and track my application I created a static html page and then
> >  load the page in an iframe in my application.  When I call the iframe
> >  I am able to pass a parm to the trackPageview function, but the
> >  request is being redirected from the secure URL to the insecure URL
> >  and the parms are being dropped.  For example, if I put
> >  https://myapp.appspot.com/ga/ga.html?track=page1in iframe or directly
> >  in a browser it is redirected tohttp://myapp.appspot.com/ga/ga.html.
>
> >  Any ideas why this is happening?
>
> >  Thanks,
>
> > Doug
>
> --
> Barry
>
> -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] how can i create entities by name and with APE properties type?

2009-04-06 Thread GTako

Hi,

i want to create entities by name(kind) and with APE properties type.

at this link: 
http://techblog.ironfroggy.com/2008/08/how-to-understand-appengine-datastore_11.html
i read about how to create an entity by 'kind', in a low level API.

e = datastore.Entity(kind='test')
e['name'] = 'My Test Entity'
datastore.Put([e])

but the problem is that i want 'name' to be a 'StringProrperty()'..
how can i do it?

the reason i want to use APE Property is that i want to use it's
benefits such as validation and more..

can any one please help?

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



[google-appengine] APP ENGINE CGI adaptor OF util.run_wsgi_app takes 0.6S to service a request

2009-04-06 Thread Coonay

whether testing in the local  development web server or in app
engine,google.appengine.ext.webapp.util.run_wsgi_app itself always
take 0.6 second to service a request,if adds up all othere cpu time
taken by my own business calling ,it's very easy to take up more than
1.5S for every request,i got this perfomance when my app site is
idle.

Do you use this CGI adaptor in production?could you tell me how to
optimize run_wsgi_app  calling?or ,is there a better CGI adaptor?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Using ReportLab with ZipImport

2009-04-06 Thread Arun Shanker Prasad

Hi,

I have a requirement to generate dynamic PDFs from HTML source. I
included the Pisa, html5lib and the reportlab packages for this.
Everything works fine in the local environment as long I keep all the
packages in the initial source ie I do not zip it.

Keeping the whole ReportLab package (204 files) might take me way
close to the allowed file limit. I tried to convert the ReportLab
package into a zip and use zipimport to use it. This causes the
following error,

AttributeError: 'HardenedModulesHook' object has no attribute '_files'

My source where the imports are called,
import sys
sys.path.insert(0, 'ho.zip')
sys.path.insert(0, 'html5lib.zip')
sys.path.insert(0, 'sx.zip')
sys.path.insert(0, 'reportlab.zip')
import ho.pisa as pisa

Googled a bit for the solution found another mention of this in issue
tracker,
http://code.google.com/p/googleappengine/issues/detail?id=1085.

Can anyone help me get around this problem? I have seen many use
reportlab in Google App Engine how do you guys get around this issue??

Any help will be greatly appreciated.

Thanks,
Arun Shanker Prasad.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Secure Requests for Static Files Being Redirected

2009-04-06 Thread Barry Hunter

Have you enabled secure for the ga/ga.html file?

http://code.google.com/appengine/docs/python/tools/configuration.html#Secure_URLs



On 06/04/2009, Doug  wrote:
>
>  Good Evening,
>
>
>  It appears that requests that I make to the secure URL are being
>  redirected to the insecure address.  I noticed this is my Google
>  Analytics reports when trying to identify a way to track my GAE.  To
>  try and track my application I created a static html page and then
>  load the page in an iframe in my application.  When I call the iframe
>  I am able to pass a parm to the trackPageview function, but the
>  request is being redirected from the secure URL to the insecure URL
>  and the parms are being dropped.  For example, if I put
>  https://myapp.appspot.com/ga/ga.html?track=page1 in iframe or directly
>  in a browser it is redirected to http://myapp.appspot.com/ga/ga.html.
>
>  Any ideas why this is happening?
>
>  Thanks,
>
> Doug
>  >
>


-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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 make the date that read from google app engine database to utf-8?

2009-04-06 Thread 'Αλκης Ευλογημένος
utf8String = unicodeString.encode('utf-8')

On Mon, Apr 6, 2009 at 8:21 AM, DiveIntoGAE  wrote:

>
> i want to read strings from google app engine database and make them
> to utf-8,how can i do that?The strings in my html page are utf-8, if i
> compare the string from databse with them,i should make the string
> from databse to utf-8.
> >
>


-- 

Alkis

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



[google-appengine] Lots of DownloadError exceptions

2009-04-06 Thread Deepak Sarda

Hi

One of my apps is getting DownloadError (ApplicationError 5) for
pretty much all urlfetch remote url fetch requests to a particular
remote server for the past week. Fetch requests to other servers are
not affected. Also, there are no problems fetching content from this
remote server from the local development server. Here's a traceback
from the logs:

Error fetching url
http://www.sbstransit.com.sg/mobileiris/index_svclist.aspx?stopcode=17069
Traceback (most recent call last):
  File "/base/data/home/apps/sbsnextbus/6.332480362470588654/utils.py",
line 71, in get_url
result = urlfetch.fetch(url)
  File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py",
line 273, in fetch
raise DownloadError(str(e))
DownloadError: ApplicationError: 5

As can be seen from the trace, my app (http://sbsnextbus.appspot.com)
is trying to fetch pages from sbstransit.com.sg

This appears to be a deadline exceeded error (error code 5) but I
can't figure out why this should occur. Everything was running
smoothly till last week when this started happening.

Since I can't reproduce this problem locally and there is no problem
fetching pages from other remote servers in the production
environment, I suspect the issue is related to network connectivity
issues between AppEngine data centers & the servers of
www.sbstransit.com.sg

This problem has been around for almost a week now and I can't seem to
figure out a solution or work-around. Searches in the group archive
didn't yield anything helpful. Any help would be greatly appreciated!

Thanks,

Deepak

PS: Is there a process to open a 'support ticket' with appengine team
regarding infrastructure issues?

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



[google-appengine] A newbie python question for dictionary

2009-04-06 Thread arnie

Please do not look as a non google app engine question
I have a very simple python problem
There is a dictionary called d as given below:
d['Apple'] = '123'
d['banana'] = '234'
d['act'] = '565656'
I have to sort this dictionary based on keys such that the
dictionary's key come in ascending order
Can anybody help?
Thanks
Arnie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] A newbie python question for dictionary

2009-04-06 Thread arnie

Please do not look as a non google app engine question
I have a very simple python problem
There is a dictionary called d as given below:
d['Apple'] = '123'
d['banana'] = '234'
d['act'] = '565656'
I have to sort this dictionary based on keys such that the
dictionary's key come in ascending order
Can anybody help?
Thanks
Arnie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: DataStore timeout

2009-04-06 Thread DarkCoiote

I'm pretty sure they're not being made that rapidly... the rate is
only high if
the user keep hitting 'refresh'... but I guess that is not the case...

You said something about parent, but my models doesn't have any
references,
so I guess it is not the case too, is it?

Thank you!

On Apr 3, 10:14 pm, Jeff S  wrote:
> Hi DarkCoiote,
>
> How rapidly are puts being made on a single entity? There is a write
> speed limit for a single entity or entity-group so if these puts are
> being made against the same person, or if puts are being made to
> objects which share the same parent, the put operations may queue up
> and eventually time out. Does this seem like it could be the issue?
>
> Thank you,
>
> Jeff
>
> On Apr 3, 5:31 am, DarkCoiote  wrote:
>
> > Getting a bad number of datastore timeout... and the operation is
> > 'simple', is a put in simple model;...
>
> > Traceback (most recent call last):
> >   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > __init__.py", line 501, in __call__
> >     handler.get(*groups)
> >   File "/base/data/home/apps/naval-war/1.332510333196150921/main.py",
> > line 218, in get
> >     person.put()
> >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > __init__.py", line 669, in put
> >     return datastore.Put(self._entity)
> >   File "/base/python_lib/versions/1/google/appengine/api/
> > datastore.py", line 166, in Put
> >     raise _ToDatastoreError(err)
> >   File "/base/python_lib/versions/1/google/appengine/api/
> > datastore.py", line 1965, in _ToDatastoreError
> >     raise errors[err.application_error](err.error_detail)
> > Timeout
>
> > person model:
> > class Person(db.Model):
> >   id = db.StringProperty()
> >   score = db.IntegerProperty(default=0)
> >   currentFleet = db.IntegerProperty(default=0)
> >   availableShots = db.IntegerProperty(default=0)
> >   maxShots = db.IntegerProperty(default=0)
> >   shipsSunk = db.ListProperty(int,verbose_name="Sunken ships list",
> > default=[0,0,0,0,0])
> >   shipsLost = db.ListProperty(int,verbose_name="Lost ships list",
> > default=[0,0,0,0,0])
> >   lastAccess = db.DateTimeProperty(auto_now_add=True)
>
> > see... no references or anything complicated
>
> > any tips on how to reduce the number of datastore timeouts??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: A newbie python question for dictionary

2009-04-06 Thread Tom M.

Google search "sort dict site:python.org"

On Apr 6, 8:55 am, arnie  wrote:
> Please do not look as a non google app engine question
> I have a very simple python problem
> There is a dictionary called d as given below:
> d['Apple'] = '123'
> d['banana'] = '234'
> d['act'] = '565656'
> I have to sort this dictionary based on keys such that the
> dictionary's key come in ascending order
> Can anybody help?
> Thanks
> Arnie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Matt Williams

You can check whether your website is accessible in china by using a
service such as:
http://www.websitepulse.com/help/testtools.china-test.html

Try both your domain name and the appspot subdomain to see whether it
is your domain or the appengine subdomain / IP address that is being
blocked.

Matt


On Apr 2, 3:48 pm, WallyDD  wrote:
> Hello,
>
> My website (on google app engine) is blocked in China where I used to
> get a lot of traffic from. I only just realised this from looking at
> the logs and noting that traffic from china has crawled to standstill.
> I imagine my website is blocked in other countries as well thanks to
> this blocking technique.
>
> Does Google have a plan for dealing with this?
>
> Any chance of a response from someone at google? I would really like
> to know if this is being dealt with seriously?
>
> This doesn't just apply to my website, it applies to every site on
> google app engine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Andy Freeman

> One of them is to offer hosting at Google's data center in China.

Since China can block sites hosted in China  (I thought that it
was common knowledge that China imposed controls on in-China sites.)

There's nothing wrong with wanting guarantees, but Google isn't in a
position to give a guarantee wrt blocking that it can honor because
China can block no matter what Google does.

On Apr 6, 12:57 am, Andy  wrote:
> >what can Google do to stop the Chinese
> > govt from blocking?
> >one can argue that Google "needs" the Chinese govt to not block,
> >but that doesn't imply that Google can do anything to stop the Chinese
> >govt from blocking.
>
> As I've told you, there are plenty of solutions.
>
> One of them is to offer hosting at Google's data center in China. The
> biggest objection you could muster up to that solution was a pointless
> "Google may or may not offer that solution" piffle. Yes indeed. And
> Google "may or may not offer" any solutions to any problems reported
> in this forum. What's your point?
>
> What solutions Google may or may not offer is certainly not for you to
> say. The only strange thing in this entire thread is what caused you
> to take so much offense to some users who are merely doing what
> everyone else is doing in this forum: reporting problems and asking
> for Google's help in solving such problems.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: BadValueError: Unsupported type for property scheduled_date:

2009-04-06 Thread nate12o6

You are correct!

The funny thing is a copied this right off of the sample code on
googles website...
Thanks for picking out the obvious for me.

On Apr 1, 6:12 pm, Jeff S  wrote:
> Hi Nate,
>
> What does the db.Model class look like for the WO? I'm guessing there
> is a property type mismatch, perhaps scheduled_date should be a
> datetime.datetime instead of a datetime.date?
>
> Thank you,
>
> Jeff
>
> On Apr 1, 7:51 am,nate12o6 wrote:
>
> > I am trying to do a bulk load from csv with one of the fields being a
> > date.  But i am getting the following error:
> > BadValueError: Unsupported type for property scheduled_date:  > 'datetime.date'>
>
> > Here is my loader file.  Any help will be appreciated!
>
> > import datetime
> > from google.appengine.ext import bulkload
> > from google.appengine.api import datastore_types
> > from google.appengine.ext import search
>
> > class WOLoader(bulkload.Loader):
> >   def __init__(self):
> >         bulkload.Loader.__init__(self, 'Work_Order',
> >                          [('row_no', int),
> >                           ('type', str),
> >                           ('status', str),
> >                           ('scheduled_date', lambda x: 
> > datetime.datetime.strptime(x, '%m/%d/
> > %Y').date()),
> >                           ('customer_name', str),
> >                           ('contractor_name', str),
> >                           ('address', datastore_types.PostalAddress),
> >                           ('door_size_type', datastore_types.Text),
> >                           ('door_color', str)
> >                           ])
>
> >   def convertToDate(self, x):
> >     print x
> >     return datetime.datetime.strptime(x, '%m/%d/%Y').date()
>
> >   def HandleEntity(self, entity):
> >     ent = search.SearchableEntity(entity)
> >     return ent
>
> > class TechLoader(bulkload.Loader):
> >   def __init__(self):
> >         bulkload.Loader.__init__(self, 'Work_Order',
> >                          [('work_order', str),
> >                           ('tech_name', str)
> >                           ])
>
> >   def HandleEntity(self, entity):
> >     print entity.row_no+"\n"
> >     return entity
>
> > class PhoneLoader(bulkload.Loader):
> >   def __init__(self):
> >         bulkload.Loader.__init__(self, 'Work_Order',
> >                          [('work_order', str),
> >                           ('phone_type', str),
> >                           ('number', str)
> >                           ])
>
> >   def HandleEntity(self, entity):
> >     ent = search.SearchableEntity(entity)
> >     return ent
>
> > if __name__ == '__main__':
> >   bulkload.main(WOLoader())
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Andy Freeman

> Do you see the words "social" and "moral" in addition to "legal" in
> the definition for "obligation"? Do you even understand what those
> words mean?

Yes, I do.  And I also understand how social and moral obligations
work.  If you feel that Google is violating a social or moral
obligation, you don't have any recourse other than to shun Google and
to try to convince others to do likewise.  You're not satisfied with
shun, so either you don't understand social or moral obligations or
you think that Google has some other type of obligation.  Since the
only remaining one is legal

> Some users reported a problem and wanted to know if Google has any
> plan to address the problem. For whatever reason that makes you very
> angry,

Huh?  I'm not angry.  I'm merely pointing out that Google's
capabilities in this area are limited, that they need to take their
complaints elsewhere if they want guarantees.

Do you really believe that Google can honor a promise that a given
site won't be blocked if the Chinese govt wants to block said site?
(Feel free to assume that the site is hosted in China.)

> The same basis that compelled you to feel justified in ordering others
> not to report problems and not to ask for Google's help in solving
> their problems.

Except that I didn't order anyone to do anything, which may explain
why you didn't quote any such order.  I merely pointed out that Google
can't do as they ask and pointed them to someone who can.

Why does that bother you so much?



On Apr 6, 12:52 am, Andy  wrote:
> > It's the plain meaning of the word.  I apologise for not knowing that
> > you didn't know what it meant when you wrote that Google had an
> > obligation to make GAE available in China.  Are there other statements
> > that you made without understanding their meaning?
>
> If you think "obligation" only refers to "legal obligation", you are,
> as usual, very mistaken.
>
> From the dictionary:
> Obligation:
> A social, legal, or moral requirement
>
> Do you see the words "social" and "moral" in addition to "legal" in
> the definition for "obligation"? Do you even understand what those
> words mean? Feel free to look them up. I have an obligation to provide
> the best service to my clients. Does that mean I'm legally required to
> do that? Of course not. But is it still an obligation? Absolutely. Can
> you keep driveling on about things you know nothing about? I wouldn't
> bet against that.
>
> I apologize for not knowing that you didn't know what it meant when
> you wrote that obligation only means legal obligation.  Are there
> other statements that you made without understanding their meaning?
>
> Next time when you find yourself once again talking about something
> you clearly know nothing about, I highly recommend consulting a
> dictionary.
>
> That or keep your mouth closed. Better to keep your mouth shut and be
> thought a fool than to open it and remove all doubt
>
> > China availability issue is one of the few issues where folks claim
> > that/act like Google has an obligation
>
> Let me get this straight:
>
> Some users reported a problem and wanted to know if Google has any
> plan to address the problem. For whatever reason that makes you very
> angry,
>
> Newsflash: this entire forum is full of threads reporting problems
> with GAE and asking about Google's plan to fix those problems. Are you
> going to post your "Google has no legal obligation to solve your
> problem!" response to every single one of those threads?
>
> > And the basis for this order is...
>
> The same basis that compelled you to feel justified in ordering others
> not to report problems and not to ask for Google's help in solving
> their problems. So you tell 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: A newbie python question for dictionary

2009-04-06 Thread 'Αλκης Ευλογημένος
Also for python questions you might want to ask:
http://groups.google.com/group/comp.lang.python/topics

On Mon, Apr 6, 2009 at 2:54 PM, arnie  wrote:

>
> Please do not look as a non google app engine question
> I have a very simple python problem
> There is a dictionary called d as given below:
> d['Apple'] = '123'
> d['banana'] = '234'
> d['act'] = '565656'
> I have to sort this dictionary based on keys such that the
> dictionary's key come in ascending order
> Can anybody help?
> Thanks
> Arnie
> >
>


-- 

Alkis

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



[google-appengine] clientlogin on localhost

2009-04-06 Thread c_greger...@mac.com

Hi there,

Using Eclipse on GAE and debugging a clientlogin from an iPhone.

I can login on the appspot server but when working on the local server
with localhost I get the login screen and therefore not able to use
clientlogin.

appspot.com procedure
1) get token
2) get cookie
3) call the method with token

but on local host?

Any idea?
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] mobile service is not on list

2009-04-06 Thread Bhaskar1

I am from South Korea , this country is not available in the country
list so I cannot make admin with my mobile number.So what is the
solution to make admin in webapps?

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] Disable app and import caching while working locally

2009-04-06 Thread Walking Wiki

Hello,
I have been pulling my hair out lately over the app and import caching
that occurs in App Engine/Python.  This page (http://code.google.com/
appengine/docs/python/runtime.html#App_Caching) was very useful in
working out that not only does Python cache imported modules, but also
that App Engine caches main handler scripts after the first run.

Finally, all that confusing behavior is explained and I can sleep
again!  :)

I just wanted to post a link to my solution here because I'm sure a
few more people may run into this same behavior.  I used a combination
of reload() and main() manipulation to achieve an easy way to define
the modules that I want reloaded and to stop app caching while I'm
working locally.

http://appengine-cookbook.appspot.com/recipe/disable-app-and-import-caching/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tyjwELEgtSZWNpcGVJbmRleCI4YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZBc1NDRU5oZEdWbmIzSjVJZ1pRZVhSb2IyNE0MCxIGUmVjaXBlIjphaEpoY0hCbGJtZHBibVV0WTI5dmEySnZiMnR5RkFzU0NFTmhkR1ZuYjNKNUlnWlFlWFJvYjI0TTEzDA

If anybody has any suggestions, please let me know.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] ReferenceProperty and Filtering

2009-04-06 Thread pjfitz

Hi,
I cannot seem to filter on field names of ReferenceProperty fields.
For example if i have the following two models.

Model1(db.Model)
fieldModel1 = db.StringProperty()

Model2(db.Model)
model1 = db.ReferenceProperty(Model1)

I cannot seem to filter correctly with the following

q=Model2.all()
q=filter("model1.fieldModel1 =", somevalue)

Has anyone any suggestions as to why this does not work?

tks,
PJ


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Questions regarding google apps domains consuming an app...

2009-04-06 Thread andyburke

Hi,

I am working on developing an issue tracker using the appengine and
I'd like for people who set up google apps for their domain to be able
to add it as one of their services.

However, I can't seem to find any information about how I should
support this.  I had hoped that separate google apps domains would
support having their own datastore.  It seems like that's not the
case.  I think it would be nice to support that for the following
reasons:

1) It makes designing my app easier, I don't need to track which
google app domain data in the datastore belongs to.
2) It means I don't have access to their data, which might be nice
from their point of view.

Is this kind of thing supported?  Have I totally missed this in my
searches?

Is anyone else interested in this model for storing the data for an
app engine app?

andy

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Disable app and import caching while working locally

2009-04-06 Thread Walking Wiki

Hello,
I have been pulling my hair out lately over the app and import caching
that occurs in App Engine/Python.  This page (http://code.google.com/
appengine/docs/python/runtime.html#App_Caching) was very useful in
working out that not only does Python cache imported modules, but also
that App Engine caches main handler scripts after the first run.

Finally, all that confusing behavior is explained and I can sleep
again!  :)

I just wanted to post a link to my solution here because I'm sure a
few more people may run into this same behavior.  I used a combination
of reload() and main() manipulation to achieve an easy way to define
the modules that I want reloaded and to stop app caching while I'm
working locally.

http://appengine-cookbook.appspot.com/recipe/disable-app-and-import-caching/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tyjwELEgtSZWNpcGVJbmRleCI4YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZBc1NDRU5oZEdWbmIzSjVJZ1pRZVhSb2IyNE0MCxIGUmVjaXBlIjphaEpoY0hCbGJtZHBibVV0WTI5dmEySnZiMnR5RkFzU0NFTmhkR1ZuYjNKNUlnWlFlWFJvYjI0TTEzDA

If anybody has any suggestions, please let me know.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: 500 Error when sending mail

2009-04-06 Thread Konrad Martin

As sending mail from windows development environment with
dev_appserver is concerned there is a workaround now with Byron Jones'
windows fake sendmailer. See my post to app-engine-patch group:
http://groups.google.com/group/app-engine-patch/msg/9cca92df4b993d6c?hl=en

There you find a step by step explanation, how to send mail from local
server via sendmail_enable instead of smtp.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] fetching contacts from Google Data API

2009-04-06 Thread Pushkar Nichkawade
Hi,

I am using Google Data Api to fetch contacts from my google API.

I am able to get all contacts but I can see only few titles rest titles are
coming as 'None'.

Also I am unable to fetch *email* for those contacts. Could you please help
me?

Thanks,
Pushkar

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] getting error - DownloadError: ApplicationError: 2 nonnumeric port: ''

2009-04-06 Thread pushkar.nichkaw...@gmail.com

Hi,

I am trying to fetch contacts using Contacts Data API, but I getting
following error.

Traceback (most recent call last):
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py", line 498, in __call__
handler.get(*groups)
  File "C:\Work\Python\workspace\GoogleApps\test\my_contacts.py", line
81, in get
feed = gd_client.GetContactsFeed()
  File "C:\Work\Python\workspace\GoogleApps\fetch_users\gdata\contacts
\service.py", line 95, in GetContactsFeed
return self.Get(uri,
converter=gdata.contacts.ContactsFeedFromString)
  File "C:\Work\Python\workspace\GoogleApps\fetch_users\gdata
\service.py", line 985, in Get
headers=extra_headers)
  File "C:\Work\Python\workspace\GoogleApps\fetch_users\atom
\service.py", line 176, in request
data=data, headers=all_headers)
  File "C:\Work\Python\workspace\GoogleApps\fetch_users\atom
\http_interface.py", line 148, in perform_request
return http_client.request(operation, url, data=data,
headers=headers)
  File "C:\Work\Python\workspace\GoogleApps\fetch_users\atom\http.py",
line 146, in request
return connection.getresponse()
  File "C:\Program Files\Google\google_appengine\google\appengine\dist
\httplib.py", line 73, in getresponse
resp = urlfetch.fetch(url, self._body, _method_map[self._method],
headers, self.allow_truncated)
  File "C:\Program Files\Google\google_appengine\google\appengine\api
\urlfetch.py", line 267, in fetch
raise DownloadError(str(e))
DownloadError: ApplicationError: 2 nonnumeric port: ''


Can anyone please tell me what I have done 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Solution: Protocol Buffers in Google App Engine applications

2009-04-06 Thread Yegor

Hi, all,

We have shared a hack we used to run our Protocol Buffers application
on Google App Engine. This is just a temporary hack before Google
starts to officially support protobufs (hopefully soon). You will find
details here: http://code.google.com/p/protobuf-gae-hack/

Send your feedback, bug reports, etc.

Thanks,

Yegor

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] running appcfg.py

2009-04-06 Thread leemajors

hi there,

i'm using ubuntu 8.10 and for some reason can't run appcfg.py -- when
i navigate to where the file is and try running it from the command
line i get:

bash: appcfg.py: command not found

even though i'm in the directory and can see it if i use ls

any thoughts?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Very simple, trying to set a property, but failing :(

2009-04-06 Thread Lou

Hi,

I'm a bit stuck with trying to set a property for some reason it's
not working, and I can't figure it out.

My model is as follows:

class Venue(db.Model):
intro_text = db.StringProperty()
images = db.ListProperty(db.Blob)


The problem is in a helper method that I have, where I've taken the
input from a POST and trying to set the value in the intro_text
property of the Venue model.

Unfortunately, I'm using django 1.02 with app engine and I can't see
what the exception is that's being thrown.  I've narrowed it down to
the following (last two lines of code) though:

def setVenueIntroText(text):
venue_obj = db.GqlQuery("SELECT * FROM Venue").get()
venue_obj.intro_text = text
db.put(venue_obj)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] how can i create entities by name and with APE properties type?

2009-04-06 Thread YahavT

Hi,

i want to create entities by name(kind) and with APE properties type.

at this link: 
http://techblog.ironfroggy.com/2008/08/how-to-understand-appengine-datastore_11.html
i read about how to create an entity by 'kind', in a low level API.

e = datastore.Entity(kind='test')
e['name'] = 'My Test Entity'
datastore.Put([e])

but the problem is that i want 'name' to be a 'StringProrperty()'..
how can i do it?

the reason i want to use APE Property is that i want to use it's
benefits such as validation and more..

can any one please help?

Thanks!

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



[google-appengine] How to use the data of StringProperty as strings?

2009-04-06 Thread saintthor

#using datastore, create the entity

class Dj_User( db.Model ):
UsName = db.StringProperty( multiline = True )

def PutUser( self, uD ):
self.UsName = uD['UserName']
self.put()

#then read it and write to response, all ok

for user in Dj_User.all()
self.response.out.write( user.UsName )

#but when using the user.UsName as strings, an error occurs

for user in Dj_User.all()
self.response.out.write( user.UsName + '' )

#can not use str() on user.UsName either

for user in Dj_User.all()
self.response.out.write( str( user.UsName ) + '')

How can i use the user.UsName as strings?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Paddy Foran

I'd just like to point out how funny it is that people keep banging on
for Google to respond, and in their banging on for Google to respond,
they missed Google's actual response.

>> Is there any google staff who is responsible for GAE promotion and
>> technology to say something here?
>
>> How can I access to my Google Apps via my own domain directly, e.g.
>> how can access via mail.my_domain.com instead of mail.google.com/a/
>> my_domain.com?
>
>One way to address this is to run a proxy server elsewhere, which will
>allow your site to have it's own unique IP, rather than the shared IPs
>of Google.
>
>-Brett
>App Engine Team

Please note the "App Engine Team" signature. That means Brett (at
least claims he) is from Google.

Poor Brett was ignored, as people clamoured for Brett to comment.

This is why I love the internet. It amuses me to no end.

On Apr 6, 12:48 am, Andy Freeman  wrote:
> > No company is willing to be a pawn in the game of politics between
> > Google and China.
>
> That sounds reasonable, but what can Google do to stop the Chinese
> govt from blocking?
>
> (1) Google can't tell the Chinese govt what to do.
>
> (2) The Chinese govt appears to be technically competent and controls
> the relevant connections, both from the outside and from internal
> datacenters.
>
> (3) Google can propose agreements, but China is a soverign entity and
> and can do what it pleases wrt internal matters.  (Other posters have
> suggested that buying dinner for the appropriate official would cause
> the blocking to go away.  I don't see why the Chinese govt would find
> such an agreement binding.)
>
> Yes, one can argue that Google "needs" the Chinese govt to not block,
> but that doesn't imply that Google can do anything to stop the Chinese
> govt from blocking.  Google's needs do not obligate the Chinese govt.
>
> On Apr 5, 3:16 pm, WallyDD  wrote:
>
> > Google is more or less obligated to solve this issue.
>
> > No company is willing to be a pawn in the game of politics between
> > Google and China.
> > Name a single company (that has any international presence) who would
> > be willing to use GAE knowing full well that it is blocked in its
> > current form?
> > This issue has nothing to do with the Chinese government and there is
> > no way Google will point the finger at them.
>
> > Perhaps google can also take on all the other countries that are
> > blocking GAE and while they are at it they can point fingers at
> > corporate america and their firewalls?
> > You have to remember that at the moment this is a "preview release".
>
> > I don't really understand why you persist with this argument. You have
> > raised some valid points which should be looked at and considered in
> > the scheme of things but most of the diatribe you present here seems
> > aimed at China/Chinese Government. I have always found prejudices
> > cloud peoples judgement.
>
> > To sumarise how this problem will probably be viewed;
> > Google created a dns based system (for GAE addressing) which puts
> > everything though ghs.google.com. This system works really well and
> > from my experience it was very clever and efficient. However it has an
> > issue with firewalls that got overlooked. Google has just recently
> > been made aware of this problem.
>
> > On Apr 5, 12:53 pm, Andy Freeman  wrote:
>
> > > > Feel free to hair-split the word "obligation".
>
> > > It's the plain meaning of the word.  I apologise for not knowing that
> > > you didn't know what it meant when you wrote that Google had an
> > > obligation to make GAE available in China.  Are there other statements
> > > that you made without understanding their meaning?
>
> > > China availability issue is one of the few issues where folks claim
> > > that/act like Google has an obligation even though it's an issue where
> > > Google has very little capability to change things.
>
> > > > That's why I want to hear from a Google representative on their plan.
>
> > > I predict that if Google says anything, it will be roughly equivalent
> > > to "we're doing what we can".  At that point, you'll have to decide if
> > > the results, which will vary with the whim of the Chinese govt, are
> > > adequate for your purposes.
>
> > > Of course, if you're better at dealing with the Chinese govt than
> > > Google is
>
> > > > Now just accept that fact and act accordingly.
>
> > > And the basis for this order is...
>
> > > On Apr 4, 6:11 pm, Andy  wrote:
>
> > > > > I'm someone who understands that obligations come from laws and
> > > > > contracts.  Feel free to point to the relevant chapter and verse that
>
> > > > > However, absent a contract and/or a law, Google isn't obligated to
> > > > > make GAE applications visible in China.
>
> > > > Feel free to hair-split the word "obligation".
>
> > > > Does Google have the legal obligation to solve this problem? No. Just
> > > > like Google doesn't have any legal obligation to improve this service
> > > > or add any new features. Does that me

[google-appengine] "appcfg.py update" http proxy problem (solution)

2009-04-06 Thread vishal

Hi,

I struggled to get my application uploaded on Google App Engine.  Kept
getting the following error:

urllib2.URLError: 

I had the $http_proxy set to "http://my.proxy.server:8080";, as
mentioned on 
http://code.google.com/appengine/docs/python/tools/uploadinganapp.html#Using_an_HTTP_Proxy
. Didn't work however.

Then, I just looked the --verbose output from `appcfg.py update
appname` and noticed that the following trace:

...
return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.5/urllib2.py", line 1082, in do_open
raise URLError(err)
URLError: 

notice appcfg.py tries to open a secure (TLS) connection.. and unless
you have a proxy defined for HTTPS connections as well, it's bound to
fail.

SOLUTION:

export https_proxy="http://your.proxy.server:8080"; # or whatever your
https proxy server is.

For me, it was the same proxy server as http, so all I did was:
export https_proxy=$http_proxy

I hope this helps.  Wonder if someone can get this small piece
included in the official GAE documentation (http://code.google.com/
appengine/docs/python/tools/uploadinganapp.html#Using_an_HTTP_Proxy).

HTH,

Cheers,
Vishal

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Local Google App Engine stopped work

2009-04-06 Thread Leonardo Luiz

Hi,

Today, my local app engine server simply stopped work. I think it's
because last auto update, once It worked fine yesterday.

It's the log:

C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
the hashlib module instead
  import sha

INFO 2009-04-06 12:01:23,015 appengine_rpc.py] Server:
appengine.google.com
INFO 2009-04-06 12:01:23,030 appcfg.py] Checking for updates to
the SDK.
INFO 2009-04-06 12:01:23,453 appcfg.py] The SDK is up to date.

> ERROR2009-04-06 12:01:28,858 dev_appserver_main.py]  'exceptions.EOFError'>:

I am using Eclipse with Pydev

Can someone help-me please?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Is Public Proxy Allowed In Googel App Engine?

2009-04-06 Thread Administrator

I can see quite a few web proxy based on Google App Engine available
out there. Is it allowed?

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



[google-appengine] Can't direct app engine server to the yaml file

2009-04-06 Thread Banaticus

I installed Python 2.5.4 and the Google App Engine.  I created a
folder named test on the C drive, with a folder named helloworld
inside it.  In that, I put the app.yaml file and helloworld.py files
that the tutorial suggested, but I can't get the server to run.

I've tried: dev_appserver C:\test\helloworld\
I've tried exactly what the example shows, I've tried perhaps 10
different variations between the two, using backslashes and forward
slashes adding more directory information and leaving more directory
information out -- nothing seems to work.  It keeps saying,
"ERROR:root:Application configuration file not found in [then it lists
the directory I gave it].  Any suggestions on why it can't find my
app.yaml file?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Volunteer work mgmt solutions on the app engine?

2009-04-06 Thread Animesh

[ Not sure if this is off-topic, but since this involves the app-
engine, I figured I should ask it here ]

Hi all,
I have been working on a non-profit website ( www.neverforget.in ) ,
and we are planning on using the google app engine platform to make
our services scalable.

While we were discussing on the main features of the site, we realized
that a non-profit can really benefit from having an easy to use system
where a visitor could browse through a set of "To Do"s, perhaps sorted
according to the expected amount of time taken, and volunteer to do
it. Tasks can be clearly marked to range from 5 minutes to a week, and
this way we can easily utilize the free time available with people,
according to their skills.

I have prepared the mock-ups for the various screens needed (task
list, people volunteering for a task, tracking a task, etc). Now I am
moving onto the phase of implementing it on the app engine. The code
will be GPLd.

Note that the above sounds very similar to an open source project,
where the "tasks" are more focused. Hence I figured that someone may
have already solved this problem.

Does anyone know of an existing (open source) project that has done
something like this on the app-engine? Even an app-engine version of
bugzilla would be a good starting point for me.

Thanks in advance for your pointers. Please let me know if there are
any questions.

best wishes,
Animesh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: IE Problem with POST - 400 Bad request: Your client has issued a malformed or illegal request

2009-04-06 Thread Nitin Pathak

I have the exact same problem with my app running on GAE..I have
tested with IE6 and 7..Have to test with Mozilla as well! The problem
is I am unable to find enough help over the Internet as this is
relatively new..Any inputs from your end?

On Mar 26, 4:54 pm, spiewko  wrote:
> OK I made some testing site:
>
> http://spiewko.appspot.com.
>
> This is the guestbook application straight 
> fromhttp://code.google.com/p/google-app-engine-samples. I made same test
> from different computers, ISP. Sending greeting from Internet Explorer
> 6 gives an Google error approximately 1 in 3-6 times. Often it helps
> to refresh the page after error.
>
> Nobody else have this problems?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: 2 appengine accounts under same email woes, including login: admin problems

2009-04-06 Thread David Wilson

anyone looking at this please!

My app is ready to go live and we need admin rights :)


On Apr 1, 2:39 pm, David Wilson 
wrote:
> scrap the last post, it turns out that a colleague had removed the
> admin requirement to the url path.
>
> After i put it back on and tried to access the path, i get a
>
> Error: Server Error
> The server encountered an error and could not complete your request.
>
> help!
>
> On Mar 31, 7:37 pm, David Wilson 
> wrote:
>
> > as a further note to this i have found that setting the application to
> > use google apps authentication, lets me login to admin rights. using
> > my email.
>
> > On Mar 31, 7:16 pm, David Wilson 
> > wrote:
>
> > > Hi
>
> > > Im having some problems related to appengine admin access. This is
> > > complicated to explain, but here goes:
>
> > > (im using fake names here, the real domain is in my email address)
>
> > > I originally had a google appengine account under a google apps
> > > domain  mydomain.com
>
> > > Where I would sign into appegnine 
> > > likehttp://appengine.google.com/a/mydomain.com
>
> > > Using myn...@mydomain.com as the user name.
>
> > > I then didn’t use appengine for a long time, and in this time I
> > > created a google account under myn...@mydomain.com so I could use
> > > other services.
>
> > > I then came back to app engine and forgot that I needed to sign in
> > > using the way shown above, and signed in using my regular google
> > > account. This needed re-authenticating via sms (which I thought was
> > > odd, but figured it timed out due to lack of use).
>
> > > So now I seem to have 2 appengine accounts under the same email.
>
> > > But if I create a new application with the regular account, it dose
> > > not appear there, but in the apps account.
>
> > > BUT applications created in the apps account will not let me log using
> > > admin rights to any pages using login: admin
>
> > > Please 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread WallyDD

The internet is indeed a funny place.
I did respond with a question on how to set this up but have received
no answer?

Any ideas anyone?

On Apr 6, 3:03 am, Paddy Foran  wrote:
> I'd just like to point out how funny it is that people keep banging on
> for Google to respond, and in their banging on for Google to respond,
> they missed Google's actual response.
>
> >> Is there any google staff who is responsible for GAE promotion and
> >> technology to say something here?
>
> >> How can I access to my Google Apps via my own domain directly, e.g.
> >> how can access via mail.my_domain.com instead of mail.google.com/a/
> >> my_domain.com?
>
> >One way to address this is to run a proxy server elsewhere, which will
> >allow your site to have it's own unique IP, rather than the shared IPs
> >of Google.
>
> >-Brett
> >App Engine Team
>
> Please note the "App Engine Team" signature. That means Brett (at
> least claims he) is from Google.
>
> Poor Brett was ignored, as people clamoured for Brett to comment.
>
> This is why I love the internet. It amuses me to no end.
>
> On Apr 6, 12:48 am, Andy Freeman  wrote:
>
>
>
> > > No company is willing to be a pawn in the game of politics between
> > > Google and China.
>
> > That sounds reasonable, but what can Google do to stop the Chinese
> > govt from blocking?
>
> > (1) Google can't tell the Chinese govt what to do.
>
> > (2) The Chinese govt appears to be technically competent and controls
> > the relevant connections, both from the outside and from internal
> > datacenters.
>
> > (3) Google can propose agreements, but China is a soverign entity and
> > and can do what it pleases wrt internal matters.  (Other posters have
> > suggested that buying dinner for the appropriate official would cause
> > the blocking to go away.  I don't see why the Chinese govt would find
> > such an agreement binding.)
>
> > Yes, one can argue that Google "needs" the Chinese govt to not block,
> > but that doesn't imply that Google can do anything to stop the Chinese
> > govt from blocking.  Google's needs do not obligate the Chinese govt.
>
> > On Apr 5, 3:16 pm, WallyDD  wrote:
>
> > > Google is more or less obligated to solve this issue.
>
> > > No company is willing to be a pawn in the game of politics between
> > > Google and China.
> > > Name a single company (that has any international presence) who would
> > > be willing to use GAE knowing full well that it is blocked in its
> > > current form?
> > > This issue has nothing to do with the Chinese government and there is
> > > no way Google will point the finger at them.
>
> > > Perhaps google can also take on all the other countries that are
> > > blocking GAE and while they are at it they can point fingers at
> > > corporate america and their firewalls?
> > > You have to remember that at the moment this is a "preview release".
>
> > > I don't really understand why you persist with this argument. You have
> > > raised some valid points which should be looked at and considered in
> > > the scheme of things but most of the diatribe you present here seems
> > > aimed at China/Chinese Government. I have always found prejudices
> > > cloud peoples judgement.
>
> > > To sumarise how this problem will probably be viewed;
> > > Google created a dns based system (for GAE addressing) which puts
> > > everything though ghs.google.com. This system works really well and
> > > from my experience it was very clever and efficient. However it has an
> > > issue with firewalls that got overlooked. Google has just recently
> > > been made aware of this problem.
>
> > > On Apr 5, 12:53 pm, Andy Freeman  wrote:
>
> > > > > Feel free to hair-split the word "obligation".
>
> > > > It's the plain meaning of the word.  I apologise for not knowing that
> > > > you didn't know what it meant when you wrote that Google had an
> > > > obligation to make GAE available in China.  Are there other statements
> > > > that you made without understanding their meaning?
>
> > > > China availability issue is one of the few issues where folks claim
> > > > that/act like Google has an obligation even though it's an issue where
> > > > Google has very little capability to change things.
>
> > > > > That's why I want to hear from a Google representative on their plan.
>
> > > > I predict that if Google says anything, it will be roughly equivalent
> > > > to "we're doing what we can".  At that point, you'll have to decide if
> > > > the results, which will vary with the whim of the Chinese govt, are
> > > > adequate for your purposes.
>
> > > > Of course, if you're better at dealing with the Chinese govt than
> > > > Google is
>
> > > > > Now just accept that fact and act accordingly.
>
> > > > And the basis for this order is...
>
> > > > On Apr 4, 6:11 pm, Andy  wrote:
>
> > > > > > I'm someone who understands that obligations come from laws and
> > > > > > contracts.  Feel free to point to the relevant chapter and verse 
> > > > > > that
>
> > > > > > However, absent

[google-appengine] Re: Is Public Proxy Allowed In Googel App Engine?

2009-04-06 Thread Ryan Lamansky

If the application doesn't break any laws, the current terms of
service appear to allow you to make almost any kind of app, including
proxy services.

In the case of proxy services, though, they can be incredibly
bandwidth-intensive, and thus expensive to operate, not to mention
they're usually blocked in the places you'd most likely want to use
them.

-Ryan

On Apr 6, 6:30 am, Administrator  wrote:
> I can see quite a few web proxy based on Google App Engine available
> out there. Is it allowed?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Andy Freeman

It's even funnier that you quoted someone who isn't "banging on Google
to respond".

On Apr 6, 12:03 am, Paddy Foran  wrote:
> I'd just like to point out how funny it is that people keep banging on
> for Google to respond, and in their banging on for Google to respond,
> they missed Google's actual response.
>
> >> Is there any google staff who is responsible for GAE promotion and
> >> technology to say something here?
>
> >> How can I access to my Google Apps via my own domain directly, e.g.
> >> how can access via mail.my_domain.com instead of mail.google.com/a/
> >> my_domain.com?
>
> >One way to address this is to run a proxy server elsewhere, which will
> >allow your site to have it's own unique IP, rather than the shared IPs
> >of Google.
>
> >-Brett
> >App Engine Team
>
> Please note the "App Engine Team" signature. That means Brett (at
> least claims he) is from Google.
>
> Poor Brett was ignored, as people clamoured for Brett to comment.
>
> This is why I love the internet. It amuses me to no end.
>
> On Apr 6, 12:48 am, Andy Freeman  wrote:
>
>
>
> > > No company is willing to be a pawn in the game of politics between
> > > Google and China.
>
> > That sounds reasonable, but what can Google do to stop the Chinese
> > govt from blocking?
>
> > (1) Google can't tell the Chinese govt what to do.
>
> > (2) The Chinese govt appears to be technically competent and controls
> > the relevant connections, both from the outside and from internal
> > datacenters.
>
> > (3) Google can propose agreements, but China is a soverign entity and
> > and can do what it pleases wrt internal matters.  (Other posters have
> > suggested that buying dinner for the appropriate official would cause
> > the blocking to go away.  I don't see why the Chinese govt would find
> > such an agreement binding.)
>
> > Yes, one can argue that Google "needs" the Chinese govt to not block,
> > but that doesn't imply that Google can do anything to stop the Chinese
> > govt from blocking.  Google's needs do not obligate the Chinese govt.
>
> > On Apr 5, 3:16 pm, WallyDD  wrote:
>
> > > Google is more or less obligated to solve this issue.
>
> > > No company is willing to be a pawn in the game of politics between
> > > Google and China.
> > > Name a single company (that has any international presence) who would
> > > be willing to use GAE knowing full well that it is blocked in its
> > > current form?
> > > This issue has nothing to do with the Chinese government and there is
> > > no way Google will point the finger at them.
>
> > > Perhaps google can also take on all the other countries that are
> > > blocking GAE and while they are at it they can point fingers at
> > > corporate america and their firewalls?
> > > You have to remember that at the moment this is a "preview release".
>
> > > I don't really understand why you persist with this argument. You have
> > > raised some valid points which should be looked at and considered in
> > > the scheme of things but most of the diatribe you present here seems
> > > aimed at China/Chinese Government. I have always found prejudices
> > > cloud peoples judgement.
>
> > > To sumarise how this problem will probably be viewed;
> > > Google created a dns based system (for GAE addressing) which puts
> > > everything though ghs.google.com. This system works really well and
> > > from my experience it was very clever and efficient. However it has an
> > > issue with firewalls that got overlooked. Google has just recently
> > > been made aware of this problem.
>
> > > On Apr 5, 12:53 pm, Andy Freeman  wrote:
>
> > > > > Feel free to hair-split the word "obligation".
>
> > > > It's the plain meaning of the word.  I apologise for not knowing that
> > > > you didn't know what it meant when you wrote that Google had an
> > > > obligation to make GAE available in China.  Are there other statements
> > > > that you made without understanding their meaning?
>
> > > > China availability issue is one of the few issues where folks claim
> > > > that/act like Google has an obligation even though it's an issue where
> > > > Google has very little capability to change things.
>
> > > > > That's why I want to hear from a Google representative on their plan.
>
> > > > I predict that if Google says anything, it will be roughly equivalent
> > > > to "we're doing what we can".  At that point, you'll have to decide if
> > > > the results, which will vary with the whim of the Chinese govt, are
> > > > adequate for your purposes.
>
> > > > Of course, if you're better at dealing with the Chinese govt than
> > > > Google is
>
> > > > > Now just accept that fact and act accordingly.
>
> > > > And the basis for this order is...
>
> > > > On Apr 4, 6:11 pm, Andy  wrote:
>
> > > > > > I'm someone who understands that obligations come from laws and
> > > > > > contracts.  Feel free to point to the relevant chapter and verse 
> > > > > > that
>
> > > > > > However, absent a contract and/or a law, Google isn't obligated to
>

[google-appengine] Re: PyFacebook + Jinja?

2009-04-06 Thread boson

This group is pretty low traffic, but you might have better luck:
  http://groups.google.com/group/facebook-and-google-app-engine

P.S. FB TOS does not allow apps to incentivize social actions.

On Apr 1, 7:30 pm, "benf...@gmail.com"  wrote:
> Would some please provide me with an example of how to implement
> PyFacebook without Django/Pylons?
>
> I'm asking because I want to reward my users for inviting friends via
> Facebook and I can't find a good tutorial aimed at beginners.
>
> I would really appreciate being pointed in the right direction.
>
> So far I've read these two things, and I'm still lost:
>
> http://groups.google.com/group/google-appengine/browse_thread/thread/...
>
> http://wiki.developers.facebook.com/index.php/PythonPyFacebookTutorial
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: 2 appengine accounts under same email woes, including login: admin problems

2009-04-06 Thread Jeff S

Hi David,

Is the app you are trying to sign in to set to use Google Accounts
(not Google Apps accounts)? If so, this is a known issue:

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

I think the simplest solution for now would be to create a different
Google Account, one which is not associated with Google Apps, and add
it as an admin for this app.

Cheers,

Jeff

On Mar 31, 7:16 pm, David Wilson 
wrote:
> Hi
>
> Im having some problems related to appengine admin access. This is
> complicated to explain, but here goes:
>
> (im using fake names here, the real domain is in my email address)
>
> I originally had a google appengine account under a google apps
> domain  mydomain.com
>
> Where I would sign into appegnine 
> likehttp://appengine.google.com/a/mydomain.com
>
> Using myn...@mydomain.com as the user name.
>
> I then didn’t use appengine for a long time, and in this time I
> created a google account under myn...@mydomain.com so I could use
> other services.
>
> I then came back to app engine and forgot that I needed to sign in
> using the way shown above, and signed in using my regular google
> account. This needed re-authenticating via sms (which I thought was
> odd, but figured it timed out due to lack of use).
>
> So now I seem to have 2 appengine accounts under the same email.
>
> But if I create a new application with the regular account, it dose
> not appear there, but in the apps account.
>
> BUT applications created in the apps account will not let me log using
> admin rights to any pages using login: admin
>
> Please 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Very simple, trying to set a property, but failing :(

2009-04-06 Thread Jeff S

Hi Lou,

Are you sure that there is a Venue entity to get with your query?
Without seeing the exception this is a bit difficult to debug, but it
could be that venue_obj is being set to None since GqlQuery.get()
didn't find anything.

Thank you,

Jeff

On Apr 4, 10:14 pm, Lou  wrote:
> Hi,
>
> I'm a bit stuck with trying to set a property for some reason it's
> not working, and I can't figure it out.
>
> My model is as follows:
>
> class Venue(db.Model):
>     intro_text = db.StringProperty()
>     images = db.ListProperty(db.Blob)
>
> The problem is in a helper method that I have, where I've taken the
> input from a POST and trying to set the value in the intro_text
> property of the Venue model.
>
> Unfortunately, I'm using django 1.02 with app engine and I can't see
> what the exception is that's being thrown.  I've narrowed it down to
> the following (last two lines of code) though:
>
> def setVenueIntroText(text):
>     venue_obj = db.GqlQuery("SELECT * FROM Venue").get()
>     venue_obj.intro_text = text
>     db.put(venue_obj)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: running appcfg.py

2009-04-06 Thread Jeff S

Hi leemajors,

I imagine ./appcfg.py should work. The execution path in Ubuntu does
not usually include the current directory (.) but you could check by
running echo $PATH.

Thank you,

Jeff

On Apr 5, 1:10 am, leemajors  wrote:
> hi there,
>
> i'm using ubuntu 8.10 and for some reason can't run appcfg.py -- when
> i navigate to where the file is and try running it from the command
> line i get:
>
> bash: appcfg.py: command not found
>
> even though i'm in the directory and can see it if i use ls
>
> any thoughts?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: 2 appengine accounts under same email woes, including login: admin problems

2009-04-06 Thread David Wilson


i created a new apps login, and gave this admin rights to the app.

I then removed the original user from the app. But i still get a
server error when trying to navigate to the admin restricted content.

we have a lot of data in this app now so i dont really want to have to
start again.

not ideal!  >_<





On Apr 6, 11:38 am, David Wilson 
wrote:
> hi thanks for the reply.
>
> no the account is set to use Google Apps accounts and was created
> using the correcthttp://appengine.google.com/a/mydomain.comlogin. so
> this seems like a related but different issue to me.
>
> i will try to give another google apps account member admin rights,
> and see if they can log in.
>
> and ill also add my issue to the post given above.
>
> On Apr 6, 10:55 am, Jeff S  wrote:
>
> > Hi David,
>
> > Is the app you are trying to sign in to set to use Google Accounts
> > (not Google Apps accounts)? If so, this is a known issue:
>
> >http://code.google.com/p/googleappengine/issues/detail?id=428
>
> > I think the simplest solution for now would be to create a different
> > Google Account, one which is not associated with Google Apps, and add
> > it as an admin for this app.
>
> > Cheers,
>
> > Jeff
>
> > On Mar 31, 7:16 pm, David Wilson 
> > wrote:
>
> > > Hi
>
> > > Im having some problems related to appengine admin access. This is
> > > complicated to explain, but here goes:
>
> > > (im using fake names here, the real domain is in my email address)
>
> > > I originally had a google appengine account under a google apps
> > > domain  mydomain.com
>
> > > Where I would sign into appegnine 
> > > likehttp://appengine.google.com/a/mydomain.com
>
> > > Using myn...@mydomain.com as the user name.
>
> > > I then didn’t use appengine for a long time, and in this time I
> > > created a google account under myn...@mydomain.com so I could use
> > > other services.
>
> > > I then came back to app engine and forgot that I needed to sign in
> > > using the way shown above, and signed in using my regular google
> > > account. This needed re-authenticating via sms (which I thought was
> > > odd, but figured it timed out due to lack of use).
>
> > > So now I seem to have 2 appengine accounts under the same email.
>
> > > But if I create a new application with the regular account, it dose
> > > not appear there, but in the apps account.
>
> > > BUT applications created in the apps account will not let me log using
> > > admin rights to any pages using login: admin
>
> > > Please 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] GQL "join" question

2009-04-06 Thread Marcel Overdijk

I read a lot of posts about normalizing/denormalizing tables within
the BigTable architecture.
I understand BigTable does not support joins because of scalability
and performance.

However I'm wondering how I can solve the problem below.

I have a sime table containing meter reading per user. The table will
contain:
- Reference to user
- Date of Meter Reading
- Value

(1) Now what I want to collect is the average value per month.
E.g
- User1, 1 jan 2009, 1000
- User1, 1 feb 2009, 1100
- User1, 1 mar 2009, 1200
The avarage will be 100

But maybe the user misses registering the meter reading on 1 feb:
- User1, 1 jan 2009, 1000
- User1, 1 mar 2009, 1200
The average will still be 1200

(2) Next I like to get the average value per month over all users.

I guess the answer will be to store average values when creating (and
updaing existing) meter reading records.
But how should this be implemented?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: 2 appengine accounts under same email woes, including login: admin problems

2009-04-06 Thread David Wilson


hi thanks for the reply.

no the account is set to use Google Apps accounts and was created
using the correct http://appengine.google.com/a/mydomain.com login. so
this seems like a related but different issue to me.

i will try to give another google apps account member admin rights,
and see if they can log in.

and ill also add my issue to the post given above.



On Apr 6, 10:55 am, Jeff S  wrote:
> Hi David,
>
> Is the app you are trying to sign in to set to use Google Accounts
> (not Google Apps accounts)? If so, this is a known issue:
>
> http://code.google.com/p/googleappengine/issues/detail?id=428
>
> I think the simplest solution for now would be to create a different
> Google Account, one which is not associated with Google Apps, and add
> it as an admin for this app.
>
> Cheers,
>
> Jeff
>
> On Mar 31, 7:16 pm, David Wilson 
> wrote:
>
> > Hi
>
> > Im having some problems related to appengine admin access. This is
> > complicated to explain, but here goes:
>
> > (im using fake names here, the real domain is in my email address)
>
> > I originally had a google appengine account under a google apps
> > domain  mydomain.com
>
> > Where I would sign into appegnine 
> > likehttp://appengine.google.com/a/mydomain.com
>
> > Using myn...@mydomain.com as the user name.
>
> > I then didn’t use appengine for a long time, and in this time I
> > created a google account under myn...@mydomain.com so I could use
> > other services.
>
> > I then came back to app engine and forgot that I needed to sign in
> > using the way shown above, and signed in using my regular google
> > account. This needed re-authenticating via sms (which I thought was
> > odd, but figured it timed out due to lack of use).
>
> > So now I seem to have 2 appengine accounts under the same email.
>
> > But if I create a new application with the regular account, it dose
> > not appear there, but in the apps account.
>
> > BUT applications created in the apps account will not let me log using
> > admin rights to any pages using login: admin
>
> > Please 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: mydomain.appspot.com works but not www.mydomain.com

2009-04-06 Thread Anjanesh

On Apr 4, 5:52 am, WallyDD  wrote:
> Try this, it might 
> help;http://groups.google.com/group/google-appengine/web/deleting-existing...

Tried that - still doesnt work - I didnt have www as the URL for sites
- I even tried to add it as mentioned in the article, but would say
that its already been used.
Any other way ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: mydomain.appspot.com works but not www.mydomain.com

2009-04-06 Thread WallyDD

I wish I could tell you the answer. I remember when I first mapped a
domain it took me quite a number of hours over a couple of days before
it "worked". From memory I think I started creating temp.mydomain.com
and temp2.mydomain.com before it allowed me to map www. At one stage I
deleted everything and started again.

You might want try some of the suggestions from a precious discussion;
http://groups.google.com/group/google-appengine/browse_thread/thread/af79c8826f68aae8/7db4b813fb8f5e96?lnk=gst&q=www+mapping+404#7db4b813fb8f5e96

Maybe Marzia will be able to offer some help? Is she around?

On Apr 6, 3:25 pm, Anjanesh  wrote:
> On Apr 4, 5:52 am, WallyDD  wrote:
>
> > Try this, it might 
> > help;http://groups.google.com/group/google-appengine/web/deleting-existing...
>
> Tried that - still doesnt work - I didnt have www as the URL for sites
> - I even tried to add it as mentioned in the article, but would say
> that its already been used.
> Any other way ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Joe Bowman

Get a server and IP that is available in China, but outside of the
chinese firewall. Configure it to proxy you appspot.com domain. It
gets tricky handling cookies and session state and such doing this
though. Not a turnkey solution. Basically all requests to your
appengine application coming from users using the proxy, will be seen
as the proxy machine not the individual client machines. There are
some proxy passthroughs you can do depending on the software you
choose to handle this.

Of course you'll have to pay for the bandwidth usage going through the
proxy as well.

On Apr 6, 12:35 pm, WallyDD  wrote:
> The internet is indeed a funny place.
> I did respond with a question on how to set this up but have received
> no answer?
>
> Any ideas anyone?
>
> On Apr 6, 3:03 am, Paddy Foran  wrote:
>
> > I'd just like to point out how funny it is that people keep banging on
> > for Google to respond, and in their banging on for Google to respond,
> > they missed Google's actual response.
>
> > >> Is there any google staff who is responsible for GAE promotion and
> > >> technology to say something here?
>
> > >> How can I access to my Google Apps via my own domain directly, e.g.
> > >> how can access via mail.my_domain.com instead of mail.google.com/a/
> > >> my_domain.com?
>
> > >One way to address this is to run a proxy server elsewhere, which will
> > >allow your site to have it's own unique IP, rather than the shared IPs
> > >of Google.
>
> > >-Brett
> > >App Engine Team
>
> > Please note the "App Engine Team" signature. That means Brett (at
> > least claims he) is from Google.
>
> > Poor Brett was ignored, as people clamoured for Brett to comment.
>
> > This is why I love the internet. It amuses me to no end.
>
> > On Apr 6, 12:48 am, Andy Freeman  wrote:
>
> > > > No company is willing to be a pawn in the game of politics between
> > > > Google and China.
>
> > > That sounds reasonable, but what can Google do to stop the Chinese
> > > govt from blocking?
>
> > > (1) Google can't tell the Chinese govt what to do.
>
> > > (2) The Chinese govt appears to be technically competent and controls
> > > the relevant connections, both from the outside and from internal
> > > datacenters.
>
> > > (3) Google can propose agreements, but China is a soverign entity and
> > > and can do what it pleases wrt internal matters.  (Other posters have
> > > suggested that buying dinner for the appropriate official would cause
> > > the blocking to go away.  I don't see why the Chinese govt would find
> > > such an agreement binding.)
>
> > > Yes, one can argue that Google "needs" the Chinese govt to not block,
> > > but that doesn't imply that Google can do anything to stop the Chinese
> > > govt from blocking.  Google's needs do not obligate the Chinese govt.
>
> > > On Apr 5, 3:16 pm, WallyDD  wrote:
>
> > > > Google is more or less obligated to solve this issue.
>
> > > > No company is willing to be a pawn in the game of politics between
> > > > Google and China.
> > > > Name a single company (that has any international presence) who would
> > > > be willing to use GAE knowing full well that it is blocked in its
> > > > current form?
> > > > This issue has nothing to do with the Chinese government and there is
> > > > no way Google will point the finger at them.
>
> > > > Perhaps google can also take on all the other countries that are
> > > > blocking GAE and while they are at it they can point fingers at
> > > > corporate america and their firewalls?
> > > > You have to remember that at the moment this is a "preview release".
>
> > > > I don't really understand why you persist with this argument. You have
> > > > raised some valid points which should be looked at and considered in
> > > > the scheme of things but most of the diatribe you present here seems
> > > > aimed at China/Chinese Government. I have always found prejudices
> > > > cloud peoples judgement.
>
> > > > To sumarise how this problem will probably be viewed;
> > > > Google created a dns based system (for GAE addressing) which puts
> > > > everything though ghs.google.com. This system works really well and
> > > > from my experience it was very clever and efficient. However it has an
> > > > issue with firewalls that got overlooked. Google has just recently
> > > > been made aware of this problem.
>
> > > > On Apr 5, 12:53 pm, Andy Freeman  wrote:
>
> > > > > > Feel free to hair-split the word "obligation".
>
> > > > > It's the plain meaning of the word.  I apologise for not knowing that
> > > > > you didn't know what it meant when you wrote that Google had an
> > > > > obligation to make GAE available in China.  Are there other statements
> > > > > that you made without understanding their meaning?
>
> > > > > China availability issue is one of the few issues where folks claim
> > > > > that/act like Google has an obligation even though it's an issue where
> > > > > Google has very little capability to change things.
>
> > > > > > That's why I want to hear fr

[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Wooble



On Apr 6, 3:03 am, Paddy Foran  wrote:
> I'd just like to point out how funny it is that people keep banging on
> for Google to respond, and in their banging on for Google to respond,
> they missed Google's actual response.

That's because Brett gave a technical solution instead of telling us
what Google's going to do to bribe Chinese officials to stop the
blocking, censor everyone's apps so appspot won't get blocked, and/or
overthrow the Chinese government using their supersecret corporate
army.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Date Range GQL not working.

2009-04-06 Thread Benjamin Ortuzar

Hi gents,

Im trying to search for some codes within a date range, but some dates
that exist in the database are not being returned by the query. Here
is an extract of the code in using.


deltaDays = timedelta(days= 10)
endDate = datetime.date.today()
startDate = endDate - deltaDays

result = db.GqlQuery(
"SELECT * FROM myData WHERE mytype = :1 AND pubdate
>= :2 and pubdate <= :3", type, startDate, endDate
)

class myData(db.Model):
mytype = db.StringProperty(required=True)
value =  db.FloatProperty(required=True)
pubdate = db.DateTimeProperty(required=True)

The script returns :

 2009-03-18 00:00:00
(missing date in results: 2009-03-20 data exists in database)
 2009-03-23 00:00:00
 2009-03-24 00:00:00
 2009-03-25 00:00:00
 2009-03-26 00:00:00
(missing date in results: 2009-03-27 data exists in database)
 2009-03-30 00:00:00
(missing date in results: 2009-03-31. data exists in database)
 2009-04-01 00:00:00
 2009-04-02 00:00:00
 2009-04-03 00:00:00
 2009-04-06 00:00:00


Any help is appreciated. thanks.

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



[google-appengine] Re: ReferenceProperty and Filtering

2009-04-06 Thread djidjadji

You must first find the Model1 objects that have the required fieldModel1 value
Then get the keys for those models and then find the Model2 objects
that have a model1 value that matches one of those keys

2009/4/5 pjfitz :
>
> Hi,
> I cannot seem to filter on field names of ReferenceProperty fields.
> For example if i have the following two models.
>
> Model1(db.Model)
> fieldModel1 = db.StringProperty()
>
> Model2(db.Model)
> model1 = db.ReferenceProperty(Model1)
>
> I cannot seem to filter correctly with the following
>
> q=Model2.all()
> q=filter("model1.fieldModel1 =", somevalue)
>
> Has anyone any suggestions as to why this does not work?
>
> tks,
> PJ
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Can't direct app engine server to the yaml file

2009-04-06 Thread djidjadji

try, inside a command window

c:
cd C:\test
dev_appserver helloworld\



2009/4/6 Banaticus :
>
> I installed Python 2.5.4 and the Google App Engine.  I created a
> folder named test on the C drive, with a folder named helloworld
> inside it.  In that, I put the app.yaml file and helloworld.py files
> that the tutorial suggested, but I can't get the server to run.
>
> I've tried: dev_appserver C:\test\helloworld\
> I've tried exactly what the example shows, I've tried perhaps 10
> different variations between the two, using backslashes and forward
> slashes adding more directory information and leaving more directory
> information out -- nothing seems to work.  It keeps saying,
> "ERROR:root:Application configuration file not found in [then it lists
> the directory I gave it].  Any suggestions on why it can't find my
> app.yaml file?
>
> >
>

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



[google-appengine] Re: GQL "join" question

2009-04-06 Thread 'Αλκης Ευλογημένος
On Mon, Apr 6, 2009 at 8:53 PM, Marcel Overdijk wrote:

> (1) Now what I want to collect is the average value per month.
> E.g
> - User1, 1 jan 2009, 1000
> - User1, 1 feb 2009, 1100
> - User1, 1 mar 2009, 1200
> The avarage will be 100
>
> But maybe the user misses registering the meter reading on 1 feb:
> - User1, 1 jan 2009, 1000
> - User1, 1 mar 2009, 1200
> The average will still be 1200
>

The average is 1200? Or 100?

-- 

Alkis

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



[google-appengine] Re: How to use the data of StringProperty as strings?

2009-04-06 Thread 'Αλκης Ευλογημένος
What is the error? It is pretty hard to debug what the problem is without
it.

On Mon, Apr 6, 2009 at 8:19 AM, saintthor  wrote:

>
> #using datastore, create the entity
>
> class Dj_User( db.Model ):
>UsName = db.StringProperty( multiline = True )
>
>def PutUser( self, uD ):
>self.UsName = uD['UserName']
>self.put()
>
> #then read it and write to response, all ok
>
> for user in Dj_User.all()
>self.response.out.write( user.UsName )
>
> #but when using the user.UsName as strings, an error occurs
>
> for user in Dj_User.all()
>self.response.out.write( user.UsName + '' )
>
> #can not use str() on user.UsName either
>
> for user in Dj_User.all()
>self.response.out.write( str( user.UsName ) + '')
>
> How can i use the user.UsName as strings?
>
> >
>


-- 

Alkis

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



[google-appengine] Re: can i upload files less than 10M but larger than 1M now?

2009-04-06 Thread Jason

Yes, that's right.

Cheers!
- Jason

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



[google-appengine] Re: fetching contacts from Google Data API

2009-04-06 Thread Jeff S

Hi Pushkar,

These fields may be missing because the data has not been entered.
Specifically, it could be that some of the contacts don't have a title
set. Do the entries with title.text of None have a name when you view
the entry in the contacts web UI? I saw some entities like this when
looking through my contacts feed. If there is no title set, the email
address is displayed as the name.

If the above is not the issue, some additional information might be
helpful. Screenshots and code snippets can go a long way :-)

Thank you,

Jeff

On Apr 4, 9:20 am, Pushkar Nichkawade 
wrote:
> Hi,
>
> I am using Google Data Api to fetch contacts from my google API.
>
> I am able to get all contacts but I can see only few titles rest titles are
> coming as 'None'.
>
> Also I am unable to fetch *email* for those contacts. Could you please help
> me?
>
> Thanks,
> Pushkar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Lots of DownloadError exceptions

2009-04-06 Thread Jeff S

Hi Deepak,

The error you are seeing usually means that the urlfetch service did
not receive the reply within ~5 seconds. There could be several
possible sourced of latency which could be involved as you noted, so
do you think the issue could be that the sbstransit site is responding
more slowly than it used to?

Thank you,

Jeff

On Apr 6, 5:45 am, Deepak Sarda  wrote:
> Hi
>
> One of my apps is getting DownloadError (ApplicationError 5) for
> pretty much all urlfetch remote url fetch requests to a particular
> remote server for the past week. Fetch requests to other servers are
> not affected. Also, there are no problems fetching content from this
> remote server from the local development server. Here's a traceback
> from the logs:
>
> Error fetching 
> urlhttp://www.sbstransit.com.sg/mobileiris/index_svclist.aspx?stopcode=1...
> Traceback (most recent call last):
>   File "/base/data/home/apps/sbsnextbus/6.332480362470588654/utils.py",
> line 71, in get_url
>     result = urlfetch.fetch(url)
>   File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py",
> line 273, in fetch
>     raise DownloadError(str(e))
> DownloadError: ApplicationError: 5
>
> As can be seen from the trace, my app (http://sbsnextbus.appspot.com)
> is trying to fetch pages from sbstransit.com.sg
>
> This appears to be a deadline exceeded error (error code 5) but I
> can't figure out why this should occur. Everything was running
> smoothly till last week when this started happening.
>
> Since I can't reproduce this problem locally and there is no problem
> fetching pages from other remote servers in the production
> environment, I suspect the issue is related to network connectivity
> issues between AppEngine data centers & the servers ofwww.sbstransit.com.sg
>
> This problem has been around for almost a week now and I can't seem to
> figure out a solution or work-around. Searches in the group archive
> didn't yield anything helpful. Any help would be greatly appreciated!
>
> Thanks,
>
> Deepak
>
> PS: Is there a process to open a 'support ticket' with appengine team
> regarding infrastructure issues?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
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 CGI adaptor OF util.run_wsgi_app takes 0.6S to service a request

2009-04-06 Thread Jeff S

Hi Coonay,

On the first request to your app, some initial startup time is
expected. In production, there is some initialization cost associated
with loading your app for the first time as well, but subsequent
requests may go to an already running instance of your app so the
initialization cost is avoided. Specifics are available here in the
docs:

http://code.google.com/appengine/docs/python/runtime.html#App_Caching

Happy coding,

Jeff

On Apr 6, 3:02 am, Coonay  wrote:
> whether testing in the local  development web server or in app
> engine,google.appengine.ext.webapp.util.run_wsgi_app itself always
> take 0.6 second to service a request,if adds up all othere cpu time
> taken by my own business calling ,it's very easy to take up more than
> 1.5S for every request,i got this perfomance when my app site is
> idle.
>
> Do you use this CGI adaptor in production?could you tell me how to
> optimize run_wsgi_app  calling?or ,is there a better CGI adaptor?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: 2 appengine accounts under same email woes, including login: admin problems

2009-04-06 Thread Jeff S

Hi David,

Could you email me the app ID for this application? I will investigate
further.

Thank you,

Jeff

On Apr 6, 12:02 pm, David Wilson 
wrote:
> i created a new apps login, and gave this admin rights to the app.
>
> I then removed the original user from the app. But i still get a
> server error when trying to navigate to the admin restricted content.
>
> we have a lot of data in this app now so i dont really want to have to
> start again.
>
> not ideal!  >_<
>
> On Apr 6, 11:38 am, David Wilson 
> wrote:
>
> > hi thanks for the reply.
>
> > no the account is set to use Google Apps accounts and was created
> > using the correcthttp://appengine.google.com/a/mydomain.comlogin. so
> > this seems like a related but different issue to me.
>
> > i will try to give another google apps account member admin rights,
> > and see if they can log in.
>
> > and ill also add my issue to the post given above.
>
> > On Apr 6, 10:55 am, Jeff S  wrote:
>
> > > Hi David,
>
> > > Is the app you are trying to sign in to set to use Google Accounts
> > > (not Google Apps accounts)? If so, this is a known issue:
>
> > >http://code.google.com/p/googleappengine/issues/detail?id=428
>
> > > I think the simplest solution for now would be to create a different
> > > Google Account, one which is not associated with Google Apps, and add
> > > it as an admin for this app.
>
> > > Cheers,
>
> > > Jeff
>
> > > On Mar 31, 7:16 pm, David Wilson 
> > > wrote:
>
> > > > Hi
>
> > > > Im having some problems related to appengine admin access. This is
> > > > complicated to explain, but here goes:
>
> > > > (im using fake names here, the real domain is in my email address)
>
> > > > I originally had a google appengine account under a google apps
> > > > domain  mydomain.com
>
> > > > Where I would sign into appegnine 
> > > > likehttp://appengine.google.com/a/mydomain.com
>
> > > > Using myn...@mydomain.com as the user name.
>
> > > > I then didn’t use appengine for a long time, and in this time I
> > > > created a google account under myn...@mydomain.com so I could use
> > > > other services.
>
> > > > I then came back to app engine and forgot that I needed to sign in
> > > > using the way shown above, and signed in using my regular google
> > > > account. This needed re-authenticating via sms (which I thought was
> > > > odd, but figured it timed out due to lack of use).
>
> > > > So now I seem to have 2 appengine accounts under the same email.
>
> > > > But if I create a new application with the regular account, it dose
> > > > not appear there, but in the apps account.
>
> > > > BUT applications created in the apps account will not let me log using
> > > > admin rights to any pages using login: admin
>
> > > > Please 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Questions regarding google apps domains consuming an app...

2009-04-06 Thread Jeff S

Hi andy,

I think this is a great idea, though it is not currently supported.
Would you mind filing a feature request in the issue tracker?:

http://code.google.com/p/googleappengine/issues/

Thank you,

Jeff

On Apr 3, 6:43 pm, andyburke  wrote:
> Hi,
>
> I am working on developing an issue tracker using the appengine and
> I'd like for people who set up google apps for their domain to be able
> to add it as one of their services.
>
> However, I can't seem to find any information about how I should
> support this.  I had hoped that separate google apps domains would
> support having their own datastore.  It seems like that's not the
> case.  I think it would be nice to support that for the following
> reasons:
>
> 1) It makes designing my app easier, I don't need to track which
> google app domain data in the datastore belongs to.
> 2) It means I don't have access to their data, which might be nice
> from their point of view.
>
> Is this kind of thing supported?  Have I totally missed this in my
> searches?
>
> Is anyone else interested in this model for storing the data for an
> app engine app?
>
> andy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem with timeouts on get_by_key_name

2009-04-06 Thread Jeff S

Hi Marcus,

The error rate makes me think these are transient errors, so it should
be safe to retry. Be sure to catch the specific exception, since there
are other reasons that a datastore get might fail more consistently.
(like an invalid key name ;-)

Timeouts can also indicate datastore contention since repeated writes
to the same entity (or entity group) can queue up and take too long to
complete, but this would not be the case for gets.

Happy coding,

Jeff

On Apr 6, 12:17 am, Marcus  wrote:
> Hello Jeff!
>
> Thanks for your reply.
>
> I would estimate that it is around 0.04% of the calls that fails.
>
> Would it help to catch the timeout exception and do a retry directly
> again or would that also fail?
>
> I am mostly worried that the data from the users will go lost.
>
> /Marcus
>
> On Apr 4, 3:02 am, Jeff S  wrote:
>
> > Hi Marcus,
>
> > You are correct that get_by_key_name does tend to be a very efficient
> > query, but it is possible to see atimeoutthough this is usually
> > quite rare as a percentage of overall requests. Do you have a feel for
> > what percentage of these get operations are timing out?
>
> > Thank you,
>
> > Jeff
>
> > On Apr 2, 1:06 am, Marcus  wrote:
>
> > > Hello!
>
> > > I am getting some timeouts in my app. My app uses get_by_key_name
> > > along with alot of other database accessing. I get around 5-10 timouts
> > > each day and it is always get_by_key_name that times out, never any
> > > other database acceses.
>
> > > Why could this be? Is there a way to protect the app from these
> > > timeouts. I thought get_by_key_name was a fast access to the database.
> > > The app have akeythat is around 20 characters long and the app have
> > > quite a lot of users (I guess around 200 000).
>
> > >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > > __init__.py", line 849, in get_by_key_name
> > >     return get(*keys)
> > >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > > __init__.py", line 1044, in get
> > >     entities = datastore.Get(keys)
> > >   File "/base/python_lib/versions/1/google/appengine/api/
> > > datastore.py", line 221, in Get
> > >     raise _ToDatastoreError(err)
> > >   File "/base/python_lib/versions/1/google/appengine/api/
> > > datastore.py", line 1965, in _ToDatastoreError
> > >     raise errors[err.application_error](err.error_detail)
> > >Timeout
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Need help. Getting many python errors on localhost test.

2009-04-06 Thread Jason

Hi Aaron. Are you able to run the demo guestbook application? You
should just be able to use the following from the google_appengine
directory:

./dev_appserver.py demos/guestbook/

>From the error message, it looks like there is an issue with a
particular module named contact. Are you sure it's in the module
search path?

Thanks,
- Jason

On Apr 4, 2:10 pm, Aaron  wrote:
> No I can't even run the test server anymore.
>
> I get a new error:
>
> Traceback (most recent call last):
>   File "manage.py", line 4, in 
>     setup_env(manage_py_env=True)
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/aecmd.py", line 63, in
> setup_env
>     patch_all()
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/appenginepatcher/patch.py",
> line 21, in patch_all
>     patch_django()
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/appenginepatcher/patch.py",
> line 535, in patch_django
>     from ragendja import template
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/ragendja/template.py", line 84,
> in 
>     app_template_dirs = get_app_dirs('templates')
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/ragendja/apputils.py", line 38,
> in get_app_dirs
>     for appname, module in get_app_modules().items():
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/ragendja/apputils.py", line 32,
> in get_app_modules
>     if module_name in list_modules(import_module(app)):
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/ragendja/apputils.py", line 5,
> in import_module
>     return __import__(module_name, {}, {}, [''])
> ImportError: No module named contact
> r...@demonicproductions:/home/aaron/websites/Chillenvillen.com/apps/
> google_app_engine/google_appengine# python manage.py runserver
> Traceback (most recent call last):
>   File "manage.py", line 4, in 
>     setup_env(manage_py_env=True)
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/aecmd.py", line 63, in
> setup_env
>     patch_all()
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/appenginepatcher/patch.py",
> line 21, in patch_all
>     patch_django()
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/appenginepatcher/patch.py",
> line 535, in patch_django
>     from ragendja import template
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/ragendja/template.py", line 84,
> in 
>     app_template_dirs = get_app_dirs('templates')
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/ragendja/apputils.py", line 38,
> in get_app_dirs
>     for appname, module in get_app_modules().items():
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/ragendja/apputils.py", line 32,
> in get_app_modules
>     if module_name in list_modules(import_module(app)):
>   File "/home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
> google_appengine/common/appenginepatch/ragendja/apputils.py", line 5,
> in import_module
>     return __import__(module_name, {}, {}, [''])
> ImportError: No module named contact
>
> that's what the terminal spits out.
>
> I am using linux ubuntu OS.
>
> I have not changed anything. This just happended when I restarted the
> test server.
>
> On Apr 4, 3:30 pm, Aaron  wrote:
>
> > I just need help on where my files needs to be.
>
> > I have my app in it's own folder. I had the app inside the directory
> > of google app engine.
>
> > the problem is when I run manage.py inside my own app folder. The
> > manage.py can't find the source development kit of google apps engine.
>
> > So I took the manage.py out and put it directly in the google app
> > engine which then can find the SDK.
>
> > Then I got the problem with finding the application which I notice
> > manage.py made the test server to look for the app in the static
> > folder.
>
> > So I moved the app to the static folder and then I got python error
> > messages instead of a 404.  This is where I am at.
>
> > I am not sure if the files are in the right place where it needs to be
> > placed.
>
> > I am getting like 50 errors. All or most of them are coming from the
> > app engine python scripts.
>
> > I am guessing the files are not in the proper place in order for it to
> > run or be found.
>
> > So I ask where does my application need to be  in order for it to run.
> > I thin

[google-appengine] Bulkuploader error - No implementation for kind \'%s\'' % kind

2009-04-06 Thread satish


I am trying to use bulkuploader for the first time using the procedure
outlined at this page (http://code.google.com/appengine/docs/python/
tools/uploadingdata.html) but I am receiving the following error. Can
someone please help? Thank you.

No implementation for kind \'%s\'' % kind

No implementation for kind 'AliasCommand'

AliasCommand is a entity in main.py

-aliascommand_loader.py (Loader Class) begin --

import datetime
from google.appengine.ext import db
import __main__

class AliasCommandLoader(Loader):
  def __init__(self):
Loader.__init__(self, 'AliasCommand',
[('alias', str),
 ('command', str)
 ])
-aliascommand_loader.py (Loader Class) end --

-main.py (the main module in which AliasCommand entity is
defined) begin --


class AliasCommand(db.Model):
alias = db.StringProperty(required=False)
command = db.StringProperty(required=False)
createdate = db.DateTimeProperty(auto_now_add=True)


-main.py (the main module in which AliasCommand entity is
defined) end --


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Make a Quiz on Facebook

2009-04-06 Thread paul jobs
http://apps.facebook.com/makefunquiz
http://apps.facebook.com/bdayecards 

   1. Will you be rich? 
   2. Are You Going to Heaven or Hell?

-- 
BidEgg - Worlds best low price Auction site
http://bidegg.com

BidEgg - Worlds best low price Auction site

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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 factors make Loading __main__ very time-consume

2009-04-06 Thread Jason

How often are your requests coming in? If your requests are coming in
at a low rate, it's possible that your instances are being spun down
then spun back up which could account for such a delay -- if requests
are coming in steadily, e.g. every few seconds, your instances
shouldn't be spun down.

imported modules are already cached, but have you looked into app
caching yet? If you add a main() routine, your handler scripts will be
cached between requests, which could help response time:

http://code.google.com/appengine/docs/python/runtime.html#App_Caching

- Jason

On Apr 5, 7:22 am, Coonay  wrote:
> No,i profiled the db insert operation  and found the it's not the db
> insert that 's time consuming,it's the Loading __main__ itself
> consuming a lot of time,could you tell me why
> Loading __main__ spend so much time?
>
> 04-05 07:13AM 57.908 /gwt/Home/post_nost 500 888ms 1677ms-cpu 0kb
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19
> (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19,gzip(gfe)
>
> 222.65.30.191 - [05/Apr/2009:07:13:58 -0700] "POST /gwt/Home/post_nost
> HTTP/1.1" 500 180 "http://coonay.appspot.com/
> 1DD6B98BD09B2027717DAF593993F70D.cache.html" "Mozilla/5.0 (Windows; U;
> Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/
> 1.0.154.53 Safari/525.19,gzip(gfe)"
>
> 04-05 07:13AM 57.944
> Loading __main__
>
> 04-05 07:13AM 58.629
> Trace into post_nost
>
> 04-05 07:13AM 58.715
> update ok
> 04-05 07:13AM 58.722
> Trace out post_nost
>
> On Apr 5, 9:43 pm, Coonay  wrote:
>
> > Maybe it's the write operation that slow down the Loading __main__ ,in
> > the request ,a new record is insert into the app engine store,i
> > suspect thats the main reason of my problem,
> > what method do u use to profile the write  operation and optimize the
> > write operation?
>
> > On Apr 5, 9:27 pm, Coonay  wrote:
>
> > > The following log  is extracted from the Administration Console, the
> > > Loading __main__ spend nearly 1 second,i use
> > > app engine + django,what factors   do u think make Loading __main__
> > > very time-consume?
>
> > > 04-05 04:00AM 14.739 /gwt/Home/post_nost 500 909ms 1873ms-cpu 8kb
> > > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19
> > > (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19,gzip(gfe)
>
> > > 222.65.30.191 - [05/Apr/2009:04:00:15 -0700] "POST /gwt/Home/post_nost
> > > HTTP/1.1" 500 8074 "http://coonay.appspot.com/
> > > 1DD6B98BD09B2027717DAF593993F70D.cache.html" "Mozilla/5.0 (Windows; U;
> > > Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/
> > > 1.0.154.53 Safari/525.19,gzip(gfe)"
> > > D 04-05 04:00AM 14.766
> > > Loading __main__
> > > I 04-05 04:00AM 15.517
> > > update ok
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] How to access form variables?

2009-04-06 Thread Jim

I'm following the official example on how to use Django forms from
http://code.google.com/appengine/articles/djangoforms.html

Want to define st:state - AK:Alaska, AL=Alabama, etc. so that people
can use "Alaska" instead of "AK"

I want to store both st and state in the table for entries so I don't
have to do a lookup later.

So I want to present a pull-down with the list of states.  On submit,
look up the abbreviation for Alaska and store them both.

I want to use the abbreviation because /state/dc looks like less cause
for trouble down the road than /state/district%20of%20columbia

>From the example, I don't understand how I can access the form
variables.   Seemed like StatesForm.state would work but it doesn't.

class US_States(db.Model):
st = db.StringProperty(required=True,multiline=False)
state = db.StringProperty(required=True,multiline=False)

class US_Info(db.Model):
st = db.StringProperty(required=True,multiline=False)
state = db.StringProperty(required=True,multiline=False)
info = db.TextProperty

class US_InfoForm(djangoforms.ModelForm):
class Meta:
model = US_Info


class AddInfo(webapp.RequestHandler):
def get(self):
form = US_InfoForm()
# original had self.response.out.write( US_InfoForm() )
self.response.out.write('' )
self.response.out.write(' Home')
self.response.out.write(' > States' )
self.response.out.write('' )
self.response.out.write('')
self.response.out.write(form )
self.response.out.write(''
''
'')
query = db.GqlQuery("SELECT * FROM US_States WHERE state = :
1", form.state)
# doesn't work
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Seeing a Load of Datastore Errors Today.....

2009-04-06 Thread Jason

What is your application ID?

- Jason

On Apr 5, 12:50 pm, cc  wrote:
> We have not seen any errors like this before today they are popping up
> 1 in 20 requests:
>
> File "/base/python_lib/versions/1/google/appengine/api/datastore.py",
> line 886, in _Run
>     _ToDatastoreError(err)
>   File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 1965, in _ToDatastoreError
>     raise errors[err.application_error](err.error_detail)
> Timeout
>
> What is up with this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: mobile service is not on list

2009-04-06 Thread Jeff S

Hi,

The following FAQ includes an SMS issues form which will allow you to
request sign up in cases when you cannot verify using your mobile
phone:

http://code.google.com/appengine/kb/sms.html#error

Thank you,

Jeff

On Apr 4, 1:11 am, Bhaskar1  wrote:
> I am from South Korea , this country is not available in the country
> list so I cannot make admin with my mobile number.So what is the
> solution to make admin in webapps?
>
> 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: Lots of Application Error: 5 on URLFetch

2009-04-06 Thread hoben

I just wrote this to fix a similar problem. Hopefully it helps you.

In your code, use _urlfetch2() instead of urlfetch.fetch().


def _urlfetch2(url, payload, method, headers):
for count in range(20):
try:
return urlfetch.fetch(
url=url,
payload=payload,
method=method,
headers=headers
)
except:
pass

raise Exception, 'Could not reach %s' % url



On Mar 24, 2:23 pm, Tim Bull  wrote:
> I'm calling content from Twitter on a regular basis (every 5 minutes),
> but suddenly over the last two daysURLFetchis consistently (for more
> than a couple of hours) returning error 5 on myURLFetch.
>
> Now, I know that Twitter appears "slower" at these times, but it's
> still responding when I manually fetch the URL.
>
> Is there any way I can extend the length of time URL Fetch waits
> before timing out?
>
> Cheers,
>
> Tim Bull

On Mar 24, 2:23 pm, Tim Bull  wrote:
> I'm calling content from Twitter on a regular basis (every 5 minutes),
> but suddenly over the last two daysURLFetchis consistently (for more
> than a couple of hours) returning error 5 on myURLFetch.
>
> Now, I know that Twitter appears "slower" at these times, but it's
> still responding when I manually fetch the URL.
>
> Is there any way I can extend the length of time URL Fetch waits
> before timing out?
>
> Cheers,
>
> Tim Bull
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Running dev_appserver.py under a mod_python

2009-04-06 Thread Khai

Perhaps I didn't explain my problem clearly.  This problem applies
only to the development server (dev_appserver.py or SDK).  The problem
is it is single threaded, so when multiple requests arrived at the
same time, they have to be served serially (one after the other), so
one of the request got timed out by the opensocial agent.  What can I
do to service multiple requests concurrently in the development
environment?

On Apr 4, 2:28 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)
 wrote:
> That's a very bad idea: dev_appserver is not secure, is snail slow if you
> add more than a couple of thousand entities in it and it is uncertain if it
> can share a "datastore" across multiple instances.
> Why do you want to do this? What is wrong with hosting on GAE?
>
>
>
> On Sat, Apr 4, 2009 at 11:04 PM, Khai  wrote:
>
> > Before I try something crazy I want to know if someone has try it or
> > whether it is too crazy to try.
>
> > The problem is dev_appserver.py is single-threaded, and I need to have
> > multiple instances running.  I am developing an opensocial application
> > which make three asynchronous requests to my server.  Because
> > dev_appserver.py is single threaded, the last request serviced by
> > dev_appserver.py took more than 5 seconds and get timed out by
> > opensocial.  So I need to have multiple processes of dev_appserver.py
> > running.
>
> > I've search this group, and so far I've only found that someone run
> > multiple dev_appserver.py processes using different ports which is not
> > practical for my problem.  I've also search this group for mod_python,
> > but did not find any relevant result.  I want to run dev_appserver.py
> > as a mod_python script with Apache prefork mpm (multiple processes).
>
> > Is this possible?  What is the degree of difficulty?  I am very novice
> > with GAE, and I have never done anything with mod_python.  Has anyone
> > try this before?  Would anyone willing to try it and share it with the
> > group?
>
> > Any responses / advices would be greatly appreciated.
>
> > Khai
>
> --
>
> Alkis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Lots of DownloadError exceptions

2009-04-06 Thread Deepak Sarda

Hi Jeff.

Thanks for your reply. I did some measurements.

First is a request made to a different remote host:

LTA Fetch on App Engine
===

#
04-06 04:35PM 03.011 /api/v1/16061/30/ 200 768ms 168ms-cpu 0kb Mozilla/
5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/
3.1b3,gzip(gfe)
See details 218.186.10.253 - - [06/Apr/2009:16:35:03 -0700] "GET /api/
v1/16061/30/ HTTP/1.1" 200 275 - "Mozilla/5.0 (X11; U; Linux i686; en-
US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3,gzip(gfe)"

#
I 04-06 04:35PM 03.027
Method get called for APIEndPoint

#
D 04-06 04:35PM 03.036
Cache hit for stop 16061

#
I 04-06 04:35PM 03.043
Fetching URL:
http://www.publictransport.sg/public/ptp/en/Getting-Around/ArrivaltimeResults.html?hidServiceNoValue=&hidBusStopValue=16061

#
I 04-06 04:35PM 03.626
Fetched URL:
http://www.publictransport.sg/public/ptp/en/Getting-Around/ArrivaltimeResults.html?hidServiceNoValue=&hidBusStopValue=16061

=

As you can see, this urlfetch took just over half a second to
complete.

Now a request that caused a fetch from sbstransit.com.sg

NextBus fetch on App Engine
==
#
04-06 04:34PM 11.864 /api/v1/17069/030/ 200 3276ms 279ms-cpu 0kb
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3) Gecko/20090305
Firefox/3.1b3,gzip(gfe)
See details 218.186.10.253 - - [06/Apr/2009:16:34:15 -0700] "GET /api/
v1/17069/030/ HTTP/1.1" 200 173 - "Mozilla/5.0 (X11; U; Linux i686; en-
US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3,gzip(gfe)"

#
I 04-06 04:34PM 12.073
Method get called for APIEndPoint

#
I 04-06 04:34PM 12.107
Fetching URL: 
http://www.sbstransit.com.sg/mobileiris/index_svclist.aspx?stopcode=17069

#
W 04-06 04:34PM 15.120
  Error fetching url 
http://www.sbstransit.com.sg/mobileiris/index_svclist.aspx?stopcode=17069
  Traceback (most recent call last):
File "/base/data/home/apps/sbsnextbus/6.332607848382532409/
utils.py", line 72, in get_url
  result = urlfetch.fetch(url)
File "/base/python_lib/versions/1/google/appengine/api/
urlfetch.py", line 273, in fetch
  raise DownloadError(str(e))
  DownloadError: ApplicationError: 5

===

Now, the urlfetch got cut-off in 3 seconds. This is longer than usual
but still under the 5 second limit. Now for comparison, here is a log
of the same request executed on my localhost in the development
server.

On localhost
==

INFO 2009-04-06 23:50:15,961 main.py] Method get called for
APIEndPoint
DEBUG2009-04-06 23:50:15,962 nextbus.py] Cache hit for stop 17069
INFO 2009-04-06 23:50:15,962 utils.py] Fetching URL:
http://www.sbstransit.com.sg/mobileiris/index_mobresult.aspx?stop=17069&svc=051
DEBUG2009-04-06 23:50:15,964 urlfetch_stub.py] Making HTTP
request: host = www.sbstransit.com.sg, url =
http://www.sbstransit.com.sg/mobileiris/index_mobresult.aspx?stop=17069&svc=051,
payload = None, headers = {'Host': 'www.sbstransit.com.sg', 'Accept':
'*/*'}
DEBUG2009-04-06 23:50:16,077 urlfetch_stub.py] Making HTTP
request: host = www.sbstransit.com.sg, url =
http://www.sbstransit.com.sg/mobileiris/(yvyrjnatocvc0y55rjqlocu3)/index_mobresult.aspx?stop=17069&svc=051,
payload = None, headers = {'Host': 'www.sbstransit.com.sg', 'Accept':
'*/*'}
INFO 2009-04-06 23:50:17,259 utils.py] Fetched URL:
http://www.sbstransit.com.sg/mobileiris/index_mobresult.aspx?stop=17069&svc=051
DEBUG2009-04-06 23:50:17,260 nextbus.py] Saved cache for stop, svc
17069, 051
INFO 2009-04-06 23:50:17,274 dev_appserver.py] "GET /api/
v1/17069/051/ HTTP/1.1" 200 -

=

On localhost, the urlfetch completed in just under 1.5 seconds.
Doesn't this indicate that (a) this could be a latency issue between
Google's servers & SBS Transit's servers? and (b) request should still
not be cut-off since it is well under the ~5 seconds limit.

I know the 5 seconds limit is not documented (at least I can't find
it) but it is an issue if it keeps changing all the time.

Any thoughts?

Cheers,

Deepak


On Apr 7, 5:16 am, Jeff S  wrote:
> Hi Deepak,
>
> The error you are seeing usually means that the urlfetch service did
> not receive the reply within ~5 seconds. There could be several
> possible sourced of latency which could be involved as you noted, so
> do you think the issue could be that the sbstransit site is responding
> more slowly than it used to?
>
> Thank you,
>
> Jeff
>
> On Apr 6, 5:45 am, Deepak Sarda  wrote:
>
> > Hi
>
> > One of my apps is getting DownloadError (ApplicationError 5) for
> > pretty much all urlfetch remote url fetch requests to a particular
> > remote server for the past week. Fetch requests to other servers are
> > not affected. Also, there are no problems fetching content from this
> > remote server from the local development server. Here's a traceback
> > from the logs:
>
> > Error fetching 
> > urlhttp://www.sbstransit.com.sg/mobileiris/index_svclist.aspx?stopcode=1...
> > Traceback (most recent call last):
> >   File "/base/data/ho

[google-appengine] Re: dev_appserver.py and ListenBackLog directive

2009-04-06 Thread Khai

This is regarding the development server (dev_appserver.py or SDK).  I
am inquiring on this because I am developing an opensocial application
which makes three asynchronous requests, but one of them fail
(randomly).  I know that the development server is single-threaded.
I've started another discussion on how to run the development server
as a mod_python script (but haven't got enough discussion yet).

I am a novice python user.  I've look python documentation on socket
programming.  It uses the listen().  I've look up the manual page for
listen() with "man 2 listen", and it signature is:

int listen(int sockfd, int backlog);

I've grep the development SDK source for 'listen(' but did not find
it.  I am confused.  Is the listen() system call being used at all?  I
am running dev_appserver.py on Linux.  Please guide me in the right
direction.

Thanks
Khai

On Apr 4, 4:40 pm, Tim Hoffman  wrote:
> Hi
>
> You really need to read up on the architecture of App Engine, remember
> app engine is a long way from the server.  It is not a server like
> apache in it's own right.
>
> As far you and your application is concerned there is no such thing,
> Any pending connections will be handled in googles infrastructure and
> is more than likely going to end up with a new instance starting up.
>
> What would you hope to learn from such a thing if it was available and
> what could
> you do with the knowledge.
>
> Rgds
>
> Tim
>
> On Apr 5, 5:18 am,Khai wrote:
>
> > With Apache we can configure the maximum length of the queue of
> > pending connections using it's ListenBackLog directive 
> > (http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listenbacklog).
>
> > Can anyone with knowledge of the SDK internals please let me know the
> > default maximum length of the queue of pending connections  (this
> > would save me some time from having to dig through the source code)?
> > Can we make this a configurable command-line option?
>
> > Any responses would be appreciated.
>
> > Thanks
> >Khai
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: dev_appserver.py and ListenBackLog directive

2009-04-06 Thread Tony Arkles

The quick answer is 5 :)

You're absolutely correct in looking for listen(), but you're looking
in the wrong place.

The dev_appserver runs the BaseHTTPServer from the Python standard
library.  The BaseHTTPServer from the stdlib runs the
SocketServer.TCPServer from the SocketServer in the stdlib.  And... it
looks like the TCPServer defaults to a listen backlog of 5 :)

(see BaseHTTPServer.py and SocketServer.py in your Python distribution
for all the gritty details, along with google/appengine/tools/
dev_appserver.py in your App Engine SDK kit)


On Apr 6, 7:10 pm, Khai  wrote:
> This is regarding the development server (dev_appserver.py or SDK).  I
> am inquiring on this because I am developing an opensocial application
> which makes three asynchronous requests, but one of them fail
> (randomly).  I know that the development server is single-threaded.
> I've started another discussion on how to run the development server
> as a mod_python script (but haven't got enough discussion yet).
>
> I am a novice python user.  I've look python documentation on socket
> programming.  It uses the listen().  I've look up the manual page for
> listen() with "man 2 listen", and it signature is:
>
> int listen(int sockfd, int backlog);
>
> I've grep the development SDK source for 'listen(' but did not find
> it.  I am confused.  Is the listen() system call being used at all?  I
> am running dev_appserver.py on Linux.  Please guide me in the right
> direction.
>
> Thanks
> Khai
>
> On Apr 4, 4:40 pm, Tim Hoffman  wrote:
>
>
>
> > Hi
>
> > You really need to read up on the architecture of App Engine, remember
> > app engine is a long way from the server.  It is not a server like
> > apache in it's own right.
>
> > As far you and your application is concerned there is no such thing,
> > Any pending connections will be handled in googles infrastructure and
> > is more than likely going to end up with a new instance starting up.
>
> > What would you hope to learn from such a thing if it was available and
> > what could
> > you do with the knowledge.
>
> > Rgds
>
> > Tim
>
> > On Apr 5, 5:18 am,Khai wrote:
>
> > > With Apache we can configure the maximum length of the queue of
> > > pending connections using it's ListenBackLog directive 
> > > (http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listenbacklog).
>
> > > Can anyone with knowledge of the SDK internals please let me know the
> > > default maximum length of the queue of pending connections  (this
> > > would save me some time from having to dig through the source code)?
> > > Can we make this a configurable command-line option?
>
> > > Any responses would be appreciated.
>
> > > Thanks
> > >Khai
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Running dev_appserver.py under a mod_python

2009-04-06 Thread Tony Arkles

Khai, I recently posted a bit on my blog about this: 
http://blog.chilly.ca/?p=238

You'll probably be pretty hard-pressed to run it on anything but the
dev_appserver, and it's not very likely that you'll get it working
multi-threaded.  Sorry :(


On Apr 6, 5:59 pm, Khai  wrote:
> Perhaps I didn't explain my problem clearly.  This problem applies
> only to the development server (dev_appserver.py or SDK).  The problem
> is it is single threaded, so when multiple requests arrived at the
> same time, they have to be served serially (one after the other), so
> one of the request got timed out by the opensocial agent.  What can I
> do to service multiple requests concurrently in the development
> environment?
>
> On Apr 4, 2:28 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)
>
>
>
>  wrote:
> > That's a very bad idea: dev_appserver is not secure, is snail slow if you
> > add more than a couple of thousand entities in it and it is uncertain if it
> > can share a "datastore" across multiple instances.
> > Why do you want to do this? What is wrong with hosting on GAE?
>
> > On Sat, Apr 4, 2009 at 11:04 PM, Khai  wrote:
>
> > > Before I try something crazy I want to know if someone has try it or
> > > whether it is too crazy to try.
>
> > > The problem is dev_appserver.py is single-threaded, and I need to have
> > > multiple instances running.  I am developing an opensocial application
> > > which make three asynchronous requests to my server.  Because
> > > dev_appserver.py is single threaded, the last request serviced by
> > > dev_appserver.py took more than 5 seconds and get timed out by
> > > opensocial.  So I need to have multiple processes of dev_appserver.py
> > > running.
>
> > > I've search this group, and so far I've only found that someone run
> > > multiple dev_appserver.py processes using different ports which is not
> > > practical for my problem.  I've also search this group for mod_python,
> > > but did not find any relevant result.  I want to run dev_appserver.py
> > > as a mod_python script with Apache prefork mpm (multiple processes).
>
> > > Is this possible?  What is the degree of difficulty?  I am very novice
> > > with GAE, and I have never done anything with mod_python.  Has anyone
> > > try this before?  Would anyone willing to try it and share it with the
> > > group?
>
> > > Any responses / advices would be greatly appreciated.
>
> > > Khai
>
> > --
>
> > Alkis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Bulkuploader error - No implementation for kind \'%s\'' % kind

2009-04-06 Thread 秦锋

main.py is in PYTHONPATH?
What's your command looks like?

On 4月7日, 上午6时28分, satish  wrote:
> I am trying to use bulkuploader for the first time using the procedure
> outlined at this page (http://code.google.com/appengine/docs/python/
> tools/uploadingdata.html) but I am receiving the following error. Can
> someone please help? Thank you.
>
> No implementation for kind \'%s\'' % kind
>
> No implementation for kind 'AliasCommand'
>
> AliasCommand is a entity in main.py
>
> -aliascommand_loader.py (Loader Class) begin --
>
> import datetime
> from google.appengine.ext import db
> import __main__
>
> class AliasCommandLoader(Loader):
>   def __init__(self):
> Loader.__init__(self, 'AliasCommand',
> [('alias', str),
>  ('command', str)
>  ])
> -aliascommand_loader.py (Loader Class) end --
>
> -main.py (the main module in which AliasCommand entity is
> defined) begin --
> 
> 
> class AliasCommand(db.Model):
> alias = db.StringProperty(required=False)
> command = db.StringProperty(required=False)
> createdate = db.DateTimeProperty(auto_now_add=True)
> 
> 
> -main.py (the main module in which AliasCommand entity is
> defined) end --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: DataStore timeout

2009-04-06 Thread campos

I had the same problem since couple of days before. It all worked fine
previously. My app has a somewhat high frequency, about 30 request/
sec. Is that the cause? How to solve it?

On Apr 5, 3:56 pm, cc  wrote:
> We are seeing the same issue today. No problem in the past.
> Somebody tweaked something!
>
> On Apr 3, 5:31 am, DarkCoiote  wrote:
>
> > Getting a bad number of datastore timeout... and the operation is
> > 'simple', is a put in simple model;...
>
> > Traceback (most recent call last):
> >   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> > __init__.py", line 501, in __call__
> >     handler.get(*groups)
> >   File "/base/data/home/apps/naval-war/1.332510333196150921/main.py",
> > line 218, in get
> >     person.put()
> >   File "/base/python_lib/versions/1/google/appengine/ext/db/
> > __init__.py", line 669, in put
> >     return datastore.Put(self._entity)
> >   File "/base/python_lib/versions/1/google/appengine/api/
> > datastore.py", line 166, in Put
> >     raise _ToDatastoreError(err)
> >   File "/base/python_lib/versions/1/google/appengine/api/
> > datastore.py", line 1965, in _ToDatastoreError
> >     raise errors[err.application_error](err.error_detail)
> > Timeout
>
> > person model:
> > class Person(db.Model):
> >   id = db.StringProperty()
> >   score = db.IntegerProperty(default=0)
> >   currentFleet = db.IntegerProperty(default=0)
> >   availableShots = db.IntegerProperty(default=0)
> >   maxShots = db.IntegerProperty(default=0)
> >   shipsSunk = db.ListProperty(int,verbose_name="Sunken ships list",
> > default=[0,0,0,0,0])
> >   shipsLost = db.ListProperty(int,verbose_name="Lost ships list",
> > default=[0,0,0,0,0])
> >   lastAccess = db.DateTimeProperty(auto_now_add=True)
>
> > see... no references or anything complicated
>
> > any tips on how to reduce the number of datastore timeouts??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread WallyDD

Thanks for the answer Joe.

I have to agree it is not a turnkey solution and from the look of
things people are probably better off giving up on GAE and finding an
alternate host. The general feeling I find on the web is that Amazons
service is better suited for the international market.

On Apr 6, 3:59 pm, Joe Bowman  wrote:
> Get a server and IP that is available in China, but outside of the
> chinese firewall. Configure it to proxy you appspot.com domain. It
> gets tricky handling cookies and session state and such doing this
> though. Not a turnkey solution. Basically all requests to your
> appengine application coming from users using the proxy, will be seen
> as the proxy machine not the individual client machines. There are
> some proxy passthroughs you can do depending on the software you
> choose to handle this.
>
> Of course you'll have to pay for the bandwidth usage going through the
> proxy as well.
>
> On Apr 6, 12:35 pm, WallyDD  wrote:
>
>
>
> > The internet is indeed a funny place.
> > I did respond with a question on how to set this up but have received
> > no answer?
>
> > Any ideas anyone?
>
> > On Apr 6, 3:03 am, Paddy Foran  wrote:
>
> > > I'd just like to point out how funny it is that people keep banging on
> > > for Google to respond, and in their banging on for Google to respond,
> > > they missed Google's actual response.
>
> > > >> Is there any google staff who is responsible for GAE promotion and
> > > >> technology to say something here?
>
> > > >> How can I access to my Google Apps via my own domain directly, e.g.
> > > >> how can access via mail.my_domain.com instead of mail.google.com/a/
> > > >> my_domain.com?
>
> > > >One way to address this is to run a proxy server elsewhere, which will
> > > >allow your site to have it's own unique IP, rather than the shared IPs
> > > >of Google.
>
> > > >-Brett
> > > >App Engine Team
>
> > > Please note the "App Engine Team" signature. That means Brett (at
> > > least claims he) is from Google.
>
> > > Poor Brett was ignored, as people clamoured for Brett to comment.
>
> > > This is why I love the internet. It amuses me to no end.
>
> > > On Apr 6, 12:48 am, Andy Freeman  wrote:
>
> > > > > No company is willing to be a pawn in the game of politics between
> > > > > Google and China.
>
> > > > That sounds reasonable, but what can Google do to stop the Chinese
> > > > govt from blocking?
>
> > > > (1) Google can't tell the Chinese govt what to do.
>
> > > > (2) The Chinese govt appears to be technically competent and controls
> > > > the relevant connections, both from the outside and from internal
> > > > datacenters.
>
> > > > (3) Google can propose agreements, but China is a soverign entity and
> > > > and can do what it pleases wrt internal matters.  (Other posters have
> > > > suggested that buying dinner for the appropriate official would cause
> > > > the blocking to go away.  I don't see why the Chinese govt would find
> > > > such an agreement binding.)
>
> > > > Yes, one can argue that Google "needs" the Chinese govt to not block,
> > > > but that doesn't imply that Google can do anything to stop the Chinese
> > > > govt from blocking.  Google's needs do not obligate the Chinese govt.
>
> > > > On Apr 5, 3:16 pm, WallyDD  wrote:
>
> > > > > Google is more or less obligated to solve this issue.
>
> > > > > No company is willing to be a pawn in the game of politics between
> > > > > Google and China.
> > > > > Name a single company (that has any international presence) who would
> > > > > be willing to use GAE knowing full well that it is blocked in its
> > > > > current form?
> > > > > This issue has nothing to do with the Chinese government and there is
> > > > > no way Google will point the finger at them.
>
> > > > > Perhaps google can also take on all the other countries that are
> > > > > blocking GAE and while they are at it they can point fingers at
> > > > > corporate america and their firewalls?
> > > > > You have to remember that at the moment this is a "preview release".
>
> > > > > I don't really understand why you persist with this argument. You have
> > > > > raised some valid points which should be looked at and considered in
> > > > > the scheme of things but most of the diatribe you present here seems
> > > > > aimed at China/Chinese Government. I have always found prejudices
> > > > > cloud peoples judgement.
>
> > > > > To sumarise how this problem will probably be viewed;
> > > > > Google created a dns based system (for GAE addressing) which puts
> > > > > everything though ghs.google.com. This system works really well and
> > > > > from my experience it was very clever and efficient. However it has an
> > > > > issue with firewalls that got overlooked. Google has just recently
> > > > > been made aware of this problem.
>
> > > > > On Apr 5, 12:53 pm, Andy Freeman  wrote:
>
> > > > > > > Feel free to hair-split the word "obligation".
>
> > > > > > It's the plain meaning of the word.  I apologise for not know

[google-appengine] Templating Logic

2009-04-06 Thread GenghisOne

A stupid question about templating...

Do I really need to use the whole os.path.join monstrosity to tell
Python where my template lives?

I commented it out and replaced it with a simple path...it seems to
work fine.

What am I missing here? Why are others using this os.path.join
pattern?


#path = os.path.join(os.path.dirname(__file__), 'Templates/
mytemplate2.html' )
path = 'Templates/mytemplate2.html'
self.response.out.write(template.render(path, template_values))


Thx.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Lots of Application Error: 5 on URLFetch

2009-04-06 Thread Deepak Sarda

Hi Tim

On Mar 25, 2:23 am, Tim Bull  wrote:
> I'm calling content from Twitter on a regular basis (every 5 minutes),
> but suddenly over the last two days URLFetch is consistently (for more
> than a couple of hours) returning error 5 on my URLFetch.

I am seeing the same error. See this thread:
http://groups.google.com/group/google-appengine/browse_thread/thread/7efba89c7487b083/4e046d969513cca4
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] please

2009-04-06 Thread Richard Bremner
ta

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Lots of Application Error: 5 on URLFetch

2009-04-06 Thread Deepak Sarda

Hi Hoben

On Apr 7, 7:44 am, hoben  wrote:
> I just wrote this to fix a similar problem. Hopefully it helps you.
>
> In your code, use _urlfetch2() instead of urlfetch.fetch().
>

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



[google-appengine] Data Modeling and Efficiency Question

2009-04-06 Thread codingJoe

Lets say I have a data store to capture my Company Priorities.   The
Company manages a portfolio of 10,000+ projects and he has them all
prioritized.

class Project(db.Model):
  customerRef = db.ReferenceProperty(reference_class=Customer)
  priority = db.IntegerProperty(required=True) # 1 to 500
  projectStart = db.DateTimeProperty(auto_now_add=True)


The CEO wants to Top 10 displayed on every web page.   This is a high
volume server, so that means I'm constantly querying the entire list
of projects for top 10.   That seems like an expensive query to repeat
constantly.

Since the top 10 don't change on a day-to-day basis, is it advisable
to build a data store for top10 information and simply update that
daily?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Data Modeling and Efficiency Question

2009-04-06 Thread codingJoe

Forgot to ask, is there a better or more elegant way to design my app
for that type a feature?


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



[google-appengine] Re: GQL "join" question

2009-04-06 Thread GregF

On Apr 7, 6:53 am, Marcel Overdijk  wrote:
> - User1, 1 jan 2009, 1000
> - User1, 1 feb 2009, 1100
> - User1, 1 mar 2009, 1200
> The avarage will be 1100 ***
>
> But maybe the user misses registering the meter reading on 1 feb:
> - User1, 1 jan 2009, 1000
> - User1, 1 mar 2009, 1200
> The average will still be 1100 ***
> I guess the answer will be to store average values when creating (and
> updaing existing) meter reading records.
> But how should this be implemented?

*** Corrected.

Yes, calculate averages when you update the table. If you don't need
to search for particular readings, you might want to store the meter
readings in a db.ListProperty(int), with an associated db.ListProperty
(int) of timestamps.

I need to count various things in my app, so I define a model and
helper functions like this:

class Counter(db.Model):
  count=db.IntegerProperty(required=True,default=0)

# Increment a counter
# NB: These are functions, not class members
def _incrementCounter(counterId,amount):
counter=Counter.get_by_id(counterId)
counter.count+=amount
counter.put()
def incrementCounter(counterId,amount=1):
db.run_in_transaction(_incrementCounter,counterId,amount)

I'm sure you can do something similar for your averages.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Data Modeling and Efficiency Question

2009-04-06 Thread David Wilson


an ordered fetch via priority will index the data efficiently to fetch
the first 10 without going over the rest of the data. Then place the
result into memcache for subsequent requests, with a daily expiry
time.


On Apr 6, 8:51 pm, codingJoe  wrote:
> Forgot to ask, is there a better or more elegant way to design my app
> for that type a feature?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Server Error (500) updating indexes

2009-04-06 Thread ten_foot_ninja

I've tried vacuuming the index list and updating it, but i keep
getting Server Error(500) with no more detail.

My index.yaml file seems to work fine from the dev server, any ideas?

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



[google-appengine] Re: Using ReportLab with ZipImport

2009-04-06 Thread Arun Shanker Prasad

Hi,

Anyone got any work-around for my situation? I am stuck at this
point...

Thanks,
Arun Shanker Prasad.

On Apr 6, 5:12 pm, Arun Shanker Prasad 
wrote:
> Hi,
>
> I have a requirement to generate dynamic PDFs from HTML source. I
> included the Pisa, html5lib and the reportlab packages for this.
> Everything works fine in the local environment as long I keep all the
> packages in the initial source ie I do not zip it.
>
> Keeping the whole ReportLab package (204 files) might take me way
> close to the allowed file limit. I tried to convert the ReportLab
> package into a zip and use zipimport to use it. This causes the
> following error,
>
> AttributeError: 'HardenedModulesHook' object has no attribute '_files'
>
> My source where the imports are called,
> import sys
> sys.path.insert(0, 'ho.zip')
> sys.path.insert(0, 'html5lib.zip')
> sys.path.insert(0, 'sx.zip')
> sys.path.insert(0, 'reportlab.zip')
> import ho.pisa as pisa
>
> Googled a bit for the solution found another mention of this in issue
> tracker,http://code.google.com/p/googleappengine/issues/detail?id=1085.
>
> Can anyone help me get around this problem? I have seen many use
> reportlab in Google App Engine how do you guys get around this issue??
>
> Any help will be greatly appreciated.
>
> Thanks,
> Arun Shanker Prasad.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Should I take my website somewhere else? - blocked in China

2009-04-06 Thread Andy



On Apr 6, 10:16 am, Andy Freeman  wrote:
> > One of them is to offer hosting at Google's data center in China.
>
> Since China can block sites hosted in China  (I thought that it
> was common knowledge that China imposed controls on in-China sites.)

So you really have no idea what you are talking about...

Yes genius, China can take down sites hosted in China, and that's the
whole point. By hosting sites in China, only sites that do not violate
government standards will be allowed to stay up, all other sites will
by law have to be taken down.

The direct outcome: sites that do not violate government standards
will be accessible to Chinese users. Contrast that with the current
situation, where China cannot order the take down of sites that
violate their government standards and as a result has to resort to
blanket blocking of all GAE sites.

I thought that was painfully obvious...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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
-~--~~~~--~~--~--~---



  1   2   >