[google-appengine] Re: Why my apps can't open?

2009-05-15 Thread 林楠
It might has something to do with the GFW.

2009/5/16 Jason (Google) 

> They both open for me -- has this issue been resolved on your end?
>
> If the issue is related to your App Engine code, you should see an error in
> your GAE logs. Otherwise, can you indicate what you are seeing? A specific
> error message or stack trace would be helpful here.
>
> - Jason
>
>
> On Thu, May 14, 2009 at 11:05 PM, GUI  wrote:
>
>>
>> My two apps, cannot open since yesterday. They are
>> http://gui-cn.appspot.com
>> and http://www.makenotes.net. Why? I found that some other apps can
>> open. I am in Mainland China.
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Email Marketing on GAE

2009-05-15 Thread Iap
I have some question about this issue.
If people pay,
why can not they send bulk of emails?
How to tell spam or not? Who has the authority to say
this is spam and that is not spam?
In many ass hole countries,
the goveronment as well as the ISPs accuse all the
bulk mailing are spams but their own.
I hope that Google will not help to build the bricks
for this kind of shameless "Great Wall".
No question, I am not asking Google to become
the heaven of spamer.
 "Spam is bulk sending, but bulk sending is not spam, is it?


2009/5/16 Wooble geoffsp...@gmail.com

>
> On May 15, 3:27 pm, Neves  wrote:
> > Since GAE cost is $0.0001 per recipients emailed, it is a low price.
> > Can I build an Email Marketing Tool?
>
> I suggest you read http://code.google.com/appengine/program_policies.html
>
> The email function is for sending emails to your users, not for
> spamming^H^H^H^H^H^H^H^H^H"marketing".
>  >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Get all but first 10 out of DB

2009-05-15 Thread Iap
Do you mean "offset" parameter in the gql query?

2009/5/16 Wiiboy 

>
> Hi,
> I want to get the all the results out of a database, except the first
> 10.  What query would I use to do that?
> >
>

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



[google-appengine] Get all but first 10 out of DB

2009-05-15 Thread Wiiboy

Hi,
I want to get the all the results out of a database, except the first
10.  What query would I use to do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: email issue with Google Apps e-mail "Group"

2009-05-15 Thread Jason (Google)
I have a personal Google Apps domain; I created a new group, set it to
"Public" and made sure to check the "Any email address" box in the "Who can
send email to this group" section. I verified that I my App Engine app could
send mail both to individuals and this particular group in my domain.

This leads me to believe that there is a different issue. Can you confirm
whether you are able to send mail to an individual using the same code as
you have set up for the group (just swapping out the 'to' address)? Can you
also confirm whether the "Any email address" box is selected in your Google
Apps dashboard?

Thanks,
- Jason

On Tue, May 12, 2009 at 2:16 AM, Sylvain  wrote:

>
> For me it's a very big issue.
> Currently the dev is frozen.
>
> So I've created an issue here :
> http://code.google.com/p/googleappengine/issues/detail?id=1530
>
> Maybe I could have more help from the Google Apps team ?
>
> Regards.
>
>
> On 7 mai, 16:11, Sylvain  wrote:
> > No,
> >
> > I've posted a question on the Google Apps help "forum".
> > And there  is no "good" answer (spf ?)
> >
> > So I'm waiting for a googler with a solution else I will fill a bug.
> > But I don't know where is the issue : GAE or Google Apps, so it is
> > very difficult.
> >
> > Regards.
> >
> > On 5 mai, 18:46, Srid  wrote:
> >
> > > Sylvain
> >
> > > I am having this same problem.  Did you find any solution?
> >
> > > thx
> > > Srid
> >
> > > On May 5, 8:05 am, Sylvain  wrote:
> >
> > > > I don't think we are talking about the same thing.
> > > > You are talking about "Post a message".
> > > > I just want to "send" a mail
> >
> > > > Here is a picture about what I'm talking.
> >
> > > >http://img206.imageshack.us/my.php?image=gappgroup.jpg
> >
> > > > Sylvain
> >
> > > > On 5 mai, 13:57, Sylvain  wrote:
> >
> > > > > Yes, thisgroupis correctly parameter.
> >
> > > > > I'm just testing to send a mail to support@.com with my
> gmail
> > > > > adress and many other e-mail adresses (hotmail,... etc,...). And
> all
> > > > > my tests work.
> >
> > > > > So there is only an issue with mails from GAE.
> >
> > > > > Sylvain
> >
> > > > > On 5 mai, 13:42, "Nick Johnson (Google)" 
> > > > > wrote:
> >
> > > > > > Hi Sylvain,
> >
> > > > > > Even for groups that are marked 'public', they generally require
> that
> > > > > > the sender be a member of thegroupbefore they can post. In
> addition
> > > > > > to setting thegroupas "public", you also need to select "anyone
> can
> > > > > > post" under "who can post messages?" on the Access tab of
> thegroup's
> > > > > > settings.
> >
> > > > > > -Nick Johnson
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-15 Thread djidjadji

What is the content of the template?
There is a for loop executed and there it goes 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] Re: Timeout: datastore timeout: operation took too long.

2009-05-15 Thread Brandon Thomson

Actually, even just fetching one entity by key will frequently cause a
Timeout. My logs are full of these...

On Apr 30, 2:59 pm, Sylvain  wrote:
> For my app, I never fetch more than 250 entities because I've seen
> that if this values is bigger you raise too many datastore timeouts.
> But even with 250 entities (with a very basic Kind) something I get atimeout.
>
> One "funny" thing is that you can fetch up to 1000 entities (whatever
> kind, number of attributes,...) but in the fact it doesn't work ->timeout.
>
> On 30 avr, 17:45, barabaka  wrote:
>
> > Well, I've read a lot of posts about google datastore and the problems
> > with batch operations, relational approach to arrange data in bigtable
> > etc. but I always thought the problem wasn't in datastore itself but
> > in the way people use it. Now I can see with my experience that it
> > acts just in an unpredictable way. I deployed a test java app that
> > tries to clear 500 (guaranteed amount!) entries per request. All
> > entries are in the same entity group and delete is executed in batch
> > in single transaction. All operations are executed with low level API
> > so no possible overhead is involved. Here is a sample code and logs:
>
> > Code (cut):
> > =
> > Query q = new Query(World.class.getSimpleName()); // create query
> > Iterator i = datastoreService.prepare(q).asIterator();
> > idx = 0;
> > while (i.hasNext() && idx<500) {
> >    keys.add(i.next().getKey());
> >    idx++;
>
> > }
>
> > // delete keys in batch
> > Transaction t = datastoreService.beginTransaction();
> > datastoreService.delete(keys);
> > t.commit();
> > ==
>
> > 1st request (all goes well, 500 entries removed)
> > -
> >    1.
> >       I 04-30 07:52AM 02.091 org.itvn.controller.TvnController
> > clearDbBySize: Reading 500 entity keys...
> >       See details
> >    2.
> >       I 04-30 07:52AM 03.832 org.itvn.controller.TvnController
> > clearDbBySize: Removing keys by groups, total groups: 1
> >    3.
> >       I 04-30 07:52AM 03.832 org.itvn.controller.TvnController
> > clearDbBySize: Trying to remove 500 entities...
> >    4.
> >       I 04-30 07:52AM 07.873 org.itvn.controller.TvnController
> > clearDbBySize: Removed 500 entities.
>
> > 2nd request -timeoutexception, on READ operation (i.hasNext())
> > -
> >    1.
> >       I 04-30 07:52AM 22.719 org.itvn.controller.TvnController
> > clearDbBySize: Reading 500 entity keys...
> >       See details
> >    2.
> >       W 04-30 07:52AM 26.551 Nested in
> > org.springframework.web.util.NestedServletException: Request
> > processing failed; nested exception is
> > com.google.appengine.api.datastore.Datas
> >    3.
> >       W 04-30 07:52AM 26.552 /clear_db/500
> > com.google.appengine.api.datastore.DatastoreTimeoutException:
> > datastoretimeout: operation took too long. at
> > com.google.appengine.api.d
> >    4.
> >       C 04-30 07:52AM 26.555 Uncaught exception from servlet
> > com.google.appengine.api.datastore.DatastoreTimeoutException:
> > datastoretimeout: operation took too long. at com.goog
>
> > Here we go, first request executes well, and the next (only a few
> > seconds later) fails! Note that this is only a test application, with
> > no load at all. Am I doing something wrong? What's the RELIABLE way to
> > read/remove 500 entities? Is it a problem with quantity (500)? If so
> > how much entities could be read withouttimeout? Can someone give the
> > reasonable answer to this? If you need more details about app, I can
> > share this test case in public.
>
> > Oleg
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Email Marketing on GAE

2009-05-15 Thread Wooble



On May 15, 3:27 pm, Neves  wrote:
> Since GAE cost is $0.0001 per recipients emailed, it is a low price.
> Can I build an Email Marketing Tool?

I suggest you read http://code.google.com/appengine/program_policies.html

The email function is for sending emails to your users, not for
spamming^H^H^H^H^H^H^H^H^H"marketing".
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Email Marketing on GAE

2009-05-15 Thread Neves

Since GAE cost is $0.0001 per recipients emailed, it is a low price.
Can I build an Email Marketing Tool?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Cron Trouble

2009-05-15 Thread 'Αλκης Ευλογημένος
I spent some time debugging this with Alex. We looked at the logs and indeed
there were no requests on the app to the cron url when he had the "every day
16:30" setting. So we changed to to "every minute", we saw it working, then
again to "every day XX:XX" and it worked. It seems that the first cron
setting that went in didn't work but after changing it, it did. The weird
part is that the original "every day 16:30" cron setting had an entry in the
admin console but was "Hasn't run yet" state for 2 days. The app id is
giefmats if you want to investigate.

On Fri, May 15, 2009 at 7:52 PM, Jason (Google)  wrote:

> Hi Alex. Can you share your app ID so I can take a closer look?
>
> Thanks,
> - Jason
>
>
> On Tue, May 12, 2009 at 3:12 PM, d43m0n  wrote:
>
>>
>> The short story:
>>  It doesn't work!
>>
>> The long story:
>>
>> From dashboard :
>> /cron/report - daily mail report - every day 16:30 (UTC) - Hasn't run
>> yet
>>
>> The cron job was created and uploaded 3 days ago. Last update (though
>> I didn't really change anything about the cron job, just shows up on
>> admin logs) was 1 day ago.
>>
>> app.yaml
>> ...
>> - url: /cron/report
>>  script: cron_report.py
>>  login: admin
>> ...
>>
>> cron.yaml
>> cron:
>> - description: daily mail report
>>  url: /cron/report
>>  schedule: every day 16:30
>>
>> The webapp's authentication is configured to only work with users from
>> a certain Google Apps domain. The cron script (cron_report.py) works
>> perfectly, and has been tested on live version by simply accessing the
>> url, but as the dashboard says, it hasn't run yet.
>>
>> Can anyone help ?
>>
>> Thanks
>> Alex
>>
>>
>>
>
> >
>


-- 

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: Why my apps can't open?

2009-05-15 Thread Jason (Google)
They both open for me -- has this issue been resolved on your end?

If the issue is related to your App Engine code, you should see an error in
your GAE logs. Otherwise, can you indicate what you are seeing? A specific
error message or stack trace would be helpful here.

- Jason

On Thu, May 14, 2009 at 11:05 PM, GUI  wrote:

>
> My two apps, cannot open since yesterday. They are
> http://gui-cn.appspot.com
> and http://www.makenotes.net. Why? I found that some other apps can
> open. I am in Mainland China.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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 can I apply the java_runtime of GAE now ?

2009-05-15 Thread Jason (Google)
You should receive an activation email shortly.

- Jason

On Fri, May 15, 2009 at 8:36 AM, songchao.b...@gmail.com <
songchao.b...@gmail.com> wrote:

>
> I' m late, but I still want a chance...
> Who can tell me what to do ?
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: use of Django's "forms.Form" on GAE

2009-05-15 Thread Jason (Google)
Hi Panos. Ping me if you ever get this article published -- we'd love to
consider hosting it at http://code.google.com/appengine/articles.

- Jason

On Fri, May 15, 2009 at 11:24 AM, Panos  wrote:

>
> Hi Neal,
>
> You probably need to write your own widget (subclassed from the button
> widget) that when rendered will add the hidden field. Having worked
> for about a year now with GAE and django one of the lessons I learned
> is that if you want to do something out of the ordinary, custom
> properties/widgets/fields is what you need to do. I plan to write an
> article on how to do this one of these days, when I find some time.
>
> --Panos
>
> On May 14, 4:03 am, Waldemar Kornewald  wrote:
> > Hi Neal,
> >
> > On May 13, 8:36 pm, Neal  wrote:
> >
> > > I seemed to solved that problem by changing one import:
> >
> > > from django import newforms as forms
> >
> > > Now I'm trying to get a field from the form:
> >
> > > TaskLog1.taskCode = form.cleaned_data['taskCode'];
> >
> > > which is giving this error: #ProvisionForm' object has no attribute
> > > 'cleaned_data'
> >
> > You're using Django 0.96 which is very old. AFAIK, it was called
> > clean_data at that time. Anyway, if you want to use Django you should
> > really take a look at app-engine-patch. Apart from being very old, the
> > Django version packaged with App Engine doesn't work too well.
> > Download app-engine-patch here:
> http://code.google.com/p/app-engine-patch/
> >
> > Bye,
> > Waldemar Kornewald
> >
>

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



[google-appengine] Re: Activating GAE (Java) account issues

2009-05-15 Thread Jason (Google)
You should receive an email shortly.

- Jason

On Thu, May 14, 2009 at 1:47 PM, David Levy
wrote:

>
>
> Jason,
> I am waiting for the email response as well.  Has the quota limit been
> surpassed?
>
> thanks
> 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: Customizing "sender" name when sending out emails

2009-05-15 Thread Panos

Hi Nick,

although Google's concern is understandable I hope you realize that
this is a major limitation and the proposed solution pretty
draconean.

There seems to be an open issue regarding this issue here:
http://code.google.com/p/googleappengine/issues/detail?id=1107 If you
want to influence this addresses please give your feedback to Google
by starring the issue.

--Panos

On May 14, 4:24 am, "Nick Johnson (Google)" 
wrote:
> Hi Oliver,
>
> We currently have no plans to allow changing the sender address of
> emails to anything other than the signed in user or one of the app
> administrators. The reason for this is to help prevent abuse of the
> email functionality (for example, to send spam).
>
> -Nick Johnson
>
> On Wed, May 13, 2009 at 10:38 AM, oliverox  wrote:
>
> > I am currently building a picture sharing system on appengine. I would
> > like any user (not signed in with google) to be able to share pictures
> > with their friends by sending a customized email to them. I want the
> > sender name to display something more user-friendly such as the
> > senders name even if the "from" email address is ad...@mydomain.com.
> > Can I expect google to allow this feature? if not, may i know the
> > reasons behind not allowing 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] DownloadError: ApplicationError: 2 nonnumeric port: ''

2009-05-15 Thread Jose Vidal

I am trying to read a spreadsheet from app engine using text_db and
authsub.

I read http://code.google.com/appengine/articles/gdata.html and got it
to work. Then I read 
http://code.google.com/p/gdata-python-client/wiki/AuthSubWithTextDB
and I tried to merge the two in the file below (step4.py) but when I
run it locally I get:

Traceback (most recent call last):
  File "/home/jmvidal/share/progs/googleapps/google_appengine/google/
appengine/ext/webapp/__init__.py", line 498, in __call__
handler.get(*groups)
  File "/home/jmvidal/share/progs/googleapps/google_appengine/
glassboard/step4.py", line 56, in get
session_token = client._GetDocsClient().UpgradeToSessionToken
(auth_token) #If I don't pass this argument I get a NonAuthSubToken
  File "/home/jmvidal/share/progs/googleapps/google_appengine/
glassboard/gdata/service.py", line 866, in UpgradeToSessionToken
self.SetAuthSubToken(self.upgrade_to_session_token(token))
  File "/home/jmvidal/share/progs/googleapps/google_appengine/
glassboard/gdata/service.py", line 885, in upgrade_to_session_token
headers={'Content-Type':'application/x-www-form-urlencoded'})
  File "/home/jmvidal/share/progs/googleapps/google_appengine/
glassboard/gdata/auth.py", line 678, in perform_request
return http_client.request(operation, url, data=data,
headers=headers)
  File "/home/jmvidal/share/progs/googleapps/google_appengine/
glassboard/atom/http.py", line 163, in request
return connection.getresponse()
  File "/home/jmvidal/share/progs/googleapps/google_appengine/google/
appengine/dist/httplib.py", line 200, in getresponse
self._allow_truncated, self._follow_redirects)
  File "/home/jmvidal/share/progs/googleapps/google_appengine/google/
appengine/api/urlfetch.py", line 267, in fetch
raise DownloadError(str(e))
DownloadError: ApplicationError: 2 nonnumeric port: ''

Can anyone shed some light on this?


# step4.py
#
# Trying to read spreadsheets from app engine using text_db and
authsub.
#
# Merge of this code
# http://code.google.com/p/gdata-python-client/wiki/AuthSubWithTextDB
# with this one
# http://code.google.com/appengine/articles/gdata.html (step 3)

import wsgiref.handlers
import cgi
from google.appengine.ext import webapp
from google.appengine.api import users
import atom.url
import gdata.service
import gdata.alt.appengine
import gdata.spreadsheet.text_db
import settings


class Fetcher(webapp.RequestHandler):

  def get(self):
# Write our pages title
self.response.out.write("""
Google Data Feed Fetcher: read Google Data API Atom feeds""")
self.response.out.write('')
next_url = atom.url.Url('http', settings.HOST_NAME, path='/step4')
# Allow the user to sign in or sign out
if users.get_current_user():
  self.response.out.write('Sign Out' % (
  users.create_logout_url(str(next_url
else:
  self.response.out.write('Sign In' % (
  users.create_login_url(str(next_url

# Initialize a client to talk to Google Data API services.
#client = gdata.service.GDataService()
#auth_url =  client.GenerateAuthSubURL(
#  next_url,
#  ('http://docs.google.com/feeds/',), secure=False, session=True)

client = gdata.spreadsheet.text_db.DatabaseClient()
auth_url = client._GetDocsClient().GenerateAuthSubURL(
  next_url,
  ('http://spreadsheets.google.com/feeds/','http://docs.google.com/
feeds/documents/'), secure=False, session=True)

gdata.alt.appengine.run_on_appengine(client)

feed_url = self.request.get('feed_url')

session_token = None
# Find the AuthSub token and upgrade it to a session token.
auth_token = gdata.auth.extract_auth_sub_token_from_url
(self.request.uri)
if auth_token:
  # Upgrade the single-use AuthSub token to a multi-use session
token.
  client._GetDocsClient().SetAuthSubToken(auth_token)
  session_token = client._GetDocsClient().UpgradeToSessionToken
(auth_token) #If I don't pass this argument I get a NonAuthSubToken
  client._GetSpreadsheetsClient().SetAuthSubToken
(client._GetDocsClient().GetAuthSubToken())
#  session_token = client.upgrade_to_session_token(auth_token)
if session_token and users.get_current_user():
  # If there is a current user, store the token in the datastore
and
  # associate it with the current user. Since we told the client
to
  # run_on_appengine, the add_token call will automatically store
the
  # session token if there is a current_user.
  client.token_store.add_token(session_token)
elif session_token:
  # Since there is no current user, we will put the session token
  # in a property of the client. We will not store the token in
the
  # datastore, since we wouldn't know which user it belongs to.
  # Since a new client object is created with each get call, we
don't
  # need to worry about the anonymous token being used by other
users.
  client.current_token = session_token

self.response.out.write('')
self

[google-appengine] Re: repoze.bfg web framework runs on GAE

2009-05-15 Thread Jason (Google)
Thanks for contacting us, Myroslav. I'll be in touch when the next community
update post is closer.

- Jason

On Thu, May 14, 2009 at 3:54 PM, Myroslav Opyr wrote:

> Hi,
>
> I'd add up that we've Zope3 framework running at GAE with persistency and
> DatastoreStorage for ZODB. We've even managed to run sample Grok apps on
> GAE.
>
> More about an effort at
> http://talk.quintagroup.com/blogs/myroslav/zope-at-gae and
> http://friendfeed.com/zope/d36bca06/zope-at-google-appengine.
>
> m.
>
> On Wed, May 13, 2009 at 03:02, Jason (Google)  wrote:
>
>> Thanks for the information, Carlos. We'll consider this for our next
>> update, which is several weeks out.
>>
>> - Jason
>>
>>
>> On Tue, May 12, 2009 at 8:37 AM, cguardia 
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> just read the blog entry about support for web2py and wanted to let
>>> you know that repoze.bfg is among the Python web frameworks that work
>>> well with GAE.
>>>
>>> http://bfg.repoze.org/
>>>
>>> BFG is a "pay only for what you eat" Python web framework. You can get
>>> started easily and learn new concepts as you go, and only if you need
>>> them. It's simple, well tested, well documented, and fast.
>>>
>>> Thanks,
>>>
>>> Carlos de la Guardia
>>>
>>>
>>>
>>
>>
>>
>
>
> --
>
> .
> Myroslav Opyr   ▪   CTO   ▪Quintagroup   ▪   http://quintagroup.com
>
> ˙
>
>
> >
>

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



[google-appengine] Re: use of Django's "forms.Form" on GAE

2009-05-15 Thread Panos

Hi Neal,

You probably need to write your own widget (subclassed from the button
widget) that when rendered will add the hidden field. Having worked
for about a year now with GAE and django one of the lessons I learned
is that if you want to do something out of the ordinary, custom
properties/widgets/fields is what you need to do. I plan to write an
article on how to do this one of these days, when I find some time.

--Panos

On May 14, 4:03 am, Waldemar Kornewald  wrote:
> Hi Neal,
>
> On May 13, 8:36 pm, Neal  wrote:
>
> > I seemed to solved that problem by changing one import:
>
> > from django import newforms as forms
>
> > Now I'm trying to get a field from the form:
>
> > TaskLog1.taskCode = form.cleaned_data['taskCode'];
>
> > which is giving this error: #ProvisionForm' object has no attribute
> > 'cleaned_data'
>
> You're using Django 0.96 which is very old. AFAIK, it was called
> clean_data at that time. Anyway, if you want to use Django you should
> really take a look at app-engine-patch. Apart from being very old, the
> Django version packaged with App Engine doesn't work too well.
> Download app-engine-patch here:http://code.google.com/p/app-engine-patch/
>
> Bye,
> Waldemar Kornewald
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Invalid runtime specified

2009-05-15 Thread Mohamed Mansour

Hi,  I suggest you change the docs until it is public and state within
the tutorial that we cannot deploy the application (now). People may
get worried :)

-- Mohamed Mansour

On May 13, 1:08 pm, "Nick Johnson (Google)" 
wrote:
> Hi samurai,
>
> You can continue to develop your app on the local development server
> while you wait for your invitation to the Java preview.
>
> In any case, you should get your invite shortly.
>
> -Nick Johnson
>
> On Tue, May 12, 2009 at 5:35 PM, sAmUrAi  wrote:
>
> > It'd be nice to know that before downloading the actual SDK
>
> > On May 1, 5:36 pm, "Nick Johnson (Google)" 
> > wrote:
> >> Hi Luca,
>
> >> This is the error you get if you have not yet been added to the Java
> >>runtimepreview. You won't be able to deploy a Javaruntimeapp until
> >> you are.
>
> >> -Nick Johnson

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



[google-appengine] Problem Accessing Google App from SmartPhone Emulator

2009-05-15 Thread Developer

I've created a simple application that returns some characters. The
application is hosted on

http://koolphoneapps.appspot.com, and accessible to public.

When I try to access the application from my SmartPhone simulator, I
get no response. If I try to access locally (e.g. 
http://localhost:8080/koolphoneapps,
when testing it on local google application engine) I've no problems.
It works through the browser all the time.

In my SmartPhone application I use javax.microedition.io.Connector
class to open a connection to the application and read the input
stream. When the application (google app) is running locally, I get
all the characters. However when I upload and test the same code
through http://koolphoneapps.appspot.com, I get no response.

What could be the problem? I ruled out internet connectivity issue
since I can access other urls, like www.google.com using the same
mechanism. i.e. create connection using
javax.microedition.io.Connector and read input stream.

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] Error Deploying

2009-05-15 Thread alessandro.piola

Hi, I'm a new Italian user.
The Deploying don't work.
This is my error
Unable to upload app: Error posting to URL:
http://appengine.google.com/api/appversion/create?app_id=alepiotry&version=0&;
400 Bad Request
Invalid runtime specified.

See the deployment console for more details
Unable to upload app: Error posting to URL:
http://appengine.google.com/api/appversion/create?app_id=alepiotry&version=0&;
400 Bad Request
Invalid runtime specified.

This is my configuration:
Eclipse 3.4.1
PlugIn Google for eclipse.
WinXp.

TKS.
Alessandro

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] since single-property indices are built in when uploading

2009-05-15 Thread philong

./appcfg.py update micolog/
Loaded authentication cookies from /home/user/.appcfg_cookies
Scanning files on local disk.
Initiating update.
Cloning 20 static files.
Cloning 91 application files.
Uploading 1 files.
Closing update.
Uploading index definitions.
Error 400: --- begin server output ---
Creating a composite index failed: This index:
entity_type: "Archive"
ancestor: false
Property {
  name: "date"
  direction: 2
}

is not necessary, since single-property indices are built in. Please
remove it from your index file and upgrade to the latest version of
the SDK, if you haven't already.
--- end server output ---

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



[google-appengine] Why imports are not always cached in my application?

2009-05-15 Thread LinNan

According to the document, I suppose that imports are always cached. I
expierenced notable delay in accessing my application these days and
so I use the following code to verify if imports are cached:

access_count = 0

def all_views():
global access_count
access_count += 1
print >>sys.stderr, "Access count: %d" % access_count

When accessing, the access count does not always increase as I
supposed but returns back to  1 after maybe several times. I can't
tell the rule of it but I can see that the cost is much higher for the
first time when a page is visited.

I wonder If it is a normal situation.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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 apply the java_runtime of GAE now ?

2009-05-15 Thread songchao.b...@gmail.com

I' m late, but I still want a chance...
Who can tell me what to do ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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] Why my apps can't open?

2009-05-15 Thread GUI

My two apps, cannot open since yesterday. They are http://gui-cn.appspot.com
and http://www.makenotes.net. Why? I found that some other apps can
open. I am in Mainland China.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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 404 when there are spaces in the URL

2009-05-15 Thread Mick

Hi,

I have a static directory that contains folders with spaces in their
names. Then I try to get to a resource in one of those folders, GAE
gives me a 404. Is there anything I can do in app.yaml or the code to
make this work? I would really love to keep spaces in folder names.

Example

Folder: /static/images/My Folder/image-001.jpg

When I go to http://localhost:8080/static/images/My%20Folder/image-001.jpg,
the image doesn't show up.

INFO 2009-05-14 16:07:14,108 dev_appserver.py:2935] "GET /static/
images/My%20Folder/image-001.jpg HTTP/1.1" 404

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] datastore timeouts on get_or_insert

2009-05-15 Thread Kenneth

Our application was running with 1 user this morning and received a
datastore timeout.

The code has no loops in it, it gets 1 row each from 4 entities, 2 of
them by key using get_or_insert and 2 of them using a reference
property.  They are all root entities and there is no contention as
you can see from the log below.  The tables all have <1000 rows in
them.  The timeout happened on the first datastore call using
get_or_insert.  Even if I retried this call it is bananas waiting 3
seconds for a single row to come back.

Am I better off doing a get and if that fails then trying the
get_or_insert?

It looks like other applications running on the server are affecting
my application.  If I was being billed I believe this would cost me
money.

Here's the log, no transactions have been removed, the two
transactions at 2:11AM failed with a huge cpu spike.

  05-14 02:24AM 55.926 /api/ 200 1040ms 1116cpu_ms 218api_cpu_ms
0kb
  05-14 02:22AM 08.620 /api/ 200 198ms 237cpu_ms 160api_cpu_ms
0kb
  05-14 02:22AM 07.806 /api/ 200 258ms 279cpu_ms 218api_cpu_ms
0kb
  05-14 02:22AM 05.176 /api/ 200 205ms 218cpu_ms 160api_cpu_ms
0kb
  05-14 02:22AM 00.864 /api/ 200 774ms 979cpu_ms 160api_cpu_ms
0kb

  05-14 02:11AM 22.391 /client/ 500 3189ms 6357cpu_ms
6093api_cpu_ms 10kb
  05-14 02:11AM 18.195 /api/ 500 3444ms 6450cpu_ms 6212api_cpu_ms
8kb

  05-14 02:10AM 37.957 /api/ 200 175ms 223cpu_ms 160api_cpu_ms
0kb
  05-14 02:10AM 27.585 /api/ 200 906ms 1005cpu_ms 160api_cpu_ms
0kb

Thank you very much for any assistance.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Deleting index stuck

2009-05-15 Thread rraj
Hi,

I have an app ("matrimonyplanner") which has 3 indexes stuck in "Error"
state.
Tried the vacuum_indexes procedure, so as to upload them again, but it does
not go into "Deleting" state and remains in "Error".

Any tips on how to proceed ?

Regards,
Rajkumar


On Tue, Nov 11, 2008 at 10:16 PM, Marzia Niccolai  wrote:

> Hi Derrick,
>
> This index has deleted.  Sometimes it can take a few hours to upload/delete
> index definitions.
>
> -Marzia
>
>
> On Mon, Nov 10, 2008 at 4:52 PM, Derrick  wrote:
>
>>
>> I am having the same issue.  My application is "vhac".
>>
>> 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] 'Page Requested is invalid' after sign-on from Kindle

2009-05-15 Thread Ataraxian

Hi,

I am trying to implement the guestbook tutorial application for Google
App Engine for Java.  It seems to deploy fine and work fine from
Chrome, Firefox, and IE but fails when I try to sign in from a
Kindle.  From the Kindle, I get 'The page you requested is invalid.'
after I sign on.  I've logged the URL that I'm sending to
userService.createLoginURL and it seems to be the same whether from
Chrome or from the Kindle.

Does anyone have any clues on what might be happening here?  Thanks in
advance for any help.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Activating GAE (Java) account issues

2009-05-15 Thread David Levy


Jason,
I am waiting for the email response as well.  Has the quota limit been
surpassed?

thanks
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: screwed up setting up app runtime....

2009-05-15 Thread Jason (Google)
Wooble is absolutely right -- once your account is activated, you can deploy
both Python and Java applications to a given ID. You can even deploy a
Python application to one version and a Java application to a second version
of the same application!

For more information on the error you're likely seeing and a sign-up form
for the Java runtime, click the following link. You should get an email when
your activation is ready.

http://code.google.com/appengine/kb/java.html#runtime

- Jason

On Wed, May 13, 2009 at 12:57 PM, Wooble  wrote:

>
>
>
> On May 13, 12:07 am, webclimber  wrote:
> > So I just got the account activated and created a couple of entries
> > for applications but it seems that I (unknowingly) selected python as
> > the runtime but I just want the java version ...
> >
> > Is there anyway to fix this ? Or did I just loose those two names
> > forever ? Is it possible to change the runtime ? (I know delete is not
> > allowed).
>
> You can't set the runtime at the application level; each version will
> have whatever runtime was set the last time you uploaded.
>
> If you're seeing an Invalid Runtime message, it's because you're not
> approved for the Java version yet (it's still in limited preview).
> >
>

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



[google-appengine] Re: Google app engine issues

2009-05-15 Thread Paul Kinlan

Hi David,

Every request was either authenticated (both oauth and normal basic  
auth) or outside the rate limiting criteria, I.e posts.

Regardless the situation seems to not be occuring now, it is just  
trying to get to the bottom of the problem as there were proper "app  
engine" exceptions but that could be a result of the status code  
returned.

Paul



On 15 May 2009, at 18:42, David Wilson  wrote:

>
> Hey Paul.
>
> Are you authenticating, or querying the API anonymously? Anonymous
> queries regularly get "rate limit exceeed" errors from AppEngine,
> since Twitter limit IP addresses to 100 queries per hour, and
> AppEngine urlfetch service only makes requests from a small set of
> addresses.
>
> The solution is to create Twitter account(s) for your application, or
> if it is acting on behalf of specific Twitter users, add OAuth
> consumer support to your code and have the users authorize your
> application, so the queries are charged to their accounts instead.
>
> If you are getting ApplicationError exceptions, well that is something
> altogether different.
>
>
> David
>
> 2009/5/14 Paul Kinlan :
>> Hi Guys,
>>
>> My Site www.twollo.com is having some issues connection to  
>> Twitter.  It is
>> hosted on the Google App Engine.  I am just emailing to ask is  
>> anyone else
>> on the App engine experiencing problems connecting to Twitter?
>>
>> I have tested some of my other sites that use urllib on the Google  
>> App
>> engine and all appear to be able to make successful http  
>> connections to
>> other sites: such as yahoo etc.
>>
>> I have also tested some other Twitter Applications that I know that  
>> are
>> hosted on the App Engine.  I am trying to isolate the problem, is  
>> it the App
>> Engine end, is it Twitter (have they blocked Google) Any ideas  
>> are
>> welcome?
>>
>> Hopefully it will right itself. :)
>>
>> Paul
>>>
>>
>
>
>
> -- 
> It is better to be wrong than to be vague.
>  — Freeman Dyson
>
> >

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Application update errored

2009-05-15 Thread Jason (Google)
Since indexes for single properties are created automatically, they don't
need to be defined in index.yaml. Try removing this index to see if the
error goes away.

- Jason

2009/5/12 大海 

>
> I have this same problem when I make a web proxy server.
>
>
> C:\Program Files\Google\google_appengine>appcfg.py update highlinkhu
> Scanning files on local disk.
> Initiating update.
> Could not guess mimetype for static/favicon.ico. Using application/
> octet-stream.
> Cloning 8 static files.
> Cloning 5 application files.
> Deploying new version.
> Checking if new version is ready to serve.
> Will check again in 1 seconds.
> Checking if new version is ready to serve.
> Will check again in 2 seconds.
> Checking if new version is ready to serve.
> Closing update: new version is ready to start serving.
> Uploading index definitions.Error 400: --- begin server output ---
> Creating a composite index failed:
> This index:
> entity_type: "EntryPoint"
> ancestor: false
> Property {
> name: "last_updated"
> direction: 2}
> is not necessary, since single-property indices are built in. Please
> remove it from your index file and upgrade to the latest version of
> the SDK, if you haven't already.
>
> --- end server output ---
>
> Your app was updated, but there was an error updating your indexes.
> Please retry later with appcfg.py update_indexes.
>
> notes:
> 1、SDK version  1.2.2,Python version 2.5.4
> 2、this is the app.yaml:
>
> application: highlinkhuversion: secureableruntime: pythonapi_version:
> 1
> handlers:
> - url: /robots\.txt static_files: static/robots.txt upload: static/
> robots\.txt
> - url: /favicon\.ico static_files: static/favicon.ico upload: static/
> favicon\.ico secure: optional
> - url: /static/base(\.[0-9])\.css static_files: static/base.css
> upload: static/base\.css secure: optional
> - url: /static static_dir: static secure: optional
> - url: /admin login: admin script: mirror.py secure: optional
> - url: /cleanup login: admin script: mirror.py secure: optional
> - url: /kaboom login: admin script: mirror.py secure: optional
> - url: /.* script: mirror.py secure: optional
>
> 3、this is the index.yanl:
>
> indexes:
> # AUTOGENERATED
> # This index.yaml is automatically updated whenever the dev_appserver
> # detects that a new type of query is run. If you want to manage the
> # index.yaml file manually, remove the above marker line (the line#
> saying "# AUTOGENERATED"). If you want to manage some indexes#
> manually, move them above the marker line. The index.yaml file is
> # automatically uploaded to the admin console when you next deploy
> # your application using appcfg.py.
> # Used 19 times in query history.
> - kind: EntryPoint
> properties:
> - name: last_updated
> direction: desc
>
> What  will i do next ?
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Cron Trouble

2009-05-15 Thread Jason (Google)
Hi Alex. Can you share your app ID so I can take a closer look?

Thanks,
- Jason

On Tue, May 12, 2009 at 3:12 PM, d43m0n  wrote:

>
> The short story:
>  It doesn't work!
>
> The long story:
>
> From dashboard :
> /cron/report - daily mail report - every day 16:30 (UTC) - Hasn't run
> yet
>
> The cron job was created and uploaded 3 days ago. Last update (though
> I didn't really change anything about the cron job, just shows up on
> admin logs) was 1 day ago.
>
> app.yaml
> ...
> - url: /cron/report
>  script: cron_report.py
>  login: admin
> ...
>
> cron.yaml
> cron:
> - description: daily mail report
>  url: /cron/report
>  schedule: every day 16:30
>
> The webapp's authentication is configured to only work with users from
> a certain Google Apps domain. The cron script (cron_report.py) works
> perfectly, and has been tested on live version by simply accessing the
> url, but as the dashboard says, it hasn't run yet.
>
> Can anyone help ?
>
> Thanks
> Alex
>
> >
>

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



[google-appengine] Re: Server error when signing up to appengine

2009-05-15 Thread Jason (Google)
Are you trying to sign in with an account on a Google Apps domain by any
chance? If so, you should try signing in to:

http://appengine.google.com/a/ (e.g. gnsdm.com)

- Jason

On Wed, May 13, 2009 at 4:41 AM, GNS  wrote:

>
> When I try to sign up to appengine with my google account I get this
> message:
>
> Server Error
>
> A server error has occurred.
>
> Return to Applications screen »
>
> It's like this since yesterday.
>
> What should I do?
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Details on Google's Partner Program?

2009-05-15 Thread Jason (Google)
This isn't for App Engine specifically, but there is a general enterprise
partner program:

http://www.google.com/enterprise/gep/

- Jason

On Wed, May 13, 2009 at 9:36 AM, Beepboop  wrote:

>
> Hi guys,
>
> Does anyone have details on becoming a preferred partner to Google?
> Most companies have a published partner program (along with the
> criteria they use to evaluate partners) but, I haven't found one for
> Google.  I'm specifically looking for the following:
> - What are the tiers of partners and their respective benefits (e.g.
> joint sales planning)
> - Are there any costs or investments I need to make to achieve a
> certain tier
> - Aside from the Application Gallery, what are other ways Google will
> monetize partner applications?
>
> I just saw the Appirio webinar and was inspired to work closer with
> Google.  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: Google app engine issues

2009-05-15 Thread David Wilson

Hey Paul.

Are you authenticating, or querying the API anonymously? Anonymous
queries regularly get "rate limit exceeed" errors from AppEngine,
since Twitter limit IP addresses to 100 queries per hour, and
AppEngine urlfetch service only makes requests from a small set of
addresses.

The solution is to create Twitter account(s) for your application, or
if it is acting on behalf of specific Twitter users, add OAuth
consumer support to your code and have the users authorize your
application, so the queries are charged to their accounts instead.

If you are getting ApplicationError exceptions, well that is something
altogether different.


David

2009/5/14 Paul Kinlan :
> Hi Guys,
>
> My Site www.twollo.com is having some issues connection to Twitter.  It is
> hosted on the Google App Engine.  I am just emailing to ask is anyone else
> on the App engine experiencing problems connecting to Twitter?
>
> I have tested some of my other sites that use urllib on the Google App
> engine and all appear to be able to make successful http connections to
> other sites: such as yahoo etc.
>
> I have also tested some other Twitter Applications that I know that are
> hosted on the App Engine.  I am trying to isolate the problem, is it the App
> Engine end, is it Twitter (have they blocked Google) Any ideas are
> welcome?
>
> Hopefully it will right itself. :)
>
> Paul
> >
>



-- 
It is better to be wrong than to be vague.
  — Freeman Dyson

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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's the difference among key, id, and key name?

2009-05-15 Thread Jason (Google)
Yes. See the Model functions that are available:

http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get_by_key_name
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html

- Jason

On Wed, May 13, 2009 at 4:47 AM, Big Stu  wrote:

>
> > When you create entities, you have the option of specifying a unique key
> > name that you can use to reference these entities directly (e.g.
> retrieving
> > entities without queries, thereby improving the performance of your
> > application).
>
> I'm not sure what you mean by this.  Are you saying if I know enough
> to reconstruct the full key name of an instance I want to retrieve I
> can instantiate the model with that key name and then start using it
> directly?  In other words, I know that when I create these instances I
> use "some_string" + "owner model name" + "something else" as the key
> name, so if I'm in some other situation where I know all those values
> I can easily rebuild the key name and start using the model without
> having to run a query on the datastore?
> >
>

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



[google-appengine] Re: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-15 Thread Neal

Here's more info.  I'm running on my machine using the SDK.

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:\Program Files\Google\google_appengine\demos
\DevGAEPasswordGen\passwordgenerator.py", line 133, in get
self.renderPage('templates/list.html', TaskLogs)
  File "c:\Program Files\Google\google_appengine\demos
\DevGAEPasswordGen\passwordgenerator.py", line 124, in renderPage
self.response.out.write(template.render(path, values))
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\template.py", line 81, in render
return t.render(Context(template_dict))
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\template.py", line 121, in wrap_render
return orig_render(context)
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\__init__.py", line 168, in render
return self.nodelist.render(context)
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\__init__.py", line 705, in render
bits.append(self.render_node(node, context))
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\__init__.py", line 718, in render_node
return(node.render(context))
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\loader_tags.py", line 23, in render
result = self.nodelist.render(context)
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\__init__.py", line 705, in render
bits.append(self.render_node(node, context))
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\__init__.py", line 718, in render_node
return(node.render(context))
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\defaulttags.py", line 87, in render
if context.has_key('forloop'):
  File "C:\Program Files\Google\google_appengine\lib\django\django
\template\context.py", line 48, in has_key
if d.has_key(key):
TypeError: has_key() takes exactly 1 argument (2 given)


So apparently the "vanilla" template actually uses Django code...

I found the code at line 48:

def has_key(self, key):
for d in self.dicts:
if d.has_key(key): # <-- line 48 here
return True
return False


But I'm still at a loss how to correct...

Thanks,
Neal





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



[google-appengine] TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-15 Thread nwalt...@sprynet.com

I'm trying to do a simple template where I pass my data from BigTable
to a template.
I'm using what I hope is a plain-Vanilla template as described in the
book "Developing with Google App Engine".  I was able to get a very
simple template to work just passing one variable and having it show
on the screen.  Now I am trying to use a template that shows all rows
of a table.  I only have one row stored in my database at this time.

The error is: TypeError: has_key() takes exactly 1 argument (2 given)

This is my code that is trying to show the template:

class Report(webapp.RequestHandler):

  def renderPage(self, fileName, values):
path = os.path.join(os.path.dirname(__file__),fileName)
self.response.out.write(template.render(path, values))

  def get(self):
 query = db.GqlQuery("Select * from TaskLog")
 TaskLogs= query.get();
 self.renderPage('templates/list.html', TaskLogs)


My data/model is defined as follows:
class TaskLog(db.Model):
  customerDomain = db.StringProperty()
  workerEmail= db.StringProperty()   # db.UserProperty()
  taskCode   = db.StringProperty()
  eventStartedDateTime   = db.DateTimeProperty(auto_now=False)
  eventCompletedDateTime = db.DateTimeProperty(auto_now=False)
  resultFlag = db.IntegerProperty()
  issues = db.StringProperty(required=False)

My Imports:

import os
import cgi
import datetime
import wsgiref.handlers
from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app


I found these related items, but I have no idea what the solution or
get-around is.

Issue/Bug:
http://code.google.com/p/googleappengine/issues/detail?id=898&q=has_key&colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component

http://groups.google.com/group/google-appengine/browse_thread/thread/8c1721fc941d4cbd/66ef6147b112af66?lnk=gst&q=cheetah#66ef6147b112af66

http://dotnetmafia.com/blogs/jamesashley/archive/2009/02/08/837.aspx

Any ideas appreciated.

Thanks,
Neal Walters



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



[google-appengine] Re: Server Error when update application with appcfg

2009-05-15 Thread Squall

After 24 hours and the quota reset. Everything is fine now. I guess
the bug is somewhat related to the quota. But I can't reproduce it.

On May 13, 8:48 am, "Jason (Google)"  wrote:
> If you're still seeing these errors when you attempt to change or update you
> application's version, can you reply with your application ID so I can take
> a closer look?
>
> - Jason
>
> On Sat, May 9, 2009 at 11:21 PM, Squall  wrote:
>
> > Suddenly my application versions stop working. I could not set the
> > default version at [Versions] page.
>
> > Screenshoot:
> >http://img.photobucket.com/albums/v124/squallz/MWSnap2009-05-1014_15_...
>
> > I have deleted most of the versions but it still didn't work as of
> > now.
> > I cant change the default version (Server Error: A server error has
> > occurred.)
> > I cant delete the version 8 either. (Error: cannot delete default
> > version)
>
> > Below is what I get when try to update version 8
>
> > appcfg --noisy update mydir/
>
> > 2009-05-10 14:11:49,203 DEBUG appengine_rpc.py:349 Got http error,
> > this is try #1
> > 2009-05-10 14:11:49,203 DEBUG appengine_rpc.py:343 Sending HTTP
> > request:
> > POST /api/appversion/create?version=8&app_id=smsjinx HTTP/1.1
> > Host: appengine.google.com
> > X-appcfg-api-version: 1
> > Content-type: application/octet-stream
> > User-agent: appcfg_py/1.2.2 win32/5.1.2600.2 Python/2.5.2.final.0
>
> > api_version: '1'
> > application: sm***x
> > handlers:
> > - static_files: static/\1
> >  upload: static/(.*)
> >  url: /static/(.*)
> > - script:  sm***x.py
> >  url: /.*
> > runtime: python
> > version: '8'
>
> > 2009-05-10 14:11:49,921 DEBUG appengine_rpc.py:349 Got http error,
> > this is try #2
> > 2009-05-10 14:11:49,921 DEBUG appengine_rpc.py:343 Sending HTTP
> > request:
> > POST /api/appversion/create?version=8&app_id=smsjinx HTTP/1.1
> > Host: appengine.google.com
> > X-appcfg-api-version: 1
> > Content-type: application/octet-stream
> > User-agent: appcfg_py/1.2.2 win32/5.1.2600.2 Python/2.5.2.final.0
>
> > api_version: '1'
> > application: sm***x
> > handlers:
> > - static_files: static/\1
> >  upload: static/(.*)
> >  url: /static/(.*)
> > - script: sm***x.py
> >  url: /.*
> > runtime: python
> > version: '8'
>
> > 2009-05-10 14:11:50,641 DEBUG appengine_rpc.py:349 Got http error,
> > this is try #3
> > 2009-05-10 14:11:50,641 DEBUG appengine_rpc.py:343 Sending HTTP
> > request:
> > POST /api/appversion/create?version=8&app_id=smsjinx HTTP/1.1
> > Host: appengine.google.com
> > X-appcfg-api-version: 1
> > Content-type: application/octet-stream
> > User-agent: appcfg_py/1.2.2 win32/5.1.2600.2 Python/2.5.2.final.0
>
> > api_version: '1'
> > application: sm***x
> > handlers:
> > - static_files: static/\1
> >  upload: static/(.*)
> >  url: /static/(.*)
> > - script:  sm***x.py
> >  url: /.*
> > runtime: python
> > version: '8'
>
> > 2009-05-10 14:11:51,359 DEBUG appengine_rpc.py:349 Got http error,
> > this is try #4
> > 2009-05-10 14:11:51,359 ERROR appcfg.py:1241 An unexpected error
> > occurred. Aborting.
> > Traceback (most recent call last):
> >  File "F:\Program Files\Google\google_appengine\google\appengine\tools
> > \appcfg.py", line 1219, in DoUpload
> >    missing_files = self.Begin()
> >  File "F:\Program Files\Google\google_appengine\google\appengine\tools
> > \appcfg.py", line 1014, in Begin
> >    version=self.version, payload=self.config.ToYAML())
> >  File "F:\Program Files\Google\google_appengine\google\appengine\tools
> > \appengine_rpc.py", line 344, in Send
> >    f = self.opener.open(req)
> >  File "F:\Python25\lib\urllib2.py", line 387, in open
> >    response = meth(req, response)
> >  File "F:\Python25\lib\urllib2.py", line 498, in http_response
> >    'http', request, response, code, msg, hdrs)
> >  File "F:\Python25\lib\urllib2.py", line 425, in error
> >    return self._call_chain(*args)
> >  File "F:\Python25\lib\urllib2.py", line 360, in _call_chain
> >    result = func(*args)
> >  File "F:\Python25\lib\urllib2.py", line 506, in http_error_default
> >    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> > HTTPError: HTTP Error 500: Internal Server Error
> > Error 500: --- begin server output ---
>
> > Server Error (500)
> > A server error has occurred.
> > --- end server output ---
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How to give connect python code and Spreadsheet data

2009-05-15 Thread S K
Hi
 i have gone through  the following link.. but its taking me long time
to understand, can i get any sample code,
 how to keep data inside spread sheet, and that spread sheet details(what
ever we given in spread sheet like user name and password), how can i use
for authentication in python code

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Determine IP or Country of request..?

2009-05-15 Thread pranny

Hi,

There are two cases in here
1. The Google Analytics way
2. The anonymous way

In the GA way, you will providing the iframe source code to registered
users. In the anonymous way, you will be providing the iframe source
to an anonymous person.

In the GA way, you can add a small javascript variable that is unique
to the registered user, script is provided to. This is a method to
track the person(s) who will be adding that iFrame to their site.
Since, they are already registered, you have their location and other
details.

In the anonymous way, you can do the following
- use the javascript to find out the hosting site. Say for ex: your
code is pasted on http://codecontrol.blogspot.com so you can get this
information. Later you can find out the geographical location of this
particular site using third party services available

Have a look at WebOb. http://pythonpaste.org/webob/reference.html#request-body
It is what the webapp is build. So it can be used directly.
--
Cheers,
Pranav Prakash

"This life is more than ordinary"

On May 14, 10:51 pm, "astrid.thuec...@googlemail.com"
 wrote:
> Hi,
>
> We offer HTML content generated with a appengine. People can embed
> these via iframes in their website and visitors of their website see
> them.
>
> My questions is, can I get information about:
>
> 1. the people embedding our iframes
> 2. the visitors watching websites where our iframes are embedded
>
> Perhaps we could get something like a referer for the website that
> embeds the iframe?
>
> Thanks, Astrid.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Authentication using spread sheet and python.

2009-05-15 Thread S K
Hi
 i have gone through  the following link.. but its taking me long time
to understand, can i get any sample code,
 how to keep data inside spread sheet, and that spread sheet details(what
ever we given in spread sheet like user name and password), how can i use
for authentication in python code

Thanks in advance..



On Wed, May 13, 2009 at 4:54 PM, Nick Johnson (Google) <
nick.john...@google.com> wrote:

>
> Hi S K,
>
> You can access the contents of a Google Docs spreadsheet using the
> Google Spreadsheets API. Documentation is available here:
> http://code.google.com/apis/spreadsheets/overview.html
>
> In addition, you'll need to incorporate a session management system
> like Beaker, or issue your own cookies, to keep track of a user once
> they're authenticated.
>
> -Nick Johnson
>
> On Wed, May 13, 2009 at 12:18 PM, S K  wrote:
> > Hi Nick,
> >
> > actually my requirement is like this..
> > i am creating school intranet.. in that different links are there like
> > Students, Staff, Admin   on click of any link  need to ask user name
> and
> > password if its valid then it should enter in side
> > For this i am want to use Google
> > Docs spreadsheet (with out using any database) from App Engine and Python
> > code, is there any way to do this and how to use Login api ..
> >
> > Thanks in advance..
> >
> >
> >
> > On Wed, May 13, 2009 at 4:10 PM, Nick Johnson (Google)
> >  wrote:
> >>
> >> Hi S K,
> >>
> >> You need to clarify what you're trying to do. Are you trying to access
> >> a Google Docs spreadsheet from an App Engine app, trying to access a
> >> password protected excel file, or something else entirely?
> >>
> >> -Nick Johnson
> >>
> >> On Wed, May 13, 2009 at 10:43 AM, S K  wrote:
> >> > Hi All,
> >> >   can any one tell how to authenticate user name and
> >> > password
> >> > using spreadsheet and python code... provide me some sample program
> >> >
> >> > Thanks in Advance
> >> >
> >> >
> >>
> >>
>
> >
>

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



[google-appengine] Re: Datastore usage ~ 80 times more than expected (Add your vote to a datastore usage accounting feature)

2009-05-15 Thread Paul Kinlan
To be fair it was a process I kicked off to come in line with billing, I
forgot about it, checked it and it was still running.

Paul

2009/5/15 Sri 

>
> fair enough mate.  I still have to applaud your patience.  hats off
> mate, if you can sit around for 2 months while your data is being
> deleted!
>
> On May 14, 10:55 pm, Paul Kinlan  wrote:
> > My main issue is that I can't account for the data, and I don't know how
> to
> > trust the value that I am getting billed for.
> >
> > Paul
> >
> > 2009/5/14 Sri 
> >
> >
> >
> > > Just to be fair, when I recently checked all the data had returned to
> > > 0% usage.  But that doesnt explain the 3 entities i had uploaded
> > > 12 hours ago
> >
> > > On May 14, 10:43 pm, Sri  wrote:
> > > > Howdy
> >
> > > > I agree with you paul.  I just deleted the contents of my
> > > > datastore (which took about 2 days - as if that amount of time is not
> > > > wierd in itself, let alone 2 months), and at the end it was showing
> > > > 130 meg (or 13% usage).  What the?
> >
> > > > Sorry but what was the originaly argument against a "clear-all"
> switch
> > > > on the data store again?
> >
> > > > cheers
> > > > Sri
> >
> > > > On May 14, 7:41 pm, Paul Kinlan  wrote:
> >
> > > > > Hi,
> >
> > > > > The whole thing about datastore size is ***really*** frustating.  I
> am
> > > using
> > > > > 30.94 GB for my app (twitterautofollow) and 1) I don't know where
> it is
> > > > > being consumed and 2) I don't trust the figures, I delete data and
> the
> > > size
> > > > > of the datastore never goes down, so effectively I feel like am
> paying
> > > and I
> > > > > don't know what it is that I am paying for and 3) I honestly don't
> know
> > > how
> > > > > I could be using that much storage.
> >
> > > > > A case in point, I had another App where I spent 2 months deleting
> data
> > > > > never to see the size decrease, I removed all the indexes from the
> > > system
> > > > > then two days later it was empty.
> >
> > > > > I just feel frustrated that I can't account for anything, and
> > > unfortunatly
> > > > > it is too late for me to design my app to have my own accounting in
> > > place.
> >
> > > > > Paul.
> >
> > > > > 2009/5/14 Andy Freeman 
> >
> > > > > > Argh!
> >
> > > > > > This means that one form (db.Key) is smaller than the other
> > > > > > (comparable string) for the datastore while the reverse is true
> for
> > > > > > memcache.
> >
> > > > > > I've created am issue (
> > > > > >http://code.google.com/p/googleappengine/issues/detail?id=1538
> > > > > > )requesting a __getstate__ and __setstate__ for db.Key that is
> > > smaller
> > > > > > than the string equivalent.  In addition to eliminating the
> > > > > > inconsistency betwen the datastore and memcache sizes, it will
> reduce
> > > > > > the size of every memcache'd db.Model instance whose .key() is
> > > > > > defined.
> >
> > > > > > On May 13, 11:41 am, "Jason (Google)" 
> wrote:
> > > > > > > Hi Andy. In this case, the list of Key objects will be smaller
> than
> > > the
> > > > > > list
> > > > > > > of key strings. Even though the picked db.Key object is larger,
> it
> > > is a
> > > > > > > binary-encoded protocol buffer form that gets stored, which is
> > > smaller
> > > > > > than
> > > > > > > the pickled string. That said, I doubt it would make a
> tremendous
> > > > > > difference
> > > > > > > unless you have a lot of these entities or these lists have a
> lot
> > > of
> > > > > > values.
> >
> > > > > > > - Jason
> >
> > > > > > > On Mon, May 11, 2009 at 10:38 PM, Andy Freeman <
> > > ana...@earthlink.net>
> > > > > > wrote:
> >
> > > > > > > > Since index space can be significant, can we get some
> additional
> > > > > > > > information?
> >
> > > > > > > > For example, does an indexed db.ListProperty(db.Key) with
> three
> > > > > > > > elements take significantly more or less space than an
> indexed
> > > > > > > > db.StringListProperty with three elements whose value is
> str() of
> > > the
> > > > > > > > same keys?  (The pickle of keys seems to be significantly
> larger
> > > than
> > > > > > > > the pickle of the equivalent strings.)
> >
> > > > > > > > On May 11, 5:04 pm, "Jason (Google)" 
> > > wrote:
> > > > > > > > > Hi Anthony. I'm very sorry for the late reply, and thank
> you
> > > for
> > > > > > bearing
> > > > > > > > > with me. I've discussed this with the datastore team and
> it's
> > > evident
> > > > > > > > that
> > > > > > > > > the CSV file's size is not a great indicator of how much
> > > storage your
> > > > > > > > > entities will consume. On top of the size of the raw data,
> each
> > > > > > entity
> > > > > > > > has
> > > > > > > > > associated metadata, as you've already mentioned, but I'd
> bet
> > > that
> > > > > > the
> > > > > > > > > indexes are consuming the greatest space. If you don't ever
> > > query on
> > > > > > one
> > > > > > > > or
> > > > > > > > > more of these 15 string properties, you may consider
> changing
> > > their
> > > > > >

[google-appengine] Re: Datastore usage ~ 80 times more than expected (Add your vote to a datastore usage accounting feature)

2009-05-15 Thread Sri

fair enough mate.  I still have to applaud your patience.  hats off
mate, if you can sit around for 2 months while your data is being
deleted!

On May 14, 10:55 pm, Paul Kinlan  wrote:
> My main issue is that I can't account for the data, and I don't know how to
> trust the value that I am getting billed for.
>
> Paul
>
> 2009/5/14 Sri 
>
>
>
> > Just to be fair, when I recently checked all the data had returned to
> > 0% usage.  But that doesnt explain the 3 entities i had uploaded
> > 12 hours ago
>
> > On May 14, 10:43 pm, Sri  wrote:
> > > Howdy
>
> > >     I agree with you paul.  I just deleted the contents of my
> > > datastore (which took about 2 days - as if that amount of time is not
> > > wierd in itself, let alone 2 months), and at the end it was showing
> > > 130 meg (or 13% usage).  What the?
>
> > > Sorry but what was the originaly argument against a "clear-all" switch
> > > on the data store again?
>
> > > cheers
> > > Sri
>
> > > On May 14, 7:41 pm, Paul Kinlan  wrote:
>
> > > > Hi,
>
> > > > The whole thing about datastore size is ***really*** frustating.  I am
> > using
> > > > 30.94 GB for my app (twitterautofollow) and 1) I don't know where it is
> > > > being consumed and 2) I don't trust the figures, I delete data and the
> > size
> > > > of the datastore never goes down, so effectively I feel like am paying
> > and I
> > > > don't know what it is that I am paying for and 3) I honestly don't know
> > how
> > > > I could be using that much storage.
>
> > > > A case in point, I had another App where I spent 2 months deleting data
> > > > never to see the size decrease, I removed all the indexes from the
> > system
> > > > then two days later it was empty.
>
> > > > I just feel frustrated that I can't account for anything, and
> > unfortunatly
> > > > it is too late for me to design my app to have my own accounting in
> > place.
>
> > > > Paul.
>
> > > > 2009/5/14 Andy Freeman 
>
> > > > > Argh!
>
> > > > > This means that one form (db.Key) is smaller than the other
> > > > > (comparable string) for the datastore while the reverse is true for
> > > > > memcache.
>
> > > > > I've created am issue (
> > > > >http://code.google.com/p/googleappengine/issues/detail?id=1538
> > > > > )requesting a __getstate__ and __setstate__ for db.Key that is
> > smaller
> > > > > than the string equivalent.  In addition to eliminating the
> > > > > inconsistency betwen the datastore and memcache sizes, it will reduce
> > > > > the size of every memcache'd db.Model instance whose .key() is
> > > > > defined.
>
> > > > > On May 13, 11:41 am, "Jason (Google)"  wrote:
> > > > > > Hi Andy. In this case, the list of Key objects will be smaller than
> > the
> > > > > list
> > > > > > of key strings. Even though the picked db.Key object is larger, it
> > is a
> > > > > > binary-encoded protocol buffer form that gets stored, which is
> > smaller
> > > > > than
> > > > > > the pickled string. That said, I doubt it would make a tremendous
> > > > > difference
> > > > > > unless you have a lot of these entities or these lists have a lot
> > of
> > > > > values.
>
> > > > > > - Jason
>
> > > > > > On Mon, May 11, 2009 at 10:38 PM, Andy Freeman <
> > ana...@earthlink.net>
> > > > > wrote:
>
> > > > > > > Since index space can be significant, can we get some additional
> > > > > > > information?
>
> > > > > > > For example, does an indexed db.ListProperty(db.Key) with three
> > > > > > > elements take significantly more or less space than an indexed
> > > > > > > db.StringListProperty with three elements whose value is str() of
> > the
> > > > > > > same keys?  (The pickle of keys seems to be significantly larger
> > than
> > > > > > > the pickle of the equivalent strings.)
>
> > > > > > > On May 11, 5:04 pm, "Jason (Google)" 
> > wrote:
> > > > > > > > Hi Anthony. I'm very sorry for the late reply, and thank you
> > for
> > > > > bearing
> > > > > > > > with me. I've discussed this with the datastore team and it's
> > evident
> > > > > > > that
> > > > > > > > the CSV file's size is not a great indicator of how much
> > storage your
> > > > > > > > entities will consume. On top of the size of the raw data, each
> > > > > entity
> > > > > > > has
> > > > > > > > associated metadata, as you've already mentioned, but I'd bet
> > that
> > > > > the
> > > > > > > > indexes are consuming the greatest space. If you don't ever
> > query on
> > > > > one
> > > > > > > or
> > > > > > > > more of these 15 string properties, you may consider changing
> > their
> > > > > > > property
> > > > > > > > types to Text or declaring indexed=false in your model. If you
> > can do
> > > > > > > this
> > > > > > > > with one of your properties and re-build your indexes, I'd be
> > > > > interested
> > > > > > > in
> > > > > > > > seeing how much your storage usage decreases since you'll need
> > one
> > > > > less
> > > > > > > > index.
>
> > > > > > > > (Note that single-property indexes are present but not listed
> > in the
> > > >

[google-appengine] Re: Billing Invoices

2009-05-15 Thread Nick Johnson (Google)

Hi George,

App Engine does not use the 'invoice' functionality, though - it bills
you directly, so there's no need to send an invoice.

-Nick Johnson

On Fri, May 15, 2009 at 8:38 AM, George  Moschovitis
 wrote:
>
>> If you need further help, the people in the Google Checkout Merchants
>> Forum are probably better placed to help 
>> you:http://groups.google.com/group/google-checkout-merchants-forum?pli=1
>
> But Google Checkout provides the billing infrastructure.
> Google App Engine is the Merchant, that should send me the invoice...
>
> -g.
>
> 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"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: Billing Invoices

2009-05-15 Thread George Moschovitis

> If you need further help, the people in the Google Checkout Merchants
> Forum are probably better placed to help 
> you:http://groups.google.com/group/google-checkout-merchants-forum?pli=1

But Google Checkout provides the billing infrastructure.
Google App Engine is the Merchant, that should send me the invoice...

-g.

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