[google-appengine] Incorrect Version on Google App Engine Homepage

2009-05-19 Thread Vineet

When I login to http://appengine.google.com/a/myDomain.com I see my
application with id (guestbook-xyz) listed but under current version
it says 'None Deployed'.

This is obviously incorrect since http://guestbook-xyz.appspot.com/
does work.

Vineet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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] Fetch more than 1000 entries from Datastore

2009-05-19 Thread Ankur

Hello All,

I have 50,000 entries in Datastore and I am trying to analyze all
entries in the database. What is a good way to iterate over 50,000
entries? We can not use query.fetch(batch_size,offset) where offset 
1000. Due to some restrictions in Datastore, the maximum value of
offset is 1000.

Lots of people have asked similar question on this group but I
couldn't find a single working solution. Can one of the AppEngine
experts on this group help me on this matter?

Thanks,
Ankur




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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 store audio or video filed in AppEngine

2009-05-19 Thread Felipe

Can anybody point me at the appropriate api?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
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 store audio or video filed in AppEngine

2009-05-19 Thread Felipe
Thanks but I need to be able to store binary files dynamically. I.e  
files that users can upload and download. It appears I can store  
binary files in the AppEnginw database as a Blob.

On May 19, 2009, at 3:02 AM, 风笑雪 kea...@gmail.com wrote:

 Use static files in your app.yaml.

 2009/5/19 Felipe fmora3...@gmail.com

 Can anybody point me at the appropriate api?




 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
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 store audio or video filed in AppEngine

2009-05-19 Thread 风笑雪
Yes, you need store it as blob data.
When you output it, you need do this way:

self.response.headers['Content-Type'] = 'audio/mp3' # or other type
self.response.out.write(audio.content) # 'content' is the blob property

2009/5/19 Felipe fmora3...@gmail.com

 Thanks but I need to be able to store binary files dynamically. I.e files
 that users can upload and download. It appears I can store binary files in
 the AppEnginw database as a Blob.


 On May 19, 2009, at 3:02 AM, 风笑雪 kea...@gmail.com wrote:

 Use static files in your app.yaml.
 2009/5/19 Felipe  fmora3...@gmail.comfmora3...@gmail.com


 Can anybody point me at the appropriate api?






 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
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 store audio or video filed in AppEngine

2009-05-19 Thread Felipe
Thanks for the info.

On May 19, 2009, at 3:54 AM, 风笑雪 kea...@gmail.com wrote:

 Yes, you need store it as blob data.

 When you output it, you need do this way:

 self.response.headers['Content-Type'] = 'audio/mp3' # or other  
 type
 self.response.out.write(audio.content) # 'content' is the blob  
 property

 2009/5/19 Felipe fmora3...@gmail.com
 Thanks but I need to be able to store binary files dynamically. I.e  
 files that users can upload and download. It appears I can store  
 binary files in the AppEnginw database as a Blob.


 On May 19, 2009, at 3:02 AM, 风笑雪 kea...@gmail.com wrote:

 Use static files in your app.yaml.

 2009/5/19 Felipe fmora3...@gmail.com

 Can anybody point me at the appropriate api?









 

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



[google-appengine] Re: Over Quota: Datastore Indices Count

2009-05-19 Thread kaspars...@gmail.com

I've only 8 indexes at the moment and I'm also getting Your
application is exceeding a quota: Datastore Indices Count. The
application is basically stuck for couple days.

Could you please reset the quota, app ID is lasi2.

Thanks,
Kaspars
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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 store entity takes so large storage

2009-05-19 Thread saintthor

thank you.

can you tell me what size will it be after supplying the
'indexed=False' argument?

1/2, 1/4, or 3/4?


On 5月18日, 下午9时05分, Nick Johnson (Google) nick.john...@google.com
wrote:
 HiSaintthor,

 Every single field of your model is indexed, so the total size will
 include index entries for all these fields. Any composite indexes will
 also influence the total size. If some of them do not require
 indexing, you can supply the 'indexed=False' argument to the property
 constructor. Note that you will have to re-put existing entities to
 see any change in data size.

 Also, be wary of extrapolating the results from 4000 entities to much
 larger volumes. The space consumption you experience now may not be
 representative of the eventual size.

 -Nick Johnson

 2009/5/18saintthorsaintt...@gmail.com:



  my model is:

  class jUser( db.Model ):
 '''用户存储结构'''
 UserID = db.StringProperty()
 UserName = db.StringProperty()
 UserEmail = db.StringProperty()
 UserPassword = db.StringProperty()
 lockuser = db.StringProperty()
 UserQuesion = db.StringProperty()
 UserAnswer = db.StringProperty()
 JoinDate = db.DateTimeProperty()
 lastlogin = db.DateTimeProperty()
 UserData = db.StringListProperty()  #with 8 short strings in

  I created about 4000 entities, and they take me 10M bytes. 2.5K for
  every entity? why so large?

  in access mdb file, the records with same data take less than 2M.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Date Sorting With A Twist

2009-05-19 Thread djidjadji

This might be a method to get an ordered list of leagues

league_list = models.League.all().fetch(1000)
match_list = models.Match.all().order('date').fetch(1000)

league_dict = {}
for league in league_list:
  league.matches = []
  league_dict[league.key()] = league

# distribute matches to the leagues, date sorted
for match in match_list:
  league_dict[Match.league.get_value_for_datastore(match)].matches.append(match)
  # don't use the reference property as a member, it will result in a
datastore fetch
  # if league.key() == match.league.key():

def key_func(league):
  if not league.matches: return (sys.maxint,) # empty tuple sorts at front
  return tuple([datetime.toordinal(match.date) for match in league.matches])

sorted(league_list, key=key_func)

2009/5/16 June_Tutro littlegru...@gmail.com:

 Hi

 My app lists sports leagues with upcoming matches for some local
 friendly fixtures. Usually each league will have no more than 2 to 5
 upcoming matches. Models look like this:

 class League(db.Model):
  name = db.StringProperty(required=True)
  contact = db.StringProperty()

 class Match(db.Model):
  name = db.StringProperty(required=True)
  league = db.ReferenceProperty(League)
  description = db.TextProperty()
  date = db.DateTimeProperty()

 In my controller I append all matches to the relevant league and send
 a single data structure to the template. The template then displays
 each League/Match as a single wrapped unit in a dashboard view. I want
 to ensure that I always display the next upcoming match first which
 means I must display its corresponding league first (leagues don't and
 should not have a date entry). I have tried using the sorted() method
 however cannot get it to work.

 As a league can contain multiple matches (and there me be some
 overlap) I would be happy to compare the 1st upcoming match for each
 league, even if say the second match in league one still comes before
 the first match in league two.

 league_list = models.League.all().fetch(1000)
 match_list = models.Match.all().order('date').fetch(1000)

 for match in match_list:
  for league in league_list:
    try:
      league.match
    except AttributeError:
      league.matches = []
    if league.key() == match.league.key():
      league.matches.append(match)

 I thought querying by date might help in the matches, but once I
 append to the ReferenceProperty league, this ordering will be lost.
 Wondering what would work best?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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-patch] Re: who is using app-engine-patch?

2009-05-19 Thread ltcstyle

Hey Waldemar,

Finally you decided to compile a list of AEP based projects.
Glad to hear that.
Here is mine: http://www.mobitheweb.com

Another is on its way.

Cheers



2009/5/19 Александр Васильев a.a.vasil...@gmail.com:

 Hello Waldemar.

 Here: http://www.aikido.nsk.su is deployed a site, based on the AEP.
 AEP reference added at the bottom of the page.
 Project (saacore) integrated with picasa and blogger (maps underway)
 and is not open yet.

 




-- 
www.MobiTheWeb.com
Let's share the best mobile web experience.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Fetch more than 1000 entries from Datastore

2009-05-19 Thread 风笑雪
You need sort it by one property(usually is __key__), and get some entities
each time until you get all entites:
http://code.google.com/intl/en/appengine/articles/paging.html

2009/5/19 Ankur ankj...@gmail.com


 Hello All,

 I have 50,000 entries in Datastore and I am trying to analyze all
 entries in the database. What is a good way to iterate over 50,000
 entries? We can not use query.fetch(batch_size,offset) where offset 
 1000. Due to some restrictions in Datastore, the maximum value of
 offset is 1000.

 Lots of people have asked similar question on this group but I
 couldn't find a single working solution. Can one of the AppEngine
 experts on this group help me on this matter?

 Thanks,
 Ankur




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Sorting more than 1000 entities

2009-05-19 Thread 狼外婆

The problem is not about sorting. The problem is that you cannot get
more than 1000 entries.
You need to paginate on the last_name property (if it is guaranteed
to be unique).

all_students = [ ]
next = ''
while True:
students = Student.all().order('last_name').filter('last_name ',
next).fetch(100)
if students:
all_students.extends(students)
next = all_students[-1].last_name
else:
break

Just pay attention that the code above may use too much CPU time if
you really have a lot of entries.

More details about paging:

http://code.google.com/intl/en/appengine/articles/paging.html

Regards.

ZHENG Zhong
http://buggarden.zhengzhong.net/

On May 18, 10:16 pm, daiski dai...@gmail.com wrote:
 Hi.

 I have more than 1000 entities in one kind (Students).

 How can I retrieve from (or iterate through) the datastore *all*
 Students sorted by a StringProperty last_name?

 Thanks :)

 Mo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Sorting more than 1000 entities

2009-05-19 Thread Nick Johnson (Google)

Hi Daiski,

You can sort your results by using the .order() method on a Query object:

q = Student.all().order('last_name').

The datastore only supports fetching 1000 results per query. If you
really need to retrieve more, you can use multiple queries and
paginate, for example see Zheng's solution (but bear in mind that his
code snippet will omit entries in the case of more than one student
with the same last name).

Before you do so, though, consider why you're trying to retrieve more
than 1000 results in a single request. Do you intend to display them
all to the user? If so, is that a usable user interface? Do you intend
to aggregate the data from the records? In this case, you may want to
consider calculating the aggregates ahead of time.

-Nick Johnson

On Mon, May 18, 2009 at 9:16 PM, daiski dai...@gmail.com wrote:

 Hi.

 I have more than 1000 entities in one kind (Students).

 How can I retrieve from (or iterate through) the datastore *all*
 Students sorted by a StringProperty last_name?

 Thanks :)

 Mo
 --~--~-~--~~~---~--~~
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to 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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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 is Google App Engine integrated with Google Docs?

2009-05-19 Thread Nick Johnson (Google)

Hi GhengisOne,

The gdata libraries are not bundled with the App Engine runtime. If
you want to use them, you will need to upload them along with your
app.

-Nick Johnson

On Tue, May 19, 2009 at 4:52 AM, GenghisOne mdkach...@gmail.com wrote:

 Is Google App Engine integrated with Google Docs and if so, how?

 The reason I ask is I got an error when I tried to import the gdata
 docs service from google app engine

 Here's what I used to try and import the service...

 import gdata.docs.service


 Here's what I got back...

 No module named gdata.docs.service



 Is there some special way that the docs.service needs to be called
 from google app engine?


 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] Your application is exceeding a quota: Datastore Indices Count

2009-05-19 Thread Tom Wu
 HI,

Please reset my app blitzg2100 and djangog2100.



Best Regards
Tom Wu

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



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

2009-05-19 Thread Neal

Here is the entire template:

{%block body%}
h2List TaskLogs/h2

!-- List of TaskLogs --
ul
table border=1
tr
  thCustomerBRDomain/th
  thWorker Email/th
  thTaskCode/th
  thStartedTime/th
  thCompletedTime/th
  thResultFlag/th
  thIssue/th
/tr

{%for TaskLog in TaskLogs%}

tr
  td{{TaskLog.customerDomain}}/td
  td{{TaskLog.workerEmail}}/td
  td{{TaskLog.taskCode}}/td
  td{{TaskLog.eventStartedDateTime}}/td
  td{{TaskLog.eventCompletedDateTime}}/td
  td{{TaskLog.resultFlag}}/td
  td{{TaskLog.issues}}/td
/tr

!--  a href={%url views.edit gift.key.id%}{{gift.name|escape}}/
a
  - created {{gift.created|date:Y/m/d H:i:s}} by {{gift.giver}}
  --
{%endfor%}
/ul
/table


{%endblock%}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Fetch more than 1000 entries from Datastore

2009-05-19 Thread thuan

If the datastore isn't updated a lot, why not keeping an index of it
as a text property?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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-19 Thread Neal

Sorry, I think I posted the wrong template, this is the one causing
the error:


{%block body%}
h2List TaskLogs/h2

!-- List of TaskLogs --
ul
table border=1
tr
  thCustomerBRDomain/th
  thWorker Email/th
  thTaskCode/th
  thStartedTime/th
  thCompletedTime/th
  thResultFlag/th
  thIssue/th
/tr

{%for TaskLog in TaskLogs%}

tr
  td{{TaskLog.customerDomain}}/td
  td{{TaskLog.workerEmail}}/td
  td{{TaskLog.taskCode}}/td
  td{{TaskLog.eventStartedDateTime}}/td
  td{{TaskLog.eventCompletedDateTime}}/td
  td{{TaskLog.resultFlag}}/td
  td{{TaskLog.issues}}/td
/tr

!--  a href={%url views.edit gift.key.id%}{{gift.name|escape}}/
a
  - created {{gift.created|date:Y/m/d H:i:s}} by {{gift.giver}}
  --
{%endfor%}
/ul
/table


{%endblock%}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: ClientLogin to App Engine w/ cURL

2009-05-19 Thread Nick Johnson (Google)

Hi Tony,

There's nothing obviously wrong here. Have you tried comparing what
you're doing to how appcfg.py authenticates? Checking for any
differences may be instructive.

-Nick Johnson

On Mon, May 18, 2009 at 9:48 PM, Tony fatd...@gmail.com wrote:

 I have an App Engine application that I would like to authenticate to
 programmatically using cURL - I've tried these steps and I'm still
 having no luck.  Here are the steps I've performed:

 1. Obtain an Auth key:
 curl -d email=myem...@gmail.com -d Passwd=mypasswd -d
 accountType=GOOGLE -d service=ah -d source=MyApp 
 https://www.google.com/accounts/ClientLogin

 I get the proper response with the SID, LSID, and Auth keys.

 2.  Use the Auth key to login and obtain a cookie and save it in
 cookiefile:

 curl -c cookiefile http://counter.rocktioneer.com/_ah/login?auth=DQAAA...

 3. Try to connect to my app using the cookie:

 curl -b cookie http://myapp.appspot.com -- fails, I get a redirect to
 the login page

 curl -H Cookie: ACSID=ABC... http://myapp.appspot.com -- fails, I
 get a redirect to the login page

 I've also tried connecting to my app via the login redirect:

 curl -L 
 http://myapp.appspot.com/_ah/login?continue=http://myapp.appspot.comauth=DQA...

 This fails with a Server Error 500.

 Anyone know what I'm doing wrong, here?


 

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



[google-appengine] Re: Bulkloader and Preserving Key_Names

2009-05-19 Thread Devel63

Thanks very much for the helpful info.  Generate_key is a great find,
and it's useful to know that we should waste out time trying to export
key_names at this time.

As for preserving reference links, do we need to create a translation
table [entity type, old_key, new_key] and do writes to the table as we
upload each entity, and reads to determine new reference value as we
upload references?

Or is there some, more built-in way to handle this?

On May 18, 5:10 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Dan,

 On Sun, May 17, 2009 at 1:24 AM, Devel63 danstic...@gmail.com wrote:

  Is there some way to export key_names and then later import them using
  the bulkloader?

 Unfortunately, the exporter code doesn't provide any easy way to
 export key names. Your best bet is probably to extend output_entities,
 which I agree is not ideal.



  I've seen the examples from folks messing around with Handle_Entity,
  but that seems pretty kludgy (and dangerous, given that this is inside
  the source, and changed last release).

 If you just want to determine the key name, you can override
 generate_key:http://code.google.com/p/googleappengine/source/browse/trunk/python/g...
 . Overriding handle_entity is explicitly encouraged, though - as the
 docstring states: Subclasses can override this to add custom entity
 conversion code..



  And key_name aside, what about preserving Reference links in general.
  How is that done?

 You can write a function to modify it on download, or on upload -
 whatever works best for your particular situation.

 -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: Java Runtime Acceptance

2009-05-19 Thread Nick Johnson (Google)

Hi Bradley,

You should get an invitation email shortly.

-Nick Johnson

On Mon, May 18, 2009 at 7:32 PM, Bradley Barrows bradleyb1...@gmail.com wrote:

 I am also waiting to be accepted for the GAE java runtime. Any help
 would be greatly 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: Bulkloader and Preserving Key_Names

2009-05-19 Thread Nick Johnson (Google)

On Tue, May 19, 2009 at 3:51 PM, Devel63 danstic...@gmail.com wrote:

 Thanks very much for the helpful info.  Generate_key is a great find,
 and it's useful to know that we should waste out time trying to export
 key_names at this time.

 As for preserving reference links, do we need to create a translation
 table [entity type, old_key, new_key] and do writes to the table as we
 upload each entity, and reads to determine new reference value as we
 upload references?

If you're using numeric IDs then yes, that is probably your best bet.

-Nick Johnson


 Or is there some, more built-in way to handle this?

 On May 18, 5:10 am, Nick Johnson (Google) nick.john...@google.com
 wrote:
 Hi Dan,

 On Sun, May 17, 2009 at 1:24 AM, Devel63 danstic...@gmail.com wrote:

  Is there some way to export key_names and then later import them using
  the bulkloader?

 Unfortunately, the exporter code doesn't provide any easy way to
 export key names. Your best bet is probably to extend output_entities,
 which I agree is not ideal.



  I've seen the examples from folks messing around with Handle_Entity,
  but that seems pretty kludgy (and dangerous, given that this is inside
  the source, and changed last release).

 If you just want to determine the key name, you can override
 generate_key:http://code.google.com/p/googleappengine/source/browse/trunk/python/g...
 . Overriding handle_entity is explicitly encouraged, though - as the
 docstring states: Subclasses can override this to add custom entity
 conversion code..



  And key_name aside, what about preserving Reference links in general.
  How is that done?

 You can write a function to modify it on download, or on upload -
 whatever works best for your particular situation.

 -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: How is Google App Engine integrated with Google Docs?

2009-05-19 Thread GenghisOne

Here's a how-to that might provide some value to others.

http://code.google.com/appengine/articles/gdata.html

I had a quick look at it and seems like getting a simple list of your
google docs is not that simple.


On May 19, 6:56 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi GhengisOne,

 The gdata libraries are not bundled with the App Engine runtime. If
 you want to use them, you will need to upload them along with your
 app.

 -Nick Johnson

 On Tue, May 19, 2009 at 4:52 AM, GenghisOne mdkach...@gmail.com wrote:

  Is Google App Engine integrated with Google Docs and if so, how?

  The reason I ask is I got an error when I tried to import the gdata
  docs service from google app engine

  Here's what I used to try and import the service...

  import gdata.docs.service

  Here's what I got back...

  No module named gdata.docs.service

  Is there some special way that the docs.service needs to be called
  from google app engine?

  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] Datastore timeout

2009-05-19 Thread ksjun

Yet another datastore timeout.

It seems that system status page is ok but almost my datastore
operations are failed with timeout errors.

My application id is lifography.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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-19 Thread Tim Hoffman

Hi

Here's my guess as to what is going on

Somewhere in django has_key(key) is being called which is
traditionally a method
of a dictionary that can check if a key is in the dictionary.  Modern
python code should really use key in somedict

However app engine datastore class instances have a has_key method
which doesn't take an argument,  that just tells
you if a datastore key has been generated for the entity  (unfortunate
choice of names I think)

So somewhere someone is checking if a key is in a datastore entity as
if it where a dictionary which won't work

Hope this helps

Rgds

Tim



On May 19, 10:17 pm, Neal nwalt...@sprynet.com wrote:
 Sorry, I think I posted the wrong template, this is the one causing
 the error:

 {%block body%}
 h2List TaskLogs/h2

 !-- List of TaskLogs --
 ul
 table border=1
 tr
   thCustomerBRDomain/th
   thWorker Email/th
   thTaskCode/th
   thStartedTime/th
   thCompletedTime/th
   thResultFlag/th
   thIssue/th
 /tr

 {%for TaskLog in TaskLogs%}

 tr
   td{{TaskLog.customerDomain}}/td
   td{{TaskLog.workerEmail}}/td
   td{{TaskLog.taskCode}}/td
   td{{TaskLog.eventStartedDateTime}}/td
   td{{TaskLog.eventCompletedDateTime}}/td
   td{{TaskLog.resultFlag}}/td
   td{{TaskLog.issues}}/td
 /tr

 !--  a href={%url views.edit gift.key.id%}{{gift.name|escape}}/
 a
   - created {{gift.created|date:Y/m/d H:i:s}} by {{gift.giver}}
   --
 {%endfor%}
 /ul
 /table

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



[google-appengine] SMS Verfication Troubles

2009-05-19 Thread ted stockwell

Hi,

I am in SMS Verification hell.
Right now I'm in a state where if I try to verify my account I get the
Too many SMS messages... error.
I filled out the 'Having Trouble Receiving SMS Messages?' form here,
http://appengine.google.com/waitlist/sms_issues, and I have waited two
working days for a response.

I really need someone to release me from my SMS Verification
purgatory.

Thanks in advance,
-ted stockwell


PS: I think I somehow got into this state because, for reasons I don't
understand, it seems to have taken several hours for the SMS
verification message to show up.  By that time, if I try to go back to
the browser and type in the verification code the browser ends up
taking me back to the page to original verification page (because my
web session has timed out).  So, I have ended up requesting
verification several times.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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 Chat Time!

2009-05-19 Thread LI Daobing


On May 12, 2:35 am, Jason (Google) apija...@google.com wrote:

   Here's the schedule:
   - Every FIRST Wednesday of the month from 7:00 to 8:00 p.m. PDT
   - Every THIRD Wednesday of the month from 9:00 to 10:00 a.m. PDT

   So our schedule for the next few months looks like:
   - March 18, 9:00-10:00 a.m. PDT
   - April 1, 7:00-8:00 p.m. PDT
   - April 15, 9:00-10:00 a.m. PDT
   - May 6, 7:00-8:00 p.m. PDT
   - May 20, 9:00-10:00 a.m. PDT
   ...

PDT means UTC-7.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: PHP, Datastore, JDO

2009-05-19 Thread fillano

Try to replace the quercus.jar+resin-util.jar+jetty solution with
resin.jar, and replace QuercusServlet with GoogleQuercusServlet.(It's
in resin-4.0.0 package.) There's some problems with previous one as I
testing the php from the following url:

http://blog.caucho.com/?p=187

It's official blog from caucho (and also quercus).


Regards,
Fillano

On 5月17日, 下午3時35分, Herbert Groot Jebbink
herbert.groot.jebb...@gmail.com wrote:
 Hi,

 Folowing below pages I can now store en retrieve data into the
 Datastore withPHP.

http://brian.brispace.net/2009/04/09/php-on-google-app-engine/
http://www.fistagon.us/wp/?p=16

 however I have problems with update and delete, for example, below
 atempt to delete a object gives a 500
 java.lang.UnsupportedOperationException

 $id = 14;

 import phptest.test;
 import phptest.PMF;

 $p = PMF::get();
 $pm = $p-getPersistenceManager();
 $q = $pm-newQuery(select from phptest.test where id == $id);
 $results = $q-execute();

 echo $results[0]-getId() .  -  . $results[0]-getFirstName() . ;

 $pm-deletePersistent($results[0]);

 $pm-close();

 are there somewhere update / delete examples?

 Kind Regards, Herbert

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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 I choose where in the world my app is hosted?

2009-05-19 Thread Ken

Hello,

I am going to develop an app for Chinese users. People in China always
suffer low connection speed to North American websites, while they
have a fast connection speed to local websites.

If I deploy my app on App Engine, where in the world my app will be
hosted? Can I make the choice to host my app on China servers?

I would appreciate if anyone from Google App Engine team could answer
my question. Thanks.

Ken

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



[google-appengine] Re: Error posting to URL: http://appengine.google.com/api/appversion/create?app_id: Invalid runtime specified.

2009-05-19 Thread amitverma6523

hello Jason,

i had not yet received email indicating google app engine for java
activation...
will you please help me out on how to get it.
as it is more than 2-3 days that i had signed up.

On Apr 9, 11:39 pm, Jason apija...@google.com wrote:
 Have you received an email indicating your Google App Engine for Java
 account has been activated? In order to deploy your applications to
 production, your account must be activated first:

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

 - Jason

 On Apr 8, 1:22 pm, njaffer njaf...@gmail.com wrote:

  Getting following error when attempting to upload using eclipse plugin
  on a mac, using eclipse 3.3.x.

  Unable to upload:
  java.io.IOException: Error posting to 
  URL:http://appengine.google.com/api/appversion/create?app_id=xxxversion=1;
  400 Bad Request
  Invalid runtime specified.

          at com.google.appengine.tools.admin.ServerConnection.send
  (ServerConnection.java:114)
          at com.google.appengine.tools.admin.ServerConnection.post
  (ServerConnection.java:66)
          at com.google.appengine.tools.admin.AppVersionUpload.send
  (AppVersionUpload.java:345)
          at 
  com.google.appengine.tools.admin.AppVersionUpload.beginTransaction
  (AppVersionUpload.java:159)
          at com.google.appengine.tools.admin.AppVersionUpload.doUpload
  (AppVersionUpload.java:68)
          at com.google.appengine.tools.admin.AppAdminImpl.update
  (AppAdminImpl.java:41)
          at 
  com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
  (AppEngineBridgeImpl.java:203)
          at
  com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
  (DeployProjectJob.java:97)
          at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
  (InternalWorkspaceJob.java:38)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  java.io.IOException: Error posting to 
  URL:http://appengine.google.com/api/appversion/create?app_id=version=1;
  400 Bad Request
  Invalid runtime specified.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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 for Permissted Users?

2009-05-19 Thread amitverma6523

Hello Nick,

I am not able to receive that activation mail despite of my signing
up.
What else i can do?
please help me out.

On May 18, 9:21 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Vineet,

 Are you sure the welcome email wasn't just welcome to Google App
 Engine? You get a separate email when your account is activated for
 the Java runtime.

 In any case, you should be activated momentarily.

 -Nick Johnson

 On Sun, May 17, 2009 at 6:47 AM, Vineet vin...@architexa.com wrote:

  Hi,
  I received a 'Welcome to an early look at Google App Engine for Java'
  e-mail a few weeks app. When I have been trying to test a simple demo
  app I get an 'Invalid runtime specified'.

  I am wondering if this is a problem because I requested the invite
  from my Google Apps account (http://appengine.google.com/a/
  domain.com)? I noticed some inconsistencies in logging in and seem to
  perhaps have two accounts with the same address (one on Google Apps
  AppEngine account where I requested and likely received permission
  from and one from the regular AppEngine account).

  I will appreciate help in sorting this out.

  Thanks!

  Regards,
  Vineet

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Java Runtime Acceptance

2009-05-19 Thread David Mittelstädt

The same goes for me. I am developing a Grails (Java) application that
i want to test on app engine. I signed up for the app engine java test
several days ago and have not got any confirmation yet.

Regards, David

On 18 Mai, 20:32, Bradley Barrows bradleyb1...@gmail.com wrote:
 I am also waiting to be accepted for the GAE java runtime. Any help
 would be greatly 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] HELP

2009-05-19 Thread laxuan...@gmail.com

appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
the hashlib module instead
  DIR_PATH,
Loaded authentication cookies from /home/laxuan/.appcfg_cookies
Scanning files on local disk.
Initiating update.
Cloning 20 static files.
Cloning 88 application 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 ---



How to solve this problem?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] Re: Java Runtime Acceptance

2009-05-19 Thread David Mittelstädt

The same goes for me.

Regards, David

On 18 Mai, 20:32, Bradley Barrows bradleyb1...@gmail.com wrote:
 I am also waiting to be accepted for the GAE java runtime. Any help
 would be greatly 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] Can I use more than one application with Google Apps?

2009-05-19 Thread Florian

I use Google App Engine with my own domain (Google Apps) and I would
like to use different applications on different subdomains.

However I am able to set up the subdomains on my control panel but I
am not able to map them to different applications.

As required I created cname records pointing at ghs.google.com for all
subdomains but at the end all of them deliver the first application I
have deployed.

If I create cname records pointing at my subdomains at appspot.com no
application is delivered at all. I get the Google homepage instead.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: ClientLogin to App Engine w/ cURL

2009-05-19 Thread Jeff S (Google)

Hello Tony,

You might also find this thread helpful, it contains some curl
examples

http://groups.google.com/group/google-appengine-java/browse_thread/thread/c96d4fff73117e1d

Happy coding,

Jeff

On May 19, 7:35 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Tony,

 There's nothing obviously wrong here. Have you tried comparing what
 you're doing to how appcfg.py authenticates? Checking for any
 differences may be instructive.

 -Nick Johnson



 On Mon, May 18, 2009 at 9:48 PM, Tony fatd...@gmail.com wrote:

  I have an App Engine application that I would like to authenticate to
  programmatically using cURL - I've tried these steps and I'm still
  having no luck.  Here are the steps I've performed:

  1. Obtain an Auth key:
  curl -d email=myem...@gmail.com -d Passwd=mypasswd -d
  accountType=GOOGLE -d service=ah -d 
  source=MyApphttps://www.google.com/accounts/ClientLogin

  I get the proper response with the SID, LSID, and Auth keys.

  2.  Use the Auth key to login and obtain a cookie and save it in
  cookiefile:

  curl -c cookiefilehttp://counter.rocktioneer.com/_ah/login?auth=DQAAA...

  3. Try to connect to my app using the cookie:

  curl -b cookiehttp://myapp.appspot.com-- fails, I get a redirect to
  the login page

  curl -H Cookie: ACSID=ABC...http://myapp.appspot.com-- fails, I
  get a redirect to the login page

  I've also tried connecting to my app via the login redirect:

  curl 
  -Lhttp://myapp.appspot.com/_ah/login?continue=http://myapp.appspot.com;..

  This fails with a Server Error 500.

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



[google-appengine] GoogleAppEngineLauncher - status icon yellow, should be green

2009-05-19 Thread theillustratedlife

I'm having problems with version 1.2.2 of the launcher for Mac.  When
I hit run, the status icon is the yellow clock, and the Run/Stop/
Browse/SDK Console buttons are greyed out.  My app is running and
there's nothing interesting in the log.

I have to quit the launcher to stop my app, and reopen it to start it
again.


Current log:
*** Running dev_appserver with the following flags:
--admin_console_server= --port=8080 --allow_skipped_files
Python command: /usr/bin/python2.5


Earlier, I was getting this message upon the first page load:
Can't open zipfile /Library/Python/2.5/site-packages/setuptools-0.6c9-
py2.5.egg

I deleted that file and the message went away.  I still can't get the
yellow clock to go away.

iMac 2.8Ghz w Mac OS X 10.5.7, 2GB RAM
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: HELP

2009-05-19 Thread Wooble



On May 19, 4:11 am, laxuan...@gmail.com laxuan...@gmail.com wrote:
 appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
 the hashlib module instead
   DIR_PATH,
 Loaded authentication cookies from /home/laxuan/.appcfg_cookies
 Scanning files on local disk.
 Initiating update.
 Cloning 20 static files.
 Cloning 88 application 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 ---

 How to solve this problem?please!!!

Edit your index.yaml, deleting the thing it's telling you to delete.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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 use more than one application with Google Apps?

2009-05-19 Thread Wooble

Your CNAME records should be pointing to ghs.google.com.

On May 19, 6:55 am, Florian flor...@scheel.eu wrote:
 I use Google App Engine with my own domain (Google Apps) and I would
 like to use different applications on different subdomains.

 However I am able to set up the subdomains on my control panel but I
 am not able to map them to different applications.

 As required I created cname records pointing at ghs.google.com for all
 subdomains but at the end all of them deliver the first application I
 have deployed.

 If I create cname records pointing at my subdomains at appspot.com no
 application is delivered at all. I get the Google homepage instead.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Sorting more than 1000 entities

2009-05-19 Thread daiski

Thanks Zheng and Nick!

On May 19, 3:41 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Daiski,

 You can sort your results by using the .order() method on a Query object:

 q = Student.all().order('last_name').

 The datastore only supports fetching 1000 results per query. If you
 really need to retrieve more, you can use multiple queries and
 paginate, for example see Zheng's solution (but bear in mind that his
 code snippet will omit entries in the case of more than one student
 with the same last name).

 Before you do so, though, consider why you're trying to retrieve more
 than 1000 results in a single request. Do you intend to display them
 all to the user? If so, is that a usable user interface? Do you intend
 to aggregate the data from the records? In this case, you may want to
 consider calculating the aggregates ahead of time.

 -Nick Johnson

 On Mon, May 18, 2009 at 9:16 PM, daiski dai...@gmail.com wrote:

  Hi.

  I have more than 1000 entities in one kind (Students).

  How can I retrieve from (or iterate through) the datastore *all*
  Students sorted by a StringProperty last_name?

  Thanks :)

  Mo
  --~--~-~--~~~---~--~~
  You received this message because you are subscribed to the Google Groups 
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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] Matching date/time GQL query - 500 severe error

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

I would like to do the following:

if ynCompleteTask == Y:
   taskCode= self.request.get('taskCode');
   domainKey = users.get_current_user().email() + :startTime
   startedTime = memcache.get(domainKey);
   DebugText = Complete Task
   taskLogs = TaskLog.gql(SELECT * FROM TaskLog where taskCode =
 + taskCode +
 and workerEmail = :2  + users.get_current_user
().email() +
 and eventStartedDateTime =  + datetimeparse
(startedTime));
   #if len(taskLogs)  1:
   #   DebugText =  Error: more than one matching row found 
   #else:
   #   for taskLog in taskLogs:
   #  taskLog1.eventStartedDateTime = datetime.datetime.now
();
   #  taskLog1.put();  #save to BigTable database
   #  DebugText = DebugText +  Updated Row 


The idea is to find a row that has been stored earlier, and update
it.
The row is identified by the user logged on, a task code, and the date/
time it was stored.

I stored the date/time in memcache, and the admin viewer shows the
following:

t...@example.com:startTime is a pickled:
datetime.datetime(2009, 5, 19, 19, 11, 36, 399000)


Is pickled a Python term or a GAE term?

I'm getting a 500 severe error on this line of code - whether or not I
use the datetimeparse function:

   taskLogs = TaskLog.gql(SELECT * FROM TaskLog where taskCode =
 + taskCode +
 and workerEmail = :2  + users.get_current_user
().email() +
 and eventStartedDateTime =  + datetimeparse
(startedTime));


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)


How can I match on the date/time that I have stored in memCache?

Thanks in advance,
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: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-19 Thread Neal

So basically, are you saying I have to change the Django code to get
this work?
If that's the case, surely everyone would be having the exact same
problem???
How do I find out if I'm up to date or not?  I just installed GAE
about a month ago.
I'm using the django template lib that comes with GAE.

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] ProtocolBufferEncodeError: Required field: handle not set.

2009-05-19 Thread Amir Michail

Hello,

I've started to receive this error:

Exception sending Rollback:
Traceback (most recent call last):
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 1786, in RunInTransactionCustomRetries
tx.handle, resp)
  File /base/python_lib/versions/1/google/appengine/api/
apiproxy_stub_map.py, line 68, in MakeSyncCall
apiproxy.MakeSyncCall(service, call, request, response)
  File /base/python_lib/versions/1/google/appengine/api/
apiproxy_stub_map.py, line 240, in MakeSyncCall
stub.MakeSyncCall(service, call, request, response)
  File /base/python_lib/versions/1/google/appengine/runtime/
apiproxy.py, line 181, in MakeSyncCall
rpc.MakeCall(package, call, request, response)
  File /base/python_lib/versions/1/google/appengine/api/
apiproxy_rpc.py, line 92, in MakeCall
self._MakeCallImpl()
  File /base/python_lib/versions/1/google/appengine/runtime/
apiproxy.py, line 124, in _MakeCallImpl
self.request.Output(e)
  File /base/python_lib/versions/1/google/net/proto/
ProtocolBuffer.py, line 162, in Output
raise ProtocolBufferEncodeError, '\n\t'.join(dbg)
ProtocolBufferEncodeError: Required field: handle not set.

What is this about?

Amir

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Matching date/time GQL query - 500 severe error

2009-05-19 Thread Neal

I switched the GQL Query to the following.
Now the GQL Query no longer gives 500 severe error, but almost
anything I code after that does give the 500 severe error.
I need to test if I returned any rows or not, ideally one.


   taskLogs = db.GqlQuery(SELECT * FROM TaskLog where taskCode = :
1  +
 and workerEmail = :2  +
 and eventStartedDateTime = :3,
taskCode,
users.get_current_user().email(),
startedTime);
   #if taskLogs is None:
   #   DebugText = No rows returned
   ###if len(taskLogs)  1:
   ###   DebugText =  Error: more than one matching row found 
   #else:
  #DebugText = DebugText + nbsp;nbsp; len(taskLogs) =  +
len(taskLogs);
  #for taskLog in taskLogs:
  #   taskLog1.eventStartedDateTime = datetime.datetime.now
();
  #   taskLog1.put();  #save to BigTable database
  #   DebugText = DebugText +  Updated Row 

If I un-comment these two statements, I get the 500 severe error:
   #if taskLogs is None:
   #   DebugText = No rows returned

So why don't I get some kind of trapped error?  I'm finding the only
way to code this is to keep commenting out lines, and adding them back
in, and taking them out until something seems to work.

Even when I remove the date/time test, the following code runs:

   taskLogs = db.GqlQuery(SELECT * FROM TaskLog where taskCode = :
1  +
 and workerEmail = :2 ,
taskCode,
users.get_current_user().email()
   );

   if taskLogs is None:
  DebugText = No rows returned;
   ###if len(taskLogs)  1:
   ###   DebugText =  Error: more than one matching row found 
   else:
  DebugText = DebugText + Rows Returned
  #DebugText = DebugText + nbsp;nbsp; len(taskLogs) =  +
len(taskLogs);
  for taskLog in taskLogs:
 taskLog.eventCompletedDateTime = datetime.datetime.now
();
 taskLog.put();  #save to BigTable database
 DebugText = DebugText +  Updated Row; 

What is the proper way to test the number of rows returned?

Thanks again,
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: Java Runtime Acceptance

2009-05-19 Thread Felipe

If it's not too much trouble I'm also waiting to have access to the  
Java AppEnginw to be able to upload my J2EE app.

On May 19, 2009, at 10:51 AM, Nick Johnson (Google) nick.john...@google.com 
  wrote:


 Hi Bradley,

 You should get an invitation email shortly.

 -Nick Johnson

 On Mon, May 18, 2009 at 7:32 PM, Bradley Barrows bradleyb1...@gmail.com 
  wrote:

 I am also waiting to be accepted for the GAE java runtime. Any help
 would be greatly 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: PHP, Datastore, JDO

2009-05-19 Thread Herbert Groot Jebbink

On May 19, 4:47 am, fillano fillano.f...@gmail.com wrote:

 Try to replace the quercus.jar+resin-util.jar+jetty solution with
 resin.jar, and replace QuercusServlet with GoogleQuercusServlet.(It's
 in resin-4.0.0 package.) There's some problems with previous one as I
 testing the php from the following url:

 http://blog.caucho.com/?p=187

Indeed, deleting  updating with JDO from PHP is working now, thanks
for the tip.

Kind Regards, Herbert
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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] Testing same-origin dependent apps in production.

2009-05-19 Thread David Wilson

Hi there,

I'm coming close to making my application live, and find myself
worrying about how I'll safely roll out changes to it in the future.

My problem is that I can't use *.appspot.com alternative version URLs
for testing, since the application relies on setting cookies that
another component within a subdomain of my main domain needs to
authenticate browser clients, and also to allow cross-IFRAME
communications with that subdomain (see
http://en.wikipedia.org/wiki/Same_origin_policy ).

My setup is such:

 www.domain.com - main application
 events1.domain.com - component requiring cookies and same-origin.

Accessing an alternative version via appspot.com will fail, since from
a browser's perspective, events1.domain.com lies in a different
security zone to appspot.com.

The only thing I can think of is it set up a proxy server within
domain.com, say, www-dev.domain.com, which rewrites the Host: header
and passes the request on the alternative version running inside
appspot.com, but I've suspicions that this setup won't work for as yet
undiscovered reasons.

I can disable same origin restrictions on AJAX in Firefox using a
special about:config option, but this doesn't apply to Internet
Explorer, and it also doesn't apply to setting cookies.

Ideas?


David.

-- 
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] Could Mailman run on AppEngine?

2009-05-19 Thread Nevin Freeman

Has anyone tried to port Mailman (http://www.gnu.org/software/mailman/
index.html) to run on AppEngine? I'm assuming there would be some
major barriers, but I think they might be beyond what I have time for.
All comments on the topic welcome!

Thanks,
Nevin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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] URL not working with my app engine app

2009-05-19 Thread dolsen

I have added an additional URL to my app engine app and it has been
working fine for over a week. However, now when I go to that URL it no
longer works. I haven't changed anything since the domain name was
last working. Anyone have any ideas why this might be happening?

I added the domain through Google Apps for my domain and added the
domain in app engine. The DNS for the domain name is pointing to the
right place. I'm stumped as to why this is happening.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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] verbose_name property of the Property class not being used by form generator

2009-05-19 Thread ryanisinallo...@gmail.com

verbose_name is supposed to effect the label tag output from the form
generator but it's not. Is anyone else actually using the django form
generator?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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-19 Thread Mark

Any chance I could get an activation as well :)
Would LOVE to get in there and start trying this out.


On May 15, 2:39 pm, Jason (Google) apija...@google.com wrote:
 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: Activating GAE (Java) account issues

2009-05-19 Thread Mark

I've been waiting several days now, and would also like to know how
long it usually takes for the email to go out.  Or if the limit on
early access accounts has been reached, it would be nice to know so
that I'm not just sitting here checking my email all day :)

Mark

On May 18, 2:26 pm, Bradley Barrows bradleyb1...@gmail.com wrote:
 Hi Jason,
 I was wondering how long it takes to be approved for the Java runtime
 on average. I have been waiting for about a week.
 Thanks,
 Brad

 On May 15, 11:37 am, Jason (Google) apija...@google.com wrote:

  You should receive an email shortly.

  - Jason

  On Thu, May 14, 2009 at 1:47 PM, David Levy
  david.l...@restonrobotics.orgwrote:

   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: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-19 Thread djidjadji

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

Template 
{%for TaskLog in TaskLogs%}
--

There are two things wrong with this python code

The second arg to renderPage must be a dictionary with key-value pairs
self.renderPage('templates/list.html', {'TaskLogs':TaskLogs})

The template for loop needs an iterable in the var TaskLogs in the
context (the dict arg of renderPage). query.get() does not return an
iterable.

self.renderPage('templates/list.html', {'TaskLogs':[TaskLogs]})

The original TaskLogs is by Django interpreted as a context and asked
for a certain dictionary key ('forloop') with has_key(key). But it is
a db.Model instance with a has_key(self,key) method.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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 use more than one application with Google Apps?

2009-05-19 Thread Florian

They do - it was just a try.

Any idea to get more than 1 of 10 apps working on a Google Apps domain
simultaneously?

If you can use only one application another problem is that you are
not able to specify one.

The first one is chosen automatically.

On May 19, 8:24 pm, Wooble geoffsp...@gmail.com wrote:
 Your CNAME records should be pointing to ghs.google.com.

 On May 19, 6:55 am, Florian flor...@scheel.eu wrote:

  I use Google App Engine with my own domain (Google Apps) and I would
  like to use different applications on different subdomains.

  However I am able to set up the subdomains on my control panel but I
  am not able to map them to different applications.

  As required I created cname records pointing at ghs.google.com for all
  subdomains but at the end all of them deliver the first application I
  have deployed.

  If I create cname records pointing at my subdomains at appspot.com no
  application is delivered at all. I get the Google homepage instead.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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] Too Many Versions (403) Error on Deploy

2009-05-19 Thread Joe

Is anybody else seeing a Too Many Versions (403) error when they
attempt a deploy? It's happening for me on version 11 of my app, even
though this would be only the second mini-version within 11 ... and I
tried bumping my version up to 12 to see if it was a bug specific to
version 11 ... but I still received the error. I cannot go back to
version 10 and test that direction because 10 is in production and I'd
hate to lose...

In the App Engine issue tracker, this is related to #744, I think...
And, I put a comment up there yesterday but have not heard anything so
I'm putting it out here for the community because it's a show-stopping
kind of thing. Anyone else seen this kind of bug in deployment and
found a workaround?

Thank y'all kindly!

Oh, just in case folks want to take a peek, here's a link directly to
my issue tracker comment ... it includes debug output and app name:

http://code.google.com/p/googleappengine/issues/detail?id=744q=too%20many%20versionscolspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component#c5
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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 use more than one application with Google Apps?

2009-05-19 Thread 狼外婆

I succeeded running 2 webapps on my two subdomains. All you need is to

1) add a domain to your GAE-based app (on appengine's dashboard)
2) add a CNAME record pointing to ghs.google.com

You can add a domain to your webapp via:
appengine dashboard / administration / versions / domain setup

Hope that helps.
Regards.

ZHENG Zhong
http://buggarden.zhengzhong.net/

On 5月20日, 上午12时04分, Florian flor...@scheel.eu wrote:
 They do - it was just a try.

 Any idea to get more than 1 of 10 apps working on a Google Apps domain
 simultaneously?

 If you can use only one application another problem is that you are
 not able to specify one.

 The first one is chosen automatically.

 On May 19, 8:24 pm, Wooble geoffsp...@gmail.com wrote:

  Your CNAME records should be pointing to ghs.google.com.

  On May 19, 6:55 am, Florian flor...@scheel.eu wrote:

   I use Google App Engine with my own domain (Google Apps) and I would
   like to use different applications on different subdomains.

   However I am able to set up the subdomains on my control panel but I
   am not able to map them to different applications.

   As required I created cname records pointing at ghs.google.com for all
   subdomains but at the end all of them deliver the first application I
   have deployed.

   If I create cname records pointing at my subdomains at appspot.com no
   application is delivered at all. I get the Google homepage instead.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Defining HTTP 404 response with web.xml

2009-05-19 Thread Jeff S (Google)

Hi Tim,

I haven't tried using an error-page in web.xml, but you could add a
servlet mapping which matches all requests which fall through the
above mappings (place it at the end of the web-app) and use it to
write out your custom error page. I'm looking into the error-page
element as well.

Happy coding,

Jeff

On May 17, 8:57 am, Tim Wickstrom timwickst...@gmail.com wrote:
 I am using Java to run my google app, and I would like to override the
 default 404 error that is thrown.

 I am attempting to do this by defining the error page with web.xml

 web-app xmlns=http://java.sun.com/xml/ns/javaee; version=2.5
   ... stuff ...
   error-page
     error-code404/error-code
     location/test404.html/location
   /error-page
 /web-app

 The application doesn't seem to be reacting to the change I've made to
 the web.xml file. Has anyone else run into a similar issue? Is there
 another method I should be using to define the 404 response in java?

 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: Index deletion request

2009-05-19 Thread Jeff S (Google)

Hi condor,

I've errored out the stuck indicies. You should be able to vacuum them
now.

Thank you,

Jeff

On May 17, 8:53 pm, condor takayuki.a...@gmail.com wrote:
 Dear appengine manager.

 I tried update my appengine indexes by appcfg.py.
 But, the status of some indexes kept Building belong 3 days more.

 so delete all Building indexes, please.

 My appengine application ID is dmapp001.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Vacuum Indexes (Java)

2009-05-19 Thread Jeff S (Google)

Hello,

What is the app ID for your application?

Thank you,

Jeff

On May 17, 9:25 pm, sampat...@gmail.com sampat...@gmail.com wrote:
 I am getting following error when trying to upload my application, I
 am using Eclipse plugin.

 java.io.IOException: Error posting to 
 URL:http://appengine.google.com/api/datastore/index/add?app_id=mma-engine...
 400 Bad Request
 Cannot build indexes that are in state ERROR.

 To vacuum and rebuild your indexes:
 1. Create a backup of your index.yaml specification.
 2. Determine the indexes in state ERROR from your admin 
 console:http://appengine.google.com/datastore/indexes?app_id=mma-engine
 3. Remove the definitions of the indexes in ERROR from your index.yaml
 file.
 4. Run appcfg.py vacuum_indexes your_app_dir/
 5. Wait until the ERROR indexes no longer appear in your admin
 console.
 6. Replace the modified version of your index.yaml file with the
 original.
 7. Run appcfg.py update_indexes your_app_dir/

 I do see errors for my indexes in Datastore/Indexes panel. How to use
 appcfg.py? I don't see this utility in the download. I tried using
 appcfg.cmd and it did not 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: Database time outs / Lost or latent data changes

2009-05-19 Thread Jeff S (Google)

Hi Bayer,

This could be a bit difficult to diagnose without more details on your
queries, entities, and indicies. Are the timeouts on writes to the
datastore, or are these reads? In general the more code you can share
the better :-)

Thank you,

Jeff

On May 18, 9:49 am, Bayer whattayagonn...@gmail.com wrote:
 My app is experiencing two issues. First, I get many database timeout
 errors (xxx took too long). Second, data changes made through forms
 either don't take (without apparent error) or there is a latency,
 where the changes show up after one or more browser refreshes.

 Any suggestions WRT things I may be doing incorrectly in my code
 (Python)? 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: Over Quota: Datastore Indices Count

2009-05-19 Thread Jeff S (Google)

Fred, I've reset the index count so you should be all set. Kaspars
I've reset the index quota for your app as well and it looks like you
had some indexes which were stuck in the building state so I've moved
them to error.

Happy coding,

Jeff

On May 19, 2:11 am, kaspars...@gmail.com kaspars...@gmail.com
wrote:
 I've only 8 indexes at the moment and I'm also getting Your
 application is exceeding a quota: Datastore Indices Count. The
 application is basically stuck for couple days.

 Could you please reset the quota, app ID is lasi2.

 Thanks,
 Kaspars
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Contacting Google offline related to app engine

2009-05-19 Thread Jeff S (Google)

Hi Marcel,

Is this a question you would feel comfortable asking in the discussion
group? In most cases the discussion groups are more helpful as others
can benefit from your question and chime in with their own experience
and expertise.

Thank you,

Jeff

On May 18, 10:05 am, Marcel Overdijk marceloverd...@gmail.com wrote:
 Is there a way contacting Google offline about app engine.
 My question is related to application identifiers.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Your application is exceeding a quota: Datastore Indices Count

2009-05-19 Thread Jeff S (Google)

Hi Tom,

You should be all set, also djangog2100 has a couple of stuck indicies
which I've moved to the error state.

Thank you,

Jeff

On May 19, 6:09 am, Tom Wu service.g2...@gmail.com wrote:
  HI,

 Please reset my app blitzg2100 and djangog2100.

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



[google-appengine] Re: SMS Verfication Troubles

2009-05-19 Thread Jeff S (Google)

Hi Ted,

You should be all set. I'm assuming the account you were using was the
one you are using to post here.

Happy coding,

Jeff

On May 18, 4:49 pm, ted stockwell emorn...@gmail.com wrote:
 Hi,

 I am in SMS Verification hell.
 Right now I'm in a state where if I try to verify my account I get the
 Too many SMS messages... error.
 I filled out the 'Having Trouble Receiving SMS Messages?' form 
 here,http://appengine.google.com/waitlist/sms_issues, and I have waited two
 working days for a response.

 I really need someone to release me from my SMS Verification
 purgatory.

 Thanks in advance,
 -ted stockwell

 PS: I think I somehow got into this state because, for reasons I don't
 understand, it seems to have taken several hours for the SMS
 verification message to show up.  By that time, if I try to go back to
 the browser and type in the verification code the browser ends up
 taking me back to the page to original verification page (because my
 web session has timed out).  So, I have ended up requesting
 verification several times.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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: Your application is exceeding a quota: Datastore Indices Count

2009-05-19 Thread Tom Wu
Hi Jeff,

Thanks a lot.


Best Regards
Tom Wu


2009/5/20 Jeff S (Google) j...@google.com


 Hi Tom,

 You should be all set, also djangog2100 has a couple of stuck indicies
 which I've moved to the error state.

 Thank you,

 Jeff

 On May 19, 6:09 am, Tom Wu service.g2...@gmail.com wrote:
   HI,
 
  Please reset my app blitzg2100 and djangog2100.
 
  Best Regards
  Tom Wu
 


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



[google-appengine] Python XForms and Google App Engine?

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

Does anybody have a recommended Python library that will handle XForms
on the GAE platform?
Any reason to use or not use XForms with GAE?

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: TypeError: has_key() takes exactly 1 argument (2 given)

2009-05-19 Thread Neal

Tim,
   So you don't use templates at all?  Or some other package?
   I loved what I saw of Django, but then tried to build a vanilla
app on GAE.  But all the books I had, when talking about templates,
used the Django template parser.

Thanks,
Neal


On May 19, 8:00 pm, Tim Hoffman zutes...@gmail.com wrote:
 HINeal

 I don't know anything about django - (I don't use it on gae) all I am
 doing is pointing out what the error means
 This probably means you are passing the wrong argument to something in
 one of your templates.

 T

 On May 20, 3:30 am,Nealnwalt...@sprynet.com wrote:



  So basically, are you saying I have to change the Django code to get
  this work?
  If that's the case, surely everyone would be having the exact same
  problem???
  How do I find out if I'm up to date or not?  I just installed GAE
  about a month ago.
  I'm using the django template lib that comes with GAE.

 Neal- Hide quoted text -

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



[google-appengine] google apps engine online error.

2009-05-19 Thread Aaron

ok, I am getting a server error 500.

currently I got  django ... www.mydomain.com/admin to work.

this is djangos admin area where I need to login too.

what I need to do is go to the url  www.mydomain.com/account/login

this supposed to bring up a login screen where I put a e-mail address
and password which when submitted it will automaticly be the admin
account used for the admin area.

Yet when I go to that url I don't see a login screen but get
redirected to www.mydomain.com

So how can I fix this?  In google apps engine online when I look at
the datastore data view I get the server error 500.

any ideas what the problem could be?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to 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
-~--~~~~--~~--~--~---