[google-appengine] Re: Use GAE APIs outside of dev_appserver?

2009-02-06 Thread Geoffrey Spear



On Feb 5, 5:44 pm, Alexander Kojevnikov alexan...@kojevnikov.com
wrote:
 remote_api [1] allows (or will allow soon [2]) to use your production
 APIs from a local Python script.

I'd go with the latter; the production environment doesn't seem to
have everything installed yet, and including the files from the SDK
doesn't seem to work yet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] simplejson reordering data, lists, arrays??????

2009-02-06 Thread Dave

Greetings, Hopefully this is something dumb I'm doing but simplejson
is reording my lists/arrays. Has anyone seen this? Know how to fix?

The scenario is I am placing tags and GLatLngs into db.ListProperties.
However I've noticed that when written into the table the list is no
longer in proper order which is a major problem for the GLatLngs

Specifically what appears to be happening and consistent is passing
the following json string to simplejson:

tags: {
0: testtag 0,
1: testtag 1,
2: testtag 2,
3: testtag 3,
4: testtag 4
}

I get reordered data back such as:

tags: {1:testtag 1, 0:testtag 0,3:testtag 3,2:testtag
2,4:testtag 4}

This reordered pattern(1,0,3,2,4...) occurs for everything through
simplejson. I've checked the input/output and removed simplejson to
isolate it to simplejson doing the reordering.

Code snippet below:

if request.method == POST:
data = request.POST['map']
json = simplejson.loads(data)
my_map = Map()
tags = json['tags']
for tag, tagname in tags.iteritems():
my_map.tags.append(tagname)
my_map.save()

Any help will be greatly appreciated. I'm looking at how to reorder
data back, but ideally want to stop the json reordering.

thx,

Dave




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



[google-appengine] Re: Bug in starting app

2009-02-06 Thread zhaoz...@hikerlink.org

I tried the appid k2media and ran into the same problem.

On Dec 23 2008, 6:24 am, Marzia Niccolai ma...@google.com wrote:
 The app id is validated as available in the 'Check Availability' function,
 but it is not actually available.  If you are getting that message when
 clicking the 'Create App' button, it definitely means that app id is not
 available.

 -Marzia

 On Mon, Dec 22, 2008 at 1:17 PM, SkiSulli skisu...@gmail.com wrote:

  Is it a false positive in the Check Availability widget, or in the
  validator on creation of the app (technically false negative).  I am
  having the same issue as niek.

  On Dec 19, 9:38 am, Marzia Niccolai ma...@google.com wrote:
   Hi Niek,

   Thanks for reporting this issue.  It is indeed a problem with the
  validate
   function which seems to be a false positive, saying this is available
  when
   it is not.

   -Marzia

   On Fri, Dec 19, 2008 at 8:46 AM, niek nieko...@gmail.com wrote:

Hi all,

when I try to create an application, I get a strange error.

I go tohttp://appengine.google.com/start.  After authentication by
mobile phone  has been successful, I get to choose an Application
Identifier, in my case z00maa. When I push 'check availability' the
system tells me 'Yes, z00maa is available!'
After a short period of euphoria, I provide an application title
Zoomaa, then I push the save-button.

One would assume that the application id is successfully registered,
but I get the following message:

Already Exists
This application ID or version is already in use.

First I assumed a problem with the browser, but after trying Opera,
Safari and Firefox for Mac Os X 10.4.11, build 8S2167, the page is
refusing to register.

Google, there's a problem!
Regards,
niek

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Adding an application to a Google Apps domain

2009-02-06 Thread Nuno Maltez

Hi,

We're developing a google app engine application and we'd like to
provide a way for the users to easily install the application to their
Google Apps domain (and to the user's own application ID on App
Engine). Something like the Add it now button on the Google Code
Reviews product available in the Solutions Marketplace:

http://www.google.com/enterprise/marketplace/viewListing?productListingId=5143210+12982233047309328439

I searched this discussion group and the web, but I couldn't find any
relevant information. Is this possible for a provider other than
Google Labs? Does google provide an API or solution to make this easy
for a App Engine solution listed on the Marketplace? Has anyone else
tried this?

Thanks in advance,
Nuno

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] what is the max length of get and post headers?

2009-02-06 Thread higherone

if my data is a little long,i.e url =http://favmng.appspot.com/getfav?
mydata=aaaf, I can't get the whole mydata
value using
self.request.get('mydata').
Is there any way to release or change this header length bigger?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Remove surrounding quotation marks

2009-02-06 Thread Jim Culver

I am attempting to write a JSONP application and think that it is not
working because the JSON my code is returning has surrounding
quotation marks.

For example when I call the webapp using http://rest-client.googlecode.com/
it returns the following

callbackfunctionname({'Last': 'Doe', 'First': 'John'})

Comparing this to a public url I am using which works the only
difference I can see is the surrounding quotation marks.

Does anybody know how I can remove these?

Thanks

Jim


def get(self):

json = {'Last': 'Doe', 'First': 'John'}
json = self.request.get(callback) + '(' + json + ')'
logging.debug(json= + json)
self.response.set_status(200)
self.response.headers['Content-Type'] = application/json
self.response.headers['Content-Length'] = len(json)
self.response.content_type = application/json
simplejson.dump(json, self.response.out)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Remove surrounding quotation marks

2009-02-06 Thread Jim Culver

I am attempting to write a JSONP application and think that it is not
working because the JSON my code is returning has surrounding
quotation marks.

For example when I call the webapp using http://rest-client.googlecode.com/
it returns the following

callbackfunctionname({'Last': 'Doe', 'First': 'John'})

Comparing this to a public url I am using which works the only
difference I can see is the surrounding quotation marks.

Does anybody know how I can remove these?

Thanks

Jim


def get(self):

json = {'Last': 'Doe', 'First': 'John'}
json = self.request.get(callback) + '(' + json + ')'
logging.debug(json= + json)
self.response.set_status(200)
self.response.headers['Content-Type'] = application/json
self.response.headers['Content-Length'] = len(json)
self.response.content_type = application/json
simplejson.dump(json, self.response.out)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] New App Engine Performance Problems?

2009-02-06 Thread Devel63

Over the past 2 days, my app has been experiencing terrible
performance fluctuations, even timing out on several occasions for a
site which has no traffic except for me typing into a browser (for a
page which typically takes 80ms).  I saw this again this morning
(2/5) around 8am PST.  In these particular cases, ms-cpu was 1s, but
actual ms was 9s??

Is Google infrastructure having a problem?  Performance was terrible
2/4 late morning, great 2/4 night, and terrible again 2/5 morning.
The GAE admin dashboard makes it seem that everything is OK.

Not to confuse the issue, but we recently started using the included
Django 0.96 framework a couple of weeks ago.  Could that be the
problem?

Is anyone else seeing this issue?

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



[google-appengine] Re: App engine problems

2009-02-06 Thread johnP

I noticed this with my app yesterday in the afternoon - a bevy of
deadline exceeded errors, and an increase in zipimport events in my
logfile (using appengine patch).  Later, it got better...

johnP



On Feb 6, 7:31 am, conman constantin.christm...@googlemail.com
wrote:
 Hello,

 recently I am observing *many* DealineExeededErrors in my app!

 This happens even when serving only static content without any
 datastore operations.
 I really think it's not my app because 1 h ago it worked quite normal.

 This sucks because we just send out customer information and now our
 site is not stable!
 I guess this is what beta is about...

 Anybody else observing this problems?

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



[google-appengine] Re: Adding an application to a Google Apps domain

2009-02-06 Thread Marzia Niccolai

Hi Nuno,

Currently this is only available for those applications you see listed
on this page.  However, in the future, we hope that we can make it
more widely available.

-Marzia

On Fri, Feb 6, 2009 at 3:59 AM, Nuno Maltez nuno.li...@gmail.com wrote:

 Hi,

 We're developing a google app engine application and we'd like to
 provide a way for the users to easily install the application to their
 Google Apps domain (and to the user's own application ID on App
 Engine). Something like the Add it now button on the Google Code
 Reviews product available in the Solutions Marketplace:

 http://www.google.com/enterprise/marketplace/viewListing?productListingId=5143210+12982233047309328439

 I searched this discussion group and the web, but I couldn't find any
 relevant information. Is this possible for a provider other than
 Google Labs? Does google provide an API or solution to make this easy
 for a App Engine solution listed on the Marketplace? Has anyone else
 tried this?

 Thanks in advance,
 Nuno

 


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



[google-appengine] Re: App engine problems

2009-02-06 Thread Devel63

I saw the same thing yesterday late morning, it was great last night,
and again bad this morning.  Among other things, a page which normally
takes 70ms times out.Interestingly, I see that the while the time
was 9s, the ms-cpu was 1s ... which seems weird to me.  Usually, I
see actual time  cpu time.

These pages are not doing any DB writes, but do write to memcache and
sometimes read from the DB.

On Feb 6, 9:05 am, johnP j...@thinkwave.com wrote:
 I noticed this with my app yesterday in the afternoon - a bevy of
 deadline exceeded errors, and an increase in zipimport events in my
 logfile (using appengine patch).  Later, it got better...

 johnP

 On Feb 6, 7:31 am, conman constantin.christm...@googlemail.com
 wrote:

  Hello,

  recently I am observing *many* DealineExeededErrors in my app!

  This happens even when serving only static content without any
  datastore operations.
  I really think it's not my app because 1 h ago it worked quite normal.

  This sucks because we just send out customer information and now our
  site is not stable!
  I guess this is what beta is about...

  Anybody else observing this problems?

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



[google-appengine] Re: New App Engine Performance Problems?

2009-02-06 Thread Marzia Niccolai

Hi,

Yesterday, there was higher than usual latency in the system, but it
was determined to be within 'normal' bounds:
http://code.google.com/status/appengine/detail/serving/2009/02/05#ae-trust-detail-helloworld-get-latency

This does not mean that a specific application will not experience
occasional time outs during such periods. Depending on your
application's resource usage, such instances may still be noticeable.

-Marzia

On Fri, Feb 6, 2009 at 9:05 AM, Devel63 danstic...@gmail.com wrote:

 Over the past 2 days, my app has been experiencing terrible
 performance fluctuations, even timing out on several occasions for a
 site which has no traffic except for me typing into a browser (for a
 page which typically takes 80ms).  I saw this again this morning
 (2/5) around 8am PST.  In these particular cases, ms-cpu was 1s, but
 actual ms was 9s??

 Is Google infrastructure having a problem?  Performance was terrible
 2/4 late morning, great 2/4 night, and terrible again 2/5 morning.
 The GAE admin dashboard makes it seem that everything is OK.

 Not to confuse the issue, but we recently started using the included
 Django 0.96 framework a couple of weeks ago.  Could that be the
 problem?

 Is anyone else seeing this issue?

 


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



[google-appengine] Re: App engine problems

2009-02-06 Thread Marzia Niccolai

Hi,

There have been periods this morning with higher than average serving
latency, but so far this is all we have seen:

http://code.google.com/status/appengine/detail/serving/2009/02/06#ae-trust-detail-helloworld-get-latency

-Marzia

On Fri, Feb 6, 2009 at 9:11 AM, Devel63 danstic...@gmail.com wrote:

 I saw the same thing yesterday late morning, it was great last night,
 and again bad this morning.  Among other things, a page which normally
 takes 70ms times out.Interestingly, I see that the while the time
 was 9s, the ms-cpu was 1s ... which seems weird to me.  Usually, I
 see actual time  cpu time.

 These pages are not doing any DB writes, but do write to memcache and
 sometimes read from the DB.

 On Feb 6, 9:05 am, johnP j...@thinkwave.com wrote:
 I noticed this with my app yesterday in the afternoon - a bevy of
 deadline exceeded errors, and an increase in zipimport events in my
 logfile (using appengine patch).  Later, it got better...

 johnP

 On Feb 6, 7:31 am, conman constantin.christm...@googlemail.com
 wrote:

  Hello,

  recently I am observing *many* DealineExeededErrors in my app!

  This happens even when serving only static content without any
  datastore operations.
  I really think it's not my app because 1 h ago it worked quite normal.

  This sucks because we just send out customer information and now our
  site is not stable!
  I guess this is what beta is about...

  Anybody else observing this problems?

  Regards,
  Constantin
 


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



[google-appengine] Re: New App Engine Performance Problems?

2009-02-06 Thread Devel63

I appreciate the fast reply, but we are seeing similar outages this
morning as well.  And not just outages.  Even serving static files
appear to be very slow.  Of course, there's a lot of variability in
all this, too, making diagnosis difficult.

On Feb 6, 9:14 am, Marzia Niccolai ma...@google.com wrote:
 Hi,

 Yesterday, there was higher than usual latency in the system, but it
 was determined to be within 'normal' 
 bounds:http://code.google.com/status/appengine/detail/serving/2009/02/05#ae-...

 This does not mean that a specific application will not experience
 occasional time outs during such periods. Depending on your
 application's resource usage, such instances may still be noticeable.

 -Marzia

 On Fri, Feb 6, 2009 at 9:05 AM, Devel63 danstic...@gmail.com wrote:

  Over the past 2 days, my app has been experiencing terrible
  performance fluctuations, even timing out on several occasions for a
  site which has no traffic except for me typing into a browser (for a
  page which typically takes 80ms).  I saw this again this morning
  (2/5) around 8am PST.  In these particular cases, ms-cpu was 1s, but
  actual ms was 9s??

  Is Google infrastructure having a problem?  Performance was terrible
  2/4 late morning, great 2/4 night, and terrible again 2/5 morning.
  The GAE admin dashboard makes it seem that everything is OK.

  Not to confuse the issue, but we recently started using the included
  Django 0.96 framework a couple of weeks ago.  Could that be the
  problem?

  Is anyone else seeing this issue?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Transcript: App Engine chat time Feb 4

2009-02-06 Thread Marzia Niccolai

[7:00pm] nor3: marzia_google, dan_google: are you guys going to drop
any info about the next release at this thing?
[7:00pm] jeverling: wouldn't something like this would be a good task
for the remote_api?
[7:01pm] jeverling: 200_000 entities?
[7:01pm] nurey: remote_api?
[7:01pm] jeverling: any news on this? it was mentioned in the last chat session
[7:01pm] marzia_google: well i'll officially call a start to the app
engine chat time
[7:01pm] • pr3d4t0r 's ears perk up.
[7:01pm] marzia_google: we will be doing a release in the next few
days, which will have more information about the remote_api
[7:01pm] jeverling: great!
[7:02pm] cying left the chat room.
[7:02pm] nurey: marzia_google: is it a major release?
[7:02pm] nurey: like 1.2?
[7:02pm] sumit joined the chat room.
[7:02pm] marzia_google: no, not a 1.2
[7:02pm] marzia_google: it's the 1.1.9 release
[7:02pm] nor3: what will be in it?
[7:03pm] oktopus: My app at http://simplifyconnections.appspot.com/ is
throwing warnings
[7:03pm] oktopus: about high cpu usage. How can I diagnose the problem?
[7:03pm] Wooble left the chat room. (Remote closed the connection)
[7:03pm] marzia_google: a revamped bulk upload tool
[7:03pm] Wooble joined the chat room.
[7:03pm] marzia_google: that goes along with the remote API
[7:03pm] nurey: marzia_google: woohoo
[7:03pm] marzia_google: and the usually issue fixes, etc that go along
with a release
[7:03pm] nurey: marzia_google: how about a function to delete all data
for an app?
[7:04pm] marzia_google: no
[7:04pm] marzia_google: oktopus: a good way to diagnose high cpu usage
is the python profiler
[7:04pm] nor3: so # Datastore import and export utility for large
datasets is the only roadmap item 1.1.9 will address?
[7:04pm] oktopus: is the python profiler part of the sdk dashboard?
[7:05pm] marzia_google: well, it will provide a better data import mechanism
[7:05pm] marzia_google: profile is a built in python module
[7:06pm] nurey: marzia_google: how will it be better? the data import mechanism?
[7:06pm] oktopus: I see, so I import profiler?
[7:06pm] oktopus: Then what?
[7:07pm] jeffr: i am going to be creating an app, where the whole
purpose is for people to send their friends referral URLs, e.g.
example.com/your-user-id where each click on the referral url
increments your number
[7:07pm] marzia_google:
http://code.google.com/appengine/kb/commontasks.html#profiling
[7:07pm] jeffr: so theoretically, i will have a table with huge
amounts of entities
[7:07pm] oktopus: Got it.
[7:07pm] oktopus: Thanks.
[7:07pm] jeffr: is datastore fine for this application raw?
[7:07pm] marzia_google: it will generally have a better way to manage
the upload options and flow, better recovery
[7:08pm] dan_google: jeffr: You'll want to store the counts in the
datastore, yes.  If they're read often, you can cache them in
memcache.
[7:08pm] nurey: is it  ok to use datastore.Entity directly. i couldn't
see if it's a private API
[7:09pm] dan_google: nurey: datastore.Entity is safe to use.  We
document ext.db instead because we expect most people to want to use
it.
[7:09pm] oktopus: Are there folks who do code reviews of appspot apps,
or is code review only done among associates?
[7:09pm] nurey: oktopus: that's a good Q
[7:10pm] jeffr: let's say for this app i want to make it so that
duplicate IPs cannot be referred -- in this case it would be
conceivable that i could have a million entities in the datastore
[7:10pm] jeffr: if i store them there
[7:10pm] dan_google: oktopus: There's no review of code.
[7:10pm] nor3: how does google foresee quotas scaling over the years?
like, 10 years from now, i wonder what reasonable free quotas will
be
[7:10pm] marzia_google: there is no 'official' application codereview,
flow, though i'd encourage you to set one up if you are interested
[7:11pm] marzia_google: and publicize it on the group
[7:11pm] dstory: Will the inserts into the datastore scale?
[7:11pm] dstory: Each time I add a device to my service, I need the
ability to insert another entity every 15 seconds.
[7:11pm] dstory: The entities are very small (160 bytes), and the
inserts are indpendant, I don't need transactions.
[7:11pm] dstory: 1000 devices needs to handle 66 inserts per second.
[7:11pm] dstory: 5000 devices will need 330 per second.
[7:11pm] dstory: 10 devices 6600 per second.
[7:11pm] dstory: Is GAE for me?
[7:11pm] dstory: Will it scale with me?
[7:11pm] marzia_google: nor3: I don't know if we have a '10 year' plan per se
[7:11pm] marzia_google: i would say we always intend for it to be free
to get started
[7:12pm] nor3: yeah but you guys are the cutting edge of cloud
platform development
[7:12pm] nor3: you must have some sense of how things will scale
[7:12pm] Cyndre: ooo is it talk to google time?
[7:12pm] nor3: is there a moores law for cloud resources?
[7:12pm] dan_google: dstory: App Engine will work for that, at least
once we launch billing and you can pay to raise quotas.
[7:12pm] nurey: nor3: i think prices will go down if 

[google-appengine] Re: App engine problems

2009-02-06 Thread johnP

Actually, I don't have any customers yet (using the app) - but that's
just a quibble. :)


On Feb 6, 9:27 am, johnP j...@thinkwave.com wrote:
 periods this morning with higher than average serving latency are
 displayed to our customers on a big white screen that says SERVER
 ERROR in a big bold font.  Just FYI.

 :)

 On Feb 6, 9:16 am, Marzia Niccolai ma...@google.com wrote:

  Hi,

  There have been periods this morning with higher than average serving
  latency, but so far this is all we have seen:

 http://code.google.com/status/appengine/detail/serving/2009/02/06#ae-...

  -Marzia

  On Fri, Feb 6, 2009 at 9:11 AM, Devel63 danstic...@gmail.com wrote:

   I saw the same thing yesterday late morning, it was great last night,
   and again bad this morning.  Among other things, a page which normally
   takes 70ms times out.    Interestingly, I see that the while the time
   was 9s, the ms-cpu was 1s ... which seems weird to me.  Usually, I
   see actual time  cpu time.

   These pages are not doing any DB writes, but do write to memcache and
   sometimes read from the DB.

   On Feb 6, 9:05 am, johnP j...@thinkwave.com wrote:
   I noticed this with my app yesterday in the afternoon - a bevy of
   deadline exceeded errors, and an increase in zipimport events in my
   logfile (using appengine patch).  Later, it got better...

   johnP

   On Feb 6, 7:31 am, conman constantin.christm...@googlemail.com
   wrote:

Hello,

recently I am observing *many* DealineExeededErrors in my app!

This happens even when serving only static content without any
datastore operations.
I really think it's not my app because 1 h ago it worked quite normal.

This sucks because we just send out customer information and now our
site is not stable!
I guess this is what beta is about...

Anybody else observing this problems?

Regards,
Constantin


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



[google-appengine] Re: GAE as a non-exclusive platform

2009-02-06 Thread Andy Freeman

Licensing out which GAE environment?

The datastore isn't that big a deal - folks have already built a
compatible interface with a MySql backend.

The API has lots of other pieces, but their either open-source
(memcache), can be used as is (PIL), or not that big a deal (users,
except for the google login part).  (Yes, google has a pile of servers
that provide PIL services, but that's an implementation choice.)

The hard part is the infrastructure holding this all together.

That infrastruture is Google's secret sauce for managing a large
amount of computation.

You can do without if you're not going to be big, but 

On Feb 4, 7:47 pm, mcamirand maxcamir...@gmail.com wrote:
 If we keep our app in its current form, we can choose from thousands
 of hosts. If we migrate to GAE, our app can only work on GAE. We are
 bound to Google's pricing, SLA, privacy policy, whims. Why doesn't
 Google revolutionize hosting by licensing out the GAE environment? If
 the neighbourhood datacentre could offer me a GAE environment, I'd be
 converting my app tomorrow.

 Everyone is already amazed by what's been created here. Google
 shouldn't wait until someone releases an open-source implementation of
 GAE that becomes the new standard for the hosting world, replacing
 dedicated servers and virtual private servers.

 -m
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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: simplejson reordering data, lists, arrays??????

2009-02-06 Thread Andy Freeman

Javascript {} is a map/hash table, not a list.  It doesn't have an
order.

If you want the tag, tagname tuples in tag order, you have to put them
in tag order yourself.

Try for tag, tagname in sorted(tags.itertems()):

Note that sorted(tags.iteritems()) sorts the keys in string order,
not numeric order, because the tags are strings, not numbers.  (100
 2 even though 100  2.)

If you want numeric order, replace sorted(tags.itertems()) with
something like sorted([(int(k), v,) for (k,v,) in tags.itertems()]).



On Feb 6, 8:43 am, Dave ddev...@gmail.com wrote:
 Greetings, Hopefully this is something dumb I'm doing but simplejson
 is reording my lists/arrays. Has anyone seen this? Know how to fix?

 The scenario is I am placing tags and GLatLngs into db.ListProperties.
 However I've noticed that when written into the table the list is no
 longer in proper order which is a major problem for the GLatLngs

 Specifically what appears to be happening and consistent is passing
 the following json string to simplejson:

 tags: {
         0: testtag 0,
         1: testtag 1,
         2: testtag 2,
         3: testtag 3,
         4: testtag 4
     }

 I get reordered data back such as:

 tags: {1:testtag 1, 0:testtag 0,3:testtag 3,2:testtag
 2,4:testtag 4}

 This reordered pattern(1,0,3,2,4...) occurs for everything through
 simplejson. I've checked the input/output and removed simplejson to
 isolate it to simplejson doing the reordering.

 Code snippet below:

 if request.method == POST:
         data = request.POST['map']
         json = simplejson.loads(data)
         my_map = Map()
         tags = json['tags']
         for tag, tagname in tags.iteritems():
                 my_map.tags.append(tagname)
         my_map.save()

 Any help will be greatly appreciated. I'm looking at how to reorder
 data back, but ideally want to stop the json reordering.

 thx,

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



[google-appengine] Re: simplejson reordering data, lists, arrays??????

2009-02-06 Thread Dave

Andy, You are my hero! I can't thank you enough.

Hopefully this helps someone else down the path.

Again, many thanks!

Dave

On Feb 6, 12:50 pm, Andy Freeman ana...@earthlink.net wrote:
 Javascript {} is a map/hash table, not a list.  It doesn't have an
 order.

 If you want the tag, tagname tuples in tag order, you have to put them
 in tag order yourself.

 Try for tag, tagname in sorted(tags.itertems()):

 Note that sorted(tags.iteritems()) sorts the keys in string order,
 not numeric order, because the tags are strings, not numbers.  (100
  2 even though 100  2.)

 If you want numeric order, replace sorted(tags.itertems()) with
 something like sorted([(int(k), v,) for (k,v,) in tags.itertems()]).

 On Feb 6, 8:43 am, Dave ddev...@gmail.com wrote:

  Greetings, Hopefully this is something dumb I'm doing but simplejson
  is reording my lists/arrays. Has anyone seen this? Know how to fix?

  The scenario is I am placing tags and GLatLngs into db.ListProperties.
  However I've noticed that when written into the table the list is no
  longer in proper order which is a major problem for the GLatLngs

  Specifically what appears to be happening and consistent is passing
  the following json string to simplejson:

  tags: {
          0: testtag 0,
          1: testtag 1,
          2: testtag 2,
          3: testtag 3,
          4: testtag 4
      }

  I get reordered data back such as:

  tags: {1:testtag 1, 0:testtag 0,3:testtag 3,2:testtag
  2,4:testtag 4}

  This reordered pattern(1,0,3,2,4...) occurs for everything through
  simplejson. I've checked the input/output and removed simplejson to
  isolate it to simplejson doing the reordering.

  Code snippet below:

  if request.method == POST:
          data = request.POST['map']
          json = simplejson.loads(data)
          my_map = Map()
          tags = json['tags']
          for tag, tagname in tags.iteritems():
                  my_map.tags.append(tagname)
          my_map.save()

  Any help will be greatly appreciated. I'm looking at how to reorder
  data back, but ideally want to stop the json reordering.

  thx,

  Dave


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



[google-appengine] Re: App engine problems

2009-02-06 Thread conman

Hi Marzia,

 There have been periods this morning with higher than average serving
 latency, but so far this is all we have seen:

I am pretty sure there was something wrong. I am sitting in Europe,
maybe that's the reason...

But I tested my site multiple times with
http://www.hyperspin.com/
which tests site accessibility from multiple locations round the
world.

Around 8:00 am PST it reported 500 errors from everywhere around the
world, sometimes one or two locations worked ok but the next time I
tried I got an error again.

Now I checked our site again and everything seems quite normal.

It's making me nervous that we (or at least I) are experiencing
*major* problems and there seems to be no explanation for this.

Maybe someone can look into that to make sure it doesn't happen again?

Regards,
Constantin






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



[google-appengine] Re: How to keep datastore consistency?

2009-02-06 Thread Larry

Anyone? Is this a flaw in AppEngine? Do you need more information -
just ask if that's the case?

Larry wrote:
 Hi!

 I've hit a small dilemma! I have a handler called vote, when it is
 invoked it sets a user's vote to whatever they have picked. To
 remember what options they previously picked, I store a VoteRecord
 options which details what their current vote is set to.

 Of course, the first time they vote, I have to create the object and
 store it. But successive votes should just change the value of the
 existing VoteRecord. But he comes the problem: under some
 circumstances two VoteRecords can be created. It's rare (only happened
 once in all 541 votes we've seen so far) but still bad when it does.

 The issue happens because two separate handlers both do essentially
 this:

 vote = VoteRecord.all().filter('user =', user)
 if vote.count(1) == 0:
 obj = VoteRecord()
 obj.user = user
 obj.option = option
 obj.put()
 else:
 obj = vote[0]
 obj.option = option
 obj.put()

 My question is: what is the most effective and fastest way to handle
 these requests while ensuring that no request is lost and no request
 creates two VoteRecord objects?

 Thanks,
 Larry

 PS: You can see the polls working here: http://silicon.appspot.com/polls.
 Notice that voting twice should change the vote the second time
 instead of creating two votes.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] Detect HTTPS so we can charge?

2009-02-06 Thread Nash-t

It is great that App Engine allows Https connections and from my
limited experience it seems to work really well. Since we have such a
small quota for https connections, I would like to be able to restrict
those connections to certain users. Is there a way we can detect in
our code if a user is logged in using https?



Thanks,
-Tim Nash
Lead Developer
SanMateoWaveforms.com
http://smw.appspot.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] Why Google App Engine is not listed in My account panel of google .

2009-02-06 Thread ramu

https://www.google.com/accounts/ManageAccount


All the google services I am using are listed here accept this one,
including those in labs.


Just for the notice of App Engine Developers.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] single quote in user supplied text field shuts down my app

2009-02-06 Thread thebrianschott

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

I have reported this as an issue at the link above. I have tried to
put escape() around the input, but I still get the failure. The input
field is in a GMaps infowindow. Is there a workaround or am I just
creating the field incorrectly?

Thanks,

Brian in Atlanta
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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 get the server running

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

How do you get the server running? I'm trying to do the Hello world
applicaton described in the Getting started guide and when I'm
trying to start the webserver with the command: google_appengine/
dev_appserver.py helloworld/, I only get an error message saying
Invalid syntax.

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



[google-appengine] Table joining issue

2009-02-06 Thread Eddeh!

Hi,

I'm having trouble implementing a certain table design in GAE.
Consider the following Model:

class Group(db.Model):
name = db.StringProperty()
description = db.TextProperty()
password = db.StringProperty()
creator = db.ReferenceProperty(User)
created = db.DateTimeProperty(auto_now=True)

class GroupMembers(db.Model):
user = db.ReferenceProperty(User)
group = db.ReferenceProperty(Group)
admin = db.BooleanProperty()

class Event(db.Model):
date = db.DateTimeProperty(required=True)
creator = db.ReferenceProperty(User)
group = db.ReferenceProperty(Group)
location = db.StringProperty(required=True)
title = db.StringProperty(required=True)
duration = db.IntegerProperty()

Now say I wanted to list all events for all the groups which the user
belongs to. Normally this would be easily solved in SQL:
SELECT e.*
FROM GroupMembers gm, Event e
WHERE gm.group = e.group
 AND gm.user = some_user_id

Of course I could get a list of group memberships for a user in one
call, then loop through these groups, get all events for each and
combine in a final list. But that is an ugly way of doing it and would
result in 1 + (N memberships) calls to datastore. Is there any clean
way of solving this in GAE?

Thank you

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



[google-appengine] Re: Table joining issue

2009-02-06 Thread Robin B

To efficiently perform a join in 2 steps, do a db.Query(), then use a
batch db.get():

http://code.google.com/appengine/docs/python/datastore/functions.html

Robin

On Feb 6, 2:07 pm, Eddeh! edval...@gmail.com wrote:
 Hi,

 I'm having trouble implementing a certain table design in GAE.
 Consider the following Model:

 class Group(db.Model):
         name = db.StringProperty()
         description = db.TextProperty()
         password = db.StringProperty()
         creator = db.ReferenceProperty(User)
         created = db.DateTimeProperty(auto_now=True)

 class GroupMembers(db.Model):
         user = db.ReferenceProperty(User)
         group = db.ReferenceProperty(Group)
         admin = db.BooleanProperty()

 class Event(db.Model):
         date = db.DateTimeProperty(required=True)
         creator = db.ReferenceProperty(User)
         group = db.ReferenceProperty(Group)
         location = db.StringProperty(required=True)
         title = db.StringProperty(required=True)
         duration = db.IntegerProperty()

 Now say I wanted to list all events for all the groups which the user
 belongs to. Normally this would be easily solved in SQL:
 SELECT e.*
 FROM GroupMembers gm, Event e
 WHERE gm.group = e.group
      AND gm.user = some_user_id

 Of course I could get a list of group memberships for a user in one
 call, then loop through these groups, get all events for each and
 combine in a final list. But that is an ugly way of doing it and would
 result in 1 + (N memberships) calls to datastore. Is there any clean
 way of solving this in GAE?

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



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

2009-02-06 Thread Mark Hachey
What version of python are you running? If 3.0, it might be a problem with
some commands being obsolete.




On Fri, Feb 6, 2009 at 2:16 PM, andre...@strombacks.se 
andre...@strombacks.se wrote:


 How do you get the server running? I'm trying to do the Hello world
 applicaton described in the Getting started guide and when I'm
 trying to start the webserver with the command: google_appengine/
 dev_appserver.py helloworld/, I only get an error message saying
 Invalid syntax.

 


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



[google-appengine] Re: App engine problems

2009-02-06 Thread Geoffrey Spear



On Feb 6, 12:27 pm, johnP j...@thinkwave.com wrote:
 periods this morning with higher than average serving latency are
 displayed to our customers on a big white screen that says SERVER
 ERROR in a big bold font.  Just FYI.

So design your app to not 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: what is the max length of get and post headers?

2009-02-06 Thread Geoffrey Spear



On Feb 6, 3:22 am, higherone higher...@gmail.com wrote:
 if my data is a little long,i.e url =http://favmng.appspot.com/getfav?
 mydata=aaaf, I can't get the whole mydata
 value using
 self.request.get('mydata').
 Is there any way to release or change this header length bigger?

You should certainly be able to get the data in your example.  I'm not
sure App Engine has a set limit, but most web browsers limit the size
of a URL they'll send, which effectively limits the size of parameters
passed in the URL.  W3C recommends not relying on URLs longer than 255
characters, although modern browsers support more (I believe IE's 2083
character limit is the smallest of the major browsers).

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



[google-appengine] SearchableModel problems

2009-02-06 Thread Ilia Lobsanov

I have entities (model name is Contract) in the datastore created
using search.SearchableEntity.

This is how I'm searching these entities:

  query = Contract.all().search(keyword)
  query.order(-contract_date).fetch(10)

When the keyword variable is one word, no exception is raised. If I
use two words for the keyword, the following exception is raised. If I
use three words, the exception will talk about wanting three indexes
on __searchable_text_index


Exception in request:
Traceback (most recent call last):
  File /base/data/home/apps/govtenders/123.331195053078948310/common/
zip-packages/django.zip/django/core/handlers/base.py, line 86, in
get_response
response = callback(request, *callback_args, **callback_kwargs)
  File /base/data/home/apps/govtenders/123.331195053078948310/goat/
views.py, line 72, in search_by_keyword
more_template_params = _process_query(request, query)
  File /base/data/home/apps/govtenders/123.331195053078948310/goat/
views.py, line 139, in _process_query
results = query.order(-contract_date).fetch(PAGESIZE+1);
  File /base/python_lib/versions/1/google/appengine/ext/db/
__init__.py, line 1390, in fetch
raw = self._get_query().Get(limit, offset)
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 942, in Get
return self._Run(limit, offset)._Next(limit)
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 891, in _Run
str(exc) + '\nThis query needs this index:\n' + yaml)
NeedIndexError: no matching index found.
This query needs this index:
- kind: Contract
  properties:
  - name: __searchable_text_index
  - name: __searchable_text_index
  - name: contract_date
direction: desc

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



[google-appengine] Re: App engine problems

2009-02-06 Thread johnP

Yes - a spiffy, cheerful, and optimistic 500 message will be in-place
for launch.


On Feb 6, 3:14 pm, Geoffrey Spear geoffsp...@gmail.com wrote:
 On Feb 6, 12:27 pm, johnP j...@thinkwave.com wrote:

  periods this morning with higher than average serving latency are
  displayed to our customers on a big white screen that says SERVER
  ERROR in a big bold font.  Just FYI.

 So design your app to not 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: how to submit form from static index.html

2009-02-06 Thread Alexander Kojevnikov

On Feb 6, 7:58 pm, rakf1 kris...@gmail.com wrote:
 Is there a way to just send mail and not redirect the page?

 I'm trying to send mail using a ajax popup window, so I want to submit
 and write a message in a div, and dont want the page to reload/
 redirect.

You can write a handler that sends an email, and POSTto it the content
of your div using JavaScript.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



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

2009-02-06 Thread Alexander Kojevnikov

On Feb 7, 6:56 am, Nash-t timna...@gmail.com wrote:
 It is great that App Engine allows Https connections and from my
 limited experience it seems to work really well. Since we have such a
 small quota for https connections, I would like to be able to restrict
 those connections to certain users. Is there a way we can detect in
 our code if a user is logged in using https?

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



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

2009-02-06 Thread Devel63

We just switched our project to using the Django 0.96 framework, and
almost whenever we have a bug, the server just silently dies with a
500.  Very occasionally, it give us an error report in the browser.

Under webapp, we'd always get a nice report of the problem that made
it easy to diagnose (such as function requires 3 args, but you are
calling it with 2).

In the Django settings.py, we do have this set
DEBUG = True
TEMPLATE_DEBUG = DEBUG

Any thoughts or 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: Django 500's and Error Reporting

2009-02-06 Thread David Symonds

On Sat, Feb 7, 2009 at 2:31 PM, Devel63 danstic...@gmail.com wrote:

 In the Django settings.py, we do have this set
 DEBUG = True
 TEMPLATE_DEBUG = DEBUG

 Any thoughts or help?

See this: 
http://code.google.com/appengine/docs/python/tools/webapp/overview.html
You pass debug=True to the WSGIApplication you make.


Dave.

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



[google-appengine] Using Portuguese Language for inputs

2009-02-06 Thread moises.soa...@gmail.com

Hi,

this is a very begginer question.

I use this code to render de template:
path = os.path.join(os.path.dirname(__file__),
'contacto.html')
self.response.headers[Content-Type] = text/html;
charset=iso-8859-1
self.response.out.write(template.render(path, {}))

I have one form where i am trying to input words like: Águeda,
Açores, ... The code to get the words is:
cidade = self.request.get('cidade')

I think some problem related with charset is apenning because in de
database the words are : gueda, A , ...

Please help me, i am a begginer.

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] Google ( App Engine + Web Toolkit )

2009-02-06 Thread Omer Shakil
Hi Guys,
I wanted to know what are the prospects of using Google App Engine with the
Web Toolkit. I did some searches and read up on the documentation, it seems
that the only way is to do JSON data transmission layer in the middle. I am
no expert, just wanted to play with these two technologies, so please
correct me if I am wrong.

What about Django then? I guess I wont be needing that anymore, all I have
to do is make a Google App Engine server to send JSON responses to all the
custom requests the Web Toolkit client sends. Currently, App Engine is only
supported in python, once they support it in Java, will it help in anyway
with the Web Toolkit, I found some details about RPC and transferring actual
Java serializable objects, will that eliminate the JSON layer?

Any help and details in this respect are more than welcome.

Thanks,
Omer

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

2009-02-06 Thread Omer Shakil
Thanks Shawn. Okay, Django will help me convert python objects to JSON, and
at the GWT end, you can use a standard JSON Parser, but besides that, all of
the rest you will never ever use, correct? Nothing wrong with that, but was
just curious, all this Django capabilities are of no use to you all of a
sudden. I havent looked too much in GWT yet, but I am sure it will cover for
the empty space well.
In general, would you recommend GWT + App Engine for developing something,
although there are many plus points in creating this division between client
and server end, but there are some hurdles too: what about user logins? will
you have to develop it all at client end too? How would you do user
authentication the App Engine way which was really straight forward before?
I would like to explore these hurdles and questions before I jump in. Both
of them are really powerful alone, but together, do they make a good system
or is it just too much hassle?

Thanks in advance for your input and thoughts.

On Fri, Feb 6, 2009 at 7:41 PM, Shawn Brown big.coffee.lo...@gmail.comwrote:


  I wanted to know what are the prospects of using Google App Engine with
 the
  Web Toolkit. I did some searches and read up on the documentation, it
 seems
  that the only way is to do JSON data transmission layer in the middle.
  What about Django then?

 Have you read the docs on using Django to send JSON?

 http://docs.djangoproject.com/en/dev/topics/serialization/?from=olddocs#id1

 I don't use it myself but do use JSON and find that pretty easy to
 work with in GWT.

 Best,

 Shawn

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
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] does GAE have pycrypto?

2009-02-06 Thread Anthony

Hi,

At the end of the OpenSocial gifts tutorial:
 http://code.google.com/apis/opensocial/articles/appengine-0.8.html

pycrypto is invoked on GAE to authenticate a signed request.  But when
I try to do this myself, GAE can't find the pycrypto modules!  Am I
doing something wrong?

type 'exceptions.ImportError': No module named Crypto.PublicKey
Traceback (most recent call last):
  File /base/data/home/apps/accardi-dev/1.331241728430924979/
gifts.py, line 8, in module
import api
  File /base/data/home/apps/accardi-dev/1.331241728430924979/api.py,
line 15, in module
from Crypto.PublicKey import RSA
type 'exceptions.ImportError': No module named Crypto.PublicKey

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



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

2009-02-06 Thread 陈浩

The module you import is not python standard library. Maybe you can
find it in that sample folder or download it.

On 2/7/09, Anthony acca...@gmail.com wrote:

 Hi,

 At the end of the OpenSocial gifts tutorial:
  http://code.google.com/apis/opensocial/articles/appengine-0.8.html

 pycrypto is invoked on GAE to authenticate a signed request.  But when
 I try to do this myself, GAE can't find the pycrypto modules!  Am I
 doing something wrong?

 type 'exceptions.ImportError': No module named Crypto.PublicKey
 Traceback (most recent call last):
   File /base/data/home/apps/accardi-dev/1.331241728430924979/
 gifts.py, line 8, in module
 import api
   File /base/data/home/apps/accardi-dev/1.331241728430924979/api.py,
 line 15, in module
 from Crypto.PublicKey import RSA
 type 'exceptions.ImportError': No module named Crypto.PublicKey

 



-- 
This letter from ChenHao.

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



[google-appengine] Re: Using Portuguese Language for inputs

2009-02-06 Thread niklasr


On Feb 7, 4:06 am, moises.soa...@gmail.com moises.soa...@gmail.com
wrote:
 Hi,

 this is a very begginer question.

 I use this code to render de template:
         path = os.path.join(os.path.dirname(__file__),
 'contacto.html')
         self.response.headers[Content-Type] = text/html;
 charset=iso-8859-1
         self.response.out.write(template.render(path, {}))

 I have one form where i am trying to input words like: Águeda,
 Açores, ... The code to get the words is:
 cidade = self.request.get('cidade')

 I think some problem related with charset is apenning because in de
 database the words are : gueda, A , ...

charset utf-8 will work. Portuguese gae i/o may require utf-8. As
portuguese i/o from html form with method=post and backend
thing.title  = self.request.POST.get('title')
displays
http://www2.montao.com.br/14008/cmbio-mdulo-de-injeo-elet-e-motor-de-partida
Regards
Niklas



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



[google-appengine] gae-rest rss atom

2009-02-06 Thread niklasr

How do we set attributes to undisplayed / hidden / private with gae-
rest?
My rss feed seems shows too many attributes. The question is how to
set isPrivate boolean attribute for hidden content such as email
addresses.
GAE-REST http://github.com/fczuardi/gae-rest/tree/master
Thank you
Niklas


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



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

2009-02-06 Thread Devel63

Gosh, I wish it were that simple.  In fact, that's the heart of the
problem.  When you switch to Django, you don't make that call anymore,
and instead call application = django.core.handlers.wsgi.WSGIHandler
().

It doesn't accept the debug=True argument, but does have the
environment variable settings I mention below.

But it doesn't work 1% as well as webapp for catching errors, so I
hope I'm just doing something wrong.

Anyone?

On Feb 6, 8:24 pm, David Symonds dsymo...@gmail.com wrote:
 On Sat, Feb 7, 2009 at 2:31 PM, Devel63 danstic...@gmail.com wrote:
  In the Django settings.py, we do have this set
  DEBUG = True
  TEMPLATE_DEBUG = DEBUG

  Any thoughts or help?

 See 
 this:http://code.google.com/appengine/docs/python/tools/webapp/overview.html
 You pass debug=True to the WSGIApplication you make.

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