[google-appengine] Re: Definition of Google's Infrastructure

2008-10-08 Thread Josh Heitzman

Regarding Should we design our system so that if the datacenters
where an app is deployed are vaporized, then the app keeps serving?
No, this is a much thornier issue. does this mean that an app's data
is stored in one and only one data center with no off-site backups?

I could understand that the off-site backup of an app isn't
automatically started up when there is a burp in service from a
datacenter, but if all of the data was lost from a datacenter would it
just be gone?

On Oct 7, 9:26 pm, Jon McAlister [EMAIL PROTECTED] wrote:
 Should we allow control over where the app is serving from? Sure, that
 sounds very reasonable, and is notably important for certain legal
 reasons amongst our European customers.

 Should we design our system so that if the datacenters where an app is
 deployed are vaporized, then the app keeps serving? No, this is a much
 thornier issue.

 Notably, I disagree with the claim that true inter-continental
 deployment of an app is a basic premise of modern cloud computing,
 mostly because this is really hard, and few systems actually get this
 right. Think about it from the view of a datastore write. When you
 write an entity, should that entity be immediately available on every
 continent? The reasonable answer is no, because if we guaranteed that,
 then the write latency would skyrocket. But if we don't guarantee
 that, what do we guarantee instead? If the app is presently serving
 from two continents, but we do not guarantee strong write behavior,
 how are conflicting writes then to be merged? If one datacenter
 disappears and then later comes back online, what happens to the
 writes that were halfway applied but not yet fully merged? Do we
 permit data to be dropped or do we try to reconcile this data, in
 spite of the fact that it may be hours or days stale?

 The answer to the above questions rely heavily on the specifics of the
 data and the behavior of the application, and most apps are happy to
 avoid this issue and are fine serving from one or a small number of
 locations. It's not a trivial thing to design one (or a handful of)
 generic APIs that support true inter-continental application presence,
 but this doesn't mean we'll give up trying to do so. We also welcome
 any technical suggestions you have. For instance, how would you
 presently solve this issue outside of Google App Engine?

 On Oct 7, 1:39 pm, Andrew Badera [EMAIL PROTECTED] wrote:

  That's the point of the cloud -- if you're going to make your resources
  external, remote, you need to provide a means for assuring uptime. For some
  people, different geophysical locations are required for their service.
  Obviously GAE beta shouldn't see a true NEED for this while still in beta,
  but like SSL and everything else GAE lacks, there IS a need, it IS a basic
  premise of modern cloud computing.

  On Tue, Oct 7, 2008 at 4:35 PM, Sal [EMAIL PROTECTED] wrote:

   So you want to be assured that if all the Google data centers in the
   U.S. (over 12) go down (I wonder the probability of this), your GAE
   application will still be up?

   On Oct 7, 11:35 am, Andrew Badera [EMAIL PROTECTED] wrote:
Ahh ... availability and assurance? That's half the point of the cloud.

On Tue, Oct 7, 2008 at 2:34 PM, Sal [EMAIL PROTECTED] wrote:

 Honestly, why would anyone need to deploy their GAE applications to
 international data centers?

 On Oct 7, 10:48 am, dleifker [EMAIL PROTECTED] wrote:
  What exactly does the term Google's Infrastructure imply? Once
  deployed does an application get deployed to regional (ie
  international) data centers? If not, from what general geographical
  area are the applications being served from? (US only?) And are 
  there
  plans to allow an application to be deployed to international
  locations?

--
Thanks-
- Andy Badera
- [EMAIL PROTECTED]
- (518) 641-1420

-http://higherefficiency.net
-http://changeroundup.com/

-http://flipbitsnotburgers.blogspot.com/
-http://andrew.badera.us/

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



[google-appengine] Re: Help: can you help validate MyApp / Datastore / Bigtable / GFS?

2008-10-08 Thread David Symonds

On Wed, Oct 8, 2008 at 4:22 PM, pr3d4t0r [EMAIL PROTECTED] wrote:

 On Oct 7, 4:45 am, David Symonds [EMAIL PROTECTED] wrote:
 Users of Bigtable don't always communicate through the BT master; they
 usually go straight to the tablet server once they know which one they
 need to talk to.

 Thanks Dave.  This, for now, is a high-level architectural view.  Do
 you think it makes sense to add the path to discrete tablets here?  I
 believe it may be a bit distracting.

If you're going to include enough detail in the diagram to indicate
the master/tablet server distinction, you probably should include it,
otherwise it would be misleading.

From the Bigtable paper:  (http://labs.google.com/papers/bigtable.html)

As with many single-master distributed storage systems, client data
does not move through the master: clients communicate directly with
tablet servers for reads and writes. Because Bigtable clients do not
rely on the master for tablet location information, most clients never
communicate with the master. As a result, the master is lightly loaded
in practice.

 How should I credit you in the book?  David Symonds with some
 affiliation?

Contact me off-list about this.


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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Model.put() Best Practice

2008-10-08 Thread djidjadji

This multiple user problem is handled by the AppEngine
transparently. It will start more instances of your application when
needed.
If your application is so popular that you will stress AppEngine, you
will be contacted by somebody :-)

2008/10/7 Feris Thia [EMAIL PROTECTED]:
 Hi Peter,

 On Tue, Oct 7, 2008 at 9:49 PM, Peter Recore [EMAIL PROTECTED] wrote:

 You really want
 to know how many simultaneous requests can be served, which is very
 different.

 This is what I need to be confirmed. Thanks.


 This video should give you some ideas on how to properly load test a
 app engine app:


 http://sites.google.com/site/io/best-practices---building-a-production-quality-application-on-google-app-engine

 There are several other good app engine videos on io site as well -
 look for anything that mentions app engine in the name.

 I have looked at the video and it provides the best practices, which is I
 needed :)

 Thanks,
 Feris
 


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



[google-appengine] Re: Simple Graphics App

2008-10-08 Thread djidjadji

The graphics stuff is not done on the GAE side, the server side.
The graphics is done on the client side, the browser.
Just construct the graphics you want with HTML, Javascript, Flash or
any other means, and when you need
   num_apples+=1;
   chart updates.
   update user's persistent DB apple count.
You use Ajax to communicate with the DB and get new data to update the graphics.
Or plain reload the page by means of a new page URL set with
Javascript, the parameters of the URL will invoke the DB update.

Djidjadji

2008/10/8 codingJoe [EMAIL PROTECTED]:

 I'm new to Google Code and I'm looking for expert advice on the best
 structure and libraries to build a simple graphics app on GAE.

 In my app, I want to give the user the ability to move slider bars to
 control variables and drag simple custom icons onto a chart.   The
 following example illustrates the level of interactivity I'm looking
 for.  Nothing spectacular, but basic stuff.

 Example:  I define Google Data Model Objects:  apple and orange.
 I query apples and oranges counts on a by-user
 basis.
 A bar chart compares num_apples against
 num_oranges.
 User drags an icon of an apple onto the apple
 bar.
num_apples+=1;
chart updates.
update user's persistent DB apple count.


 I like the GAE to manage the basic app engine stuff (objects,
 persistence, etc...)

 I'm confused about the graphics portion.  The closest I've found in
 google code is Android.  It seems to be built more for mobile devices
 and doesn't seem to support much interactivity.But without
 downloading, learning, and experimenting, that may not be a correct
 assessment.

 What graphics library should I use?  Is there a best example to
 illustrate the concepts I would use in this app?  How to make simple
 interactive graphics work within GAE apps and classes?

 Thanks for any advice

 T
 


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



[google-appengine] Re: reading a file

2008-10-08 Thread djidjadji
You can open a file for reading, just do not put it in a 'static' directory.

2008/10/8 Gmail [EMAIL PROTECTED]:

 the static files and the source code are  not stored on the same
 server of Google's.
 so you can not do things as you said,
 if you really want to do this,try use the urllib.
 在 2008-10-8,上午8:48, manuelaraoz 写道:


 Hey!
 I'm really confused!

 I have this line of code:

 fin = open(static/text/data.txt,'r')


 when running with dev_appserver everything is ok
 but when I deploy the application, it fails, stating:

 Traceback (most recent call last):
  File /base/python_lib/versions/1/google/appengine/ext/webapp/
 __init__.py, line 499, in __call__
handler.get(*groups)
  File /base/data/home/apps/7cerebros/4.6/controller.py, line 213,
 in get
fin = open(static/text/words.txt,'r')
 IOError: [Errno 2] No such file or directory: 'static/text/words.txt'


 my app.yaml has this line:

 - url: /text
  static_dir: static/text

 any idea of why this difference?



 


 


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



[google-appengine] Re: www [mydomain.org] Already used, please remove previous mapping first.

2008-10-08 Thread ID

Hi, thanks for replying.

I have checked,  'www' is not assigned to Sites, Pages, or anywhere
else.

this is a fresh domain, purchased thru google/enom.

sites assigned to 'sites' and pages assignd to 'pages' subdomains
already by default.

'www' assigned nowhere, yet it shows error 'Duplicate value' when
trying to assign Pages or Sites.

and shows error 'Already used, please remove previous mapping first'
when trying to assign to Appengine app.

thanks

On Oct 7, 1:24 am, Marzia Niccolai [EMAIL PROTECTED] wrote:
 Hi,

 The issue here is that, by default, Google Apps has assigned www to sites,
 and you have to disable this before mapping www to an App Engine app.

 Unfortunately, it's not very clear on how to do this in the Google Apps
 admin panel.

 To get www to work with your app, enable sites, if it isn't already, and go
 to the service settings for sites.  Find and delete the 'www' mapping in the
 service settings.

 After this, you should be able to map your App Engine app towww.mydomain.com.

 -MarziaOn Mon, Oct 6, 2008 at 4:20 AM, Sylvain [EMAIL PROTECTED] wrote:

  Can you create an issue for this ?

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

  On 6 oct, 11:09, ID [EMAIL PROTECTED] wrote:
   Basically problem seems to be is this:

   Google Apps thinks 'www' is assigned to some service, thus locking
   'www' so it cant be assigned any other service.

   But user can not see which service 'www' was assigned to by Google
   apps, therefore user not able  to changed or disabled it.

   On Oct 5, 7:33 pm, Tom [EMAIL PROTECTED] wrote:

Please try the following:

Go to your site's dashboardhttps://
 www.google.com/a/cpanel/[yourdomain.org]/Dashboardhttp://www.google.com/a/cpanel/%5Byourdomain.org%5D/Dashboard

From there you'll likely see the Web Pages service set
  towww.yourdomain.org.
Clicking on that will let you rename it (to home.yourdomain.org for
example).

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



[google-appengine] Re: Definition of Google's Infrastructure

2008-10-08 Thread Andrew Badera
The OP said:  get deployed to regional (ie international) data centers?

I'm taking more of a generic geophysical location, not international, or as
you've framed, intercontinental perspective.

But in the end, it's the same -- availability zones will, when fully rolled
out, offer geophysical differentiation of deployments, and that is, in fact,
quite intrinsic to modern cloud computing. SSDS, same deal. I want to say
Hadoop nodes are also organized this way. It's just the way it's done for
professional cloud deployments. You have 12 different Google datacenters for
a reason -- some of the same reason those deploying applications in the
cloud need geophysical differentiation.


On Wed, Oct 8, 2008 at 1:17 AM, Jon McAlister [EMAIL PROTECTED] wrote:


 Regarding the CDN case is markedly different from the datastore case,
 since you're just dealing with immutable blobs. This is not the thorny
 issue.

 Regarding the EC2 availability zone case, these are not spread across
 continents. Quoting from
 http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1347:

 Amazon EC2 now provides the ability to place instances in multiple
 locations. Amazon EC2 locations are composed of regions and
 availability zones. Regions are geographically dispersed and will be
 in separate geographic areas or countries. Currently, ***Amazon EC2
 exposes only a single region***.

 So, this case is not very complicated either, since all the
 availability zones are right next to one another.

 I contend that neither of these solve the generic problem.

 On Oct 7, 9:59 pm, Andrew Badera [EMAIL PROTECTED] wrote:
  EC2 has availability zones. SSDS will be doing something similar.
 
  CDNs and SDNs often operate on the concept of replicating content close
 to
  various edges in order to reduce latency/improve throughput.
 
  Short of fixes on that scale, one must engage in data sync'g in some form
 or
  another.
 
  All kinds of reasons for it, and it's most definitely already being done,
 in
  various forms.
 
  On Wed, Oct 8, 2008 at 12:26 AM, Jon McAlister [EMAIL PROTECTED]
 wrote:
 
   Should we allow control over where the app is serving from? Sure, that
   sounds very reasonable, and is notably important for certain legal
   reasons amongst our European customers.
 
   Should we design our system so that if the datacenters where an app is
   deployed are vaporized, then the app keeps serving? No, this is a much
   thornier issue.
 
   Notably, I disagree with the claim that true inter-continental
   deployment of an app is a basic premise of modern cloud computing,
   mostly because this is really hard, and few systems actually get this
   right. Think about it from the view of a datastore write. When you
   write an entity, should that entity be immediately available on every
   continent? The reasonable answer is no, because if we guaranteed that,
   then the write latency would skyrocket. But if we don't guarantee
   that, what do we guarantee instead? If the app is presently serving
   from two continents, but we do not guarantee strong write behavior,
   how are conflicting writes then to be merged? If one datacenter
   disappears and then later comes back online, what happens to the
   writes that were halfway applied but not yet fully merged? Do we
   permit data to be dropped or do we try to reconcile this data, in
   spite of the fact that it may be hours or days stale?
 
   The answer to the above questions rely heavily on the specifics of the
   data and the behavior of the application, and most apps are happy to
   avoid this issue and are fine serving from one or a small number of
   locations. It's not a trivial thing to design one (or a handful of)
   generic APIs that support true inter-continental application presence,
   but this doesn't mean we'll give up trying to do so. We also welcome
   any technical suggestions you have. For instance, how would you
   presently solve this issue outside of Google App Engine?
 
   On Oct 7, 1:39 pm, Andrew Badera [EMAIL PROTECTED] wrote:
That's the point of the cloud -- if you're going to make your
 resources
external, remote, you need to provide a means for assuring uptime.
 For
   some
people, different geophysical locations are required for their
 service.
Obviously GAE beta shouldn't see a true NEED for this while still in
   beta,
but like SSL and everything else GAE lacks, there IS a need, it IS a
   basic
premise of modern cloud computing.
 
On Tue, Oct 7, 2008 at 4:35 PM, Sal [EMAIL PROTECTED] wrote:
 
 So you want to be assured that if all the Google data centers in
 the
 U.S. (over 12) go down (I wonder the probability of this), your GAE
 application will still be up?
 
 On Oct 7, 11:35 am, Andrew Badera [EMAIL PROTECTED] wrote:
  Ahh ... availability and assurance? That's half the point of the
   cloud.
 
  On Tue, Oct 7, 2008 at 2:34 PM, Sal [EMAIL PROTECTED] wrote:
 
   Honestly, why would anyone 

[google-appengine] Re: Memcache not working?

2008-10-08 Thread [EMAIL PROTECTED]

Sorry I forgot a return

The example of use is:

 def get_items(self):
 return model.Item.all().order('-creation_date').fetch(10)

I copied the wrong thing because I'm also trying to cache chunks of
HTML

def get_items(self):
items = model.Item.all().fetch(10)
return self.render_chunk('templates/index-items.html', {'items':
items})

On Oct 8, 4:41 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I have this funcion to cache things:

         def cache(self, key, function, timeout=0):
                 logging.debug('looking for %s in the cache' % key)
                 data = memcache.get(key)
                 if data is not None:
                         logging.debug('%s is already in the cache' % key)
                         return data
                 else:
                         data = function.__call__()
                         logging.debug('inserting %s in the cache' % key)
                         memcache.add(key, data, timeout)
                         return data

 An example of use:

 items = self.cache('index_items', self.get_items)

         def get_items(self):
                 items = model.Item.all().order('-creation_date').fetch(10)

 With the SDK it works. But when uploading the application I just see
 messages saying that nothing is in the cache. I never see xxx is
 already in the cache.

 I have cached all the queries in my main page because it is 6000
 megacycles of average CPU. But if the caching is not working I don't
 know what I can do. I have also tried to cache chunks of HTML, but it
 still doesn't cache anything. In the SDK I go to the memcache viewer
 and I see the chunk of HTML cached if I put the key I use to store it
 in the cache.

 The debug messages says me that is not finding anything in the cache.
 And also the chunks of HTML write a tiemstamp and in the development
 environment (localhost) I see always the same timestamp until I call
 to memecache.delete but on the appspot page I always see a different
 timestamp so I'm sure it is caching nothing.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Since 1.1.5 import cgi/urllib/traceback/etc fails (on MacOS)

2008-10-08 Thread Gijsbert

Hi Marzia,

I unset PYTHONPATH to only get the default path of the python
interpreter (to which dev_appserver.py) adds its own.
I logged sys.path and all the default directories are there. And
running python2.5 from the same shell I run dev_appserver.py I can
import all these modules without problems.

I pushed back to 1.1.4 and started working again, in the same shell
with the same (empty) pythonpath so it really seems to be in the 1.1.5
code change.

(BTW Is there a way to get email on replies to my own posts?)

Gijsbert

On Oct 6, 12:59 pm, Marzia Niccolai [EMAIL PROTECTED] wrote:
 Hi,

 What is the Python Path that you have in your launcher?

 Thanks,
 Marzia

 On Sun, Oct 5, 2008 at 2:17 PM, Gijsbert [EMAIL PROTECTED] wrote:

  Hi,

  Since upgrading to GAE 1.1.5 my app stopped working, dev_appserver.py
  can't import cgi, urllib, traceback, etc:

  type 'exceptions.ImportError': No module named cgi
       args = ('No module named cgi',)
       message = 'No module named cgi

  Importing these from python2.5 shell works fine.

  It might be a MacOS (10.5.5) issue, I just ran the same app on my
  linux box and it works there (well, I could not import
  wsgiref.handlers any more, but changing to run_wsgi_app() made that
  import unnecessary).

  A fix would be awesome, since my linux box is old and cranky.

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



[google-appengine] Re: Simple Graphics App

2008-10-08 Thread codingJoe

Can Google charts support drag and drop actions?

On Oct 7, 10:22 pm, Jorge Vargas [EMAIL PROTECTED] wrote:
 On Tue, Oct 7, 2008 at 9:32 PM, codingJoe [EMAIL PROTECTED] wrote:

  I'm new to Google Code and I'm looking for expert advice on the best
  structure and libraries to build a simple graphics app on GAE.

  In my app, I want to give the user the ability to move slider bars to
  control variables and drag simple custom icons onto a chart.   The
  following example illustrates the level of interactivity I'm looking
  for.  Nothing spectacular, but basic stuff.

      Example:  I define Google Data Model Objects:  apple and orange.
                      I query apples and oranges counts on a by-user
  basis.
                      A bar chart compares num_apples against
  num_oranges.
                      User drags an icon of an apple onto the apple
  bar.
                             num_apples+=1;
                             chart updates.
                             update user's persistent DB apple count.

  I like the GAE to manage the basic app engine stuff (objects,
  persistence, etc...)

  I'm confused about the graphics portion.  The closest I've found in
  google code is Android.  It seems to be built more for mobile devices
  and doesn't seem to support much interactivity.    But without
  downloading, learning, and experimenting, that may not be a correct
  assessment.

  What graphics library should I use?  Is there a best example to
  illustrate the concepts I would use in this app?  How to make simple
  interactive graphics work within GAE apps and classes?

  Thanks for any advice

 how about google charts?http://code.google.com/apis/chart/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Simple Graphics App

2008-10-08 Thread codingJoe

Thank you.  That makes sense to break it out like that and use a
client side technology.  I was expecting to have to do this on GAE
python.

 On Oct 8, 1:51 am, djidjadji [EMAIL PROTECTED] wrote:
 The graphics stuff is not done on the GAE side, the server side.
 The graphics is done on the client side, the browser.
 Just construct the graphics you want with HTML, Javascript, Flash or
 any other means, and when you need
                        num_apples+=1;
                        chart updates.
                        update user's persistent DB apple count.
 You use Ajax to communicate with the DB and get new data to update the 
 graphics.
 Or plain reload the page by means of a new page URL set with
 Javascript, the parameters of the URL will invoke the DB update.

 Djidjadji

 2008/10/8 codingJoe [EMAIL PROTECTED]:



  I'm new to Google Code and I'm looking for expert advice on the best
  structure and libraries to build a simple graphics app on GAE.

  In my app, I want to give the user the ability to move slider bars to
  control variables and drag simple custom icons onto a chart.   The
  following example illustrates the level of interactivity I'm looking
  for.  Nothing spectacular, but basic stuff.

      Example:  I define Google Data Model Objects:  apple and orange.
                      I query apples and oranges counts on a by-user
  basis.
                      A bar chart compares num_apples against
  num_oranges.
                      User drags an icon of an apple onto the apple
  bar.
                             num_apples+=1;
                             chart updates.
                             update user's persistent DB apple count.

  I like the GAE to manage the basic app engine stuff (objects,
  persistence, etc...)

  I'm confused about the graphics portion.  The closest I've found in
  google code is Android.  It seems to be built more for mobile devices
  and doesn't seem to support much interactivity.    But without
  downloading, learning, and experimenting, that may not be a correct
  assessment.

  What graphics library should I use?  Is there a best example to
  illustrate the concepts I would use in this app?  How to make simple
  interactive graphics work within GAE apps and classes?

  Thanks for any advice

  T


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



[google-appengine] cannot receive sms verification code

2008-10-08 Thread tallrain

hi,
i am from china, my gmail account is [EMAIL PROTECTED], while i'm
signing for this serice, i cannot receive sms verification code.
pls help me for it.
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Since 1.1.5 import cgi/urllib/traceback/etc fails (on MacOS)

2008-10-08 Thread Marzia Niccolai
Hi,

Thanks.  Right now it seems that this is an issue specific to 10.5.5 + the
App Engine Launcher.  Since I don't have access to a 10.5.5 installation of
Mac OS, I'd like to ask you to try one more step.

Would it be possible for you to explicitly set the Python Path in the
Launcher to your python installation?  Or if someone else has 10.5.5 + the
1.1.5 SDK if you could do this and see if it solves the issue that would be
appreciated.

Thanks,
Marzia

On Wed, Oct 8, 2008 at 8:24 AM, Gijsbert [EMAIL PROTECTED] wrote:


 Didn't read the question correctly.
 Python Path in the launcher is empty. But logging sys.path still
 reported the correct paths (a whole bunch of app engine paths, then
 the normal python2.5 paths).

 On Oct 6, 12:59 pm, Marzia Niccolai [EMAIL PROTECTED] wrote:
  Hi,
 
  What is the Python Path that you have in your launcher?
 
  Thanks,
  Marzia
 
  On Sun, Oct 5, 2008 at 2:17 PM, Gijsbert [EMAIL PROTECTED]
 wrote:
 
   Hi,
 
   Since upgrading to GAE 1.1.5 my app stopped working, dev_appserver.py
   can't import cgi, urllib, traceback, etc:
 
   type 'exceptions.ImportError': No module named cgi
args = ('No module named cgi',)
message = 'No module named cgi
 
   Importing these from python2.5 shell works fine.
 
   It might be a MacOS (10.5.5) issue, I just ran the same app on my
   linux box and it works there (well, I could not import
   wsgiref.handlers any more, but changing to run_wsgi_app() made that
   import unnecessary).
 
   A fix would be awesome, since my linux box is old and cranky.
 
   Best regards,
   Gijsbert
 


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



[google-appengine] Support for datastore backup/archive

2008-10-08 Thread ctran

Please voice your support if you find this is necessary for your
applications:

  http://code.google.com/p/googleappengine/issues/detail?id=776
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Erratic and Random timeout errors

2008-10-08 Thread Venkatesh Rangarajan
Hello,

Can somebody please make some sense of why we keep getting erratic and
random timeouts ?
I would be more than happy if Google pointed out that my code sucks. Because
that is the easiest thing to fix.

Sample :
http://payrate.appspot.com/?keyword=quantitative%20financial%20analyst

This works

Sample :
http://payrate.appspot.com/?keyword=quantitative%20financial%20analystpage=20

This fails ???

I am no longer retrieving 100 entities, but just 20 entities per query. I am
not  modifying that data..nor sorting it or...I am doing just vanilla
rendering and it fails with time-outs. There cannot be a simpler and
straight forward app. There is a whole bunch of other functionality i want
to add, but is simply ruled out because of this time-out issues.

I get more time-outs than successful queries.

Have added indexes and all...the app is Memcached...but no use memcaching if
the query won't return results the first time.

I would appreciate if you guys could say that this Searchable query
can/cannot scale for this kind of app...i can start looking at SimpleDB for
storage and Appengine for rendering.

rgds,
Venkatesh

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



[google-appengine] Re: Can I use key or id in gql?

2008-10-08 Thread Evan Park

Thank you, Alexander.
You made my code simple. :)

On Oct 7, 3:20 pm, Alexander Kojevnikov [EMAIL PROTECTED]
wrote:
 Fromhttp://code.google.com/appengine/docs/datastore/keysandentitygroups.h...

 Key names and IDs cannot be used like property values in queries.
 However, you can use a named key, then store the name as a property.
 You could do something similar with numeric IDs by storing the object
 to assign the ID, getting the ID value using obj.key().id(), setting
 the property with the ID, then storing the object again.

 Alternatively, if your exclusion list is not large and the number of
 topics in the datastore is reasonable, you can filter manually:

 def list(req):
     except_list = [3, 10]
     topics = (t for t in Topic.all() if t.key().id() not in
 except_list)

 --http://www.muspy.com

 On Oct 7, 10:46 pm, Evan Park [EMAIL PROTECTED] wrote:

  Hello.
  Can I use key or id of data in gql? I want to use like below.

  class TopicCmt(db.Model):
      topic       = db.ReferenceProperty(Topic, required=True)
      owner       = db.ReferenceProperty(User, required=True)
      user_name   = db.StringProperty(required=True)

  def list(req):
      except_list = [3, 10]
      t = Topic.gql('WHERE ID != :1', except_list)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: www [mydomain.org] Already used, please remove previous mapping first.

2008-10-08 Thread Marzia Niccolai
Hi,

Where are you taken when you hit 'www.yourdomain.com'?  This is where the
subdomain mapping is currently going, when you know that you can disable
that service mapping to www.

-Marzia

On Wed, Oct 8, 2008 at 1:27 AM, ID [EMAIL PROTECTED] wrote:


 Hi, thanks for replying.

 I have checked,  'www' is not assigned to Sites, Pages, or anywhere
 else.

 this is a fresh domain, purchased thru google/enom.

 sites assigned to 'sites' and pages assignd to 'pages' subdomains
 already by default.

 'www' assigned nowhere, yet it shows error 'Duplicate value' when
 trying to assign Pages or Sites.

 and shows error 'Already used, please remove previous mapping first'
 when trying to assign to Appengine app.

 thanks

 On Oct 7, 1:24 am, Marzia Niccolai [EMAIL PROTECTED] wrote:
  Hi,
 
  The issue here is that, by default, Google Apps has assigned www to
 sites,
  and you have to disable this before mapping www to an App Engine app.
 
  Unfortunately, it's not very clear on how to do this in the Google Apps
  admin panel.
 
  To get www to work with your app, enable sites, if it isn't already, and
 go
  to the service settings for sites.  Find and delete the 'www' mapping in
 the
  service settings.
 
  After this, you should be able to map your App Engine app
 towww.mydomain.com.
 
  -MarziaOn Mon, Oct 6, 2008 at 4:20 AM, Sylvain [EMAIL PROTECTED]
 wrote:
 
   Can you create an issue for this ?
 
  http://code.google.com/p/googleappengine/issues/list
 
   On 6 oct, 11:09, ID [EMAIL PROTECTED] wrote:
Basically problem seems to be is this:
 
Google Apps thinks 'www' is assigned to some service, thus locking
'www' so it cant be assigned any other service.
 
But user can not see which service 'www' was assigned to by Google
apps, therefore user not able  to changed or disabled it.
 
On Oct 5, 7:33 pm, Tom [EMAIL PROTECTED] wrote:
 
 Please try the following:
 
 Go to your site's dashboardhttps://
  www.google.com/a/cpanel/[yourdomain.org]/Dashboardhttp://www.google.com/a/cpanel/%5Byourdomain.org%5D/Dashboard
 http://www.google.com/a/cpanel/%5Byourdomain.org%5D/Dashboard
 
 From there you'll likely see the Web Pages service set
   towww.yourdomain.org.
 Clicking on that will let you rename it (to home.yourdomain.orgfor
 example).
 
 Hope that helps!
 


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



[google-appengine] Re: www [mydomain.org] Already used, please remove previous mapping first.

2008-10-08 Thread Marzia Niccolai
Hi Brad,

 For what domain is this occurring?  Feel free to reply directly to me with
this information.

-Marzia

On Wed, Oct 8, 2008 at 11:03 AM, Brade [EMAIL PROTECTED] wrote:


 In firefox I get the Address Not Found page, which would seem to mean
 that www is free to use if I wanted to.
 but I'm still not allowed to...
 --brad g.

 On Oct 8, 1:51 pm, Marzia Niccolai [EMAIL PROTECTED] wrote:
  Hi,
 
  Where are you taken when you hit 'www.yourdomain.com'? This is where the
  subdomain mapping is currently going, when you know that you can disable
  that service mapping to www.
 
  -Marzia
 
  On Wed, Oct 8, 2008 at 1:27 AM, ID [EMAIL PROTECTED] wrote:
 
   Hi, thanks for replying.
 
   I have checked,  'www' is not assigned to Sites, Pages, or anywhere
   else.
 
   this is a fresh domain, purchased thru google/enom.
 
   sites assigned to 'sites' and pages assignd to 'pages' subdomains
   already by default.
 
   'www' assigned nowhere, yet it shows error 'Duplicate value' when
   trying to assign Pages or Sites.
 
   and shows error 'Already used, please remove previous mapping first'
   when trying to assign to Appengine app.
 
   thanks
 
   On Oct 7, 1:24 am, Marzia Niccolai [EMAIL PROTECTED] wrote:
Hi,
 
The issue here is that, by default, Google Apps has assigned www to
   sites,
and you have to disable this before mapping www to an App Engine app.
 
Unfortunately, it's not very clear on how to do this in the Google
 Apps
admin panel.
 
To get www to work with your app, enable sites, if it isn't already,
 and
   go
to the service settings for sites.  Find and delete the 'www' mapping
 in
   the
service settings.
 
After this, you should be able to map your App Engine app
   towww.mydomain.com.
 
-MarziaOn Mon, Oct 6, 2008 at 4:20 AM, Sylvain 
 [EMAIL PROTECTED]
   wrote:
 
 Can you create an issue for this ?
 
http://code.google.com/p/googleappengine/issues/list
 
 On 6 oct, 11:09, ID [EMAIL PROTECTED] wrote:
  Basically problem seems to be is this:
 
  Google Apps thinks 'www' is assigned to some service, thus
 locking
  'www' so it cant be assigned any other service.
 
  But user can not see which service 'www' was assigned to by
 Google
  apps, therefore user not able  to changed or disabled it.
 
  On Oct 5, 7:33 pm, Tom [EMAIL PROTECTED] wrote:
 
   Please try the following:
 
   Go to your site's dashboardhttps://
www.google.com/a/cpanel/[yourdomain.org]/Dashboardhttp://www.google.com/a/cpanel/%5Byourdomain.org%5D/Dashboard
 http://www.google.com/a/cpanel/%5Byourdomain.org%5D/Dashboard
   http://www.google.com/a/cpanel/%5Byourdomain.org%5D/Dashboard
 
   From there you'll likely see the Web Pages service set
 towww.yourdomain.org.
   Clicking on that will let you rename it (to
 home.yourdomain.orgfor
   example).
 
   Hope that helps!
 


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



[google-appengine] Re: Datastore Timeouts Must Die

2008-10-08 Thread davew

It does seem like the number of timeouts has increased in recent
weeks.  I just checked my logs, and during the minute of 11:33am this
morning I had 43 timeout data store errors:

Traceback (most recent call last):
  File /base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py, line 501, in __call__
handler.post(*groups)
  File /base/data/home/apps/buddypokeapp/1.416/api.py, line 1296, in
post
self.poke_main()
  File /base/data/home/apps/buddypokeapp/1.416/api.py, line 1196, in
poke_main
fromAvatar.put()
  File /base/python_lib/versions/1/google/appengine/ext/db/
__init__.py, line 618, in put
return datastore.Put(self._entity)
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 162, in Put
raise _ToDatastoreError(err)
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 1627, in _ToDatastoreError
raise errors[err.application_error](err.error_detail)
Timeout: datastore timeout: operation took too long.

Just like Alex, this is for a very simple data model with a single
db.text and a list of db.text's.

Thanks

Dave

On Oct 8, 11:17 am, Alex Epshteyn [EMAIL PROTECTED]
wrote:
 Thanks for your reply, Jon, but I don't have any entity groups with
 more than one entity right now.  I had the same thought a while back,
 and haven't been using any entity groups or ancestors since 2 months
 ago, but nothing changed.  These timeouts are happening when putting
 single entities.

 Alex

 On Wed, Oct 8, 2008 at 12:38 AM, Jon McAlister [EMAIL PROTECTED] wrote:

  Hi Alex, sorry for the frustrations this is causing. The first thing I
  would check for here is to verify that these writes are not failing
  due to entity group contention. (documentation on entity groups:
 http://code.google.com/appengine/docs/datastore/keysandentitygroups.h...).
  All writes within one entity group are optimistically serialized. You
  mention that a good write latency is 100ms. So, if you ever try to do
  more than 10 writes in one second you will experience transaction
  retries and eventually you will hit the datastore timeout. Note that
  even put() and get_or_insert() are still considered transactions in
  our system.

  On Oct 7, 2:48 pm, Alex Epshteyn [EMAIL PROTECTED] wrote:
  As an example, of how frequently datastore write timeouts are
  happening on app engine, here are the last 20 entries in my production
  error log, showing 20 timeouts in 15 minutes!

  I'm hoping the Google team will break their silence about this and at
  least acknowledge the problem.

  Developers: please star issue  
  http://code.google.com/p/googleappengine/issues/detail?id=764
  if you are also experiencing this problem.

  10-07 02:20PM 48.172 /games 500 4040ms 11285mcycles 0kb
  10-07 02:20PM 48.172 /games 500 4040ms 11285mcycles 0kb
  10-07 02:16PM 43.763 /games 500 2813ms 8253mcycles 0kb
  10-07 02:16PM 43.410 /games 500 3078ms 8909mcycles 0kb
  10-07 02:16PM 40.958 /games 500 3084ms 8915mcycles 0kb
  10-07 02:15PM 03.499 /games 500 4109ms 12077mcycles 0kb
  10-07 02:15PM 02.584 /games 500 4110ms 12365mcycles 0kb
  10-07 02:14PM 21.732 /games 500 3071ms 8900mcycles 0kb
  10-07 02:10PM 52.865 /games 500 4045ms 11287mcycles 0kb
  10-07 02:10PM 51.875 /games 500 4041ms 11285mcycles 0kb
  10-07 02:10PM 41.774 /games 500 4036ms 11282mcycles 0kb
  10-07 02:10PM 36.958 /games 500 4033ms 11279mcycles 0kb
  10-07 02:10PM 23.148 /games 500 4039ms 11174mcycles 0kb
  10-07 02:08PM 31.288 /games 500 4068ms 10555mcycles 0kb
  10-07 02:08PM 30.842 /games 500 4449ms 12217mcycles 0kb
  10-07 02:07PM 27.179 /games 500 4047ms 11285mcycles 0kb
  10-07 02:07PM 24.828 /games 500 4047ms 11284mcycles 0kb
  10-07 02:07PM 20.139 /games 500 4061ms 11281mcycles 0kb
  10-07 02:07PM 18.532 /games 500 4042ms 11246mcycles 0kb
  10-07 02:07PM 08.776 /games 500 4048ms 11285mcycles 0kb
  10-07 02:05PM 58.206 /games 500 4047ms 11019mcycles 0kb

  On Oct 6, 1:53 am, Alex Epshteyn [EMAIL PROTECTED] wrote:

   Please see:http://code.google.com/p/googleappengine/issues/detail?id=764

   There is a recent thread on this group titled Why Google App Engine
   is broken and what Google must do to fix it.  I personally don't
   think that any of the topics raised by the OP of that thread imply
   that anything is broken - they are just feature requests.

   What *is* broken, however, is writing to the Datastore.  Lots of
   developers, not just me, have been complaining about this here for
   months.  I don't think there's been any real response from the Google
   team about this.  This issue needs to be investigated and hopefully
   fixed before App Engine can be used for production.  The probability
   of failure for any given data write request is just too high right
   now.  I actually *am* using App Engine in production and somewhat
   regretting it, mostly due to this issue.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 

[google-appengine] Re: Simple Graphics App

2008-10-08 Thread Davide Rognoni

You can use my browser based on .NET (do you know Python and .NET ?)

IronBrowser --- Iron Python Web Browser
http://pyoohtml.appspot.com/IronBrowser



On Oct 8, 5:19 pm, codingJoe [EMAIL PROTECTED] wrote:
 Thank you.  That makes sense to break it out like that and use a
 client side technology.  I was expecting to have to do this on GAE
 python.

  On Oct 8, 1:51 am, djidjadji [EMAIL PROTECTED] wrote:
  The graphics stuff is not done on the GAE side, the server side.
  The graphics is done on the client side, the browser.
  Just construct the graphics you want with HTML, Javascript, Flash or
  any other means, and when you need
                         num_apples+=1;
                         chart updates.
                         update user's persistent DB apple count.
  You use Ajax to communicate with the DB and get new data to update the 
  graphics.
  Or plain reload the page by means of a new page URL set with
  Javascript, the parameters of the URL will invoke the DB update.

  Djidjadji

  2008/10/8 codingJoe [EMAIL PROTECTED]:

   I'm new to Google Code and I'm looking for expert advice on the best
   structure and libraries to build a simple graphics app on GAE.

   In my app, I want to give the user the ability to move slider bars to
   control variables and drag simple custom icons onto a chart.   The
   following example illustrates the level of interactivity I'm looking
   for.  Nothing spectacular, but basic stuff.

       Example:  I define Google Data Model Objects:  apple and orange.
                       I query apples and oranges counts on a by-user
   basis.
                       A bar chart compares num_apples against
   num_oranges.
                       User drags an icon of an apple onto the apple
   bar.
                              num_apples+=1;
                              chart updates.
                              update user's persistent DB apple count.

   I like the GAE to manage the basic app engine stuff (objects,
   persistence, etc...)

   I'm confused about the graphics portion.  The closest I've found in
   google code is Android.  It seems to be built more for mobile devices
   and doesn't seem to support much interactivity.    But without
   downloading, learning, and experimenting, that may not be a correct
   assessment.

   What graphics library should I use?  Is there a best example to
   illustrate the concepts I would use in this app?  How to make simple
   interactive graphics work within GAE apps and classes?

   Thanks for any advice

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



[google-appengine] Re: GAE Obfuscator?

2008-10-08 Thread Davide Rognoni

...and I can't see its secret code?

Google Chrome: Good or evil?
http://blog.sp.or.at/2008/09/02/google-chrome-good-or-evil/

See the last comment:
The source code for Google’s Chrome Browser has never been released.
Google uses the code from the open source browser Chromium in their
proprietary browser Chrome. They can do this because the Chromium code
is released under the BSD License. Clever marketing by Google. Google
only offers Chrome in binary form (it’s closed source) and they only
offer the source code (not the binary) for Chromium. If you want to
use the open source browser Chromium you can download a binary at
http://free-chrome.net;

On Oct 3, 11:13 pm, Davide Rognoni [EMAIL PROTECTED] wrote:
 Why Google can see my secret code?

 i.e.http://www.lysator.liu.se/~astrand/projects/pyobfuscate/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Convenient resource intensive requests without changing quotas/deadlines

2008-10-08 Thread Amir Michail

Hi,

Why not handle resource intensive requests in a transparent way?  This
can be done without changing quotas/deadlines.

In particular, you could give developers a way to designate certain
request handlers as potentially resource expensive.

You could then run these handlers on our behalf at your convenience.
It's ok for them to take a long time to complete.  However, it would
be nice to inform us when they do complete (e.g., by email).

The point is that the code for such handlers would be the same as the
code for normal handlers.  There's no need to split up the task,
invoke the handler repeatedly, etc..  You could do that automatically
for us behind the scenes.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 'Must Authenticate' Problem using Blogger API on App Engine

2008-10-08 Thread Robert

Hi,

Unfortunately I'm reading this message thread only now. I think that
the (otherwise pretty good!) GAE documentation on the use of the Data
APIs could/should better explain that

gdata.alt.appengine.run_on_appengine(gdataService)

also changes the token store of the gdataService. As an exercise I
made a little Facebook App (that runs on GAE and uses the Google
Calendar API). Hence this app has no need to authenticate the user as
a Google user. I'd figured out the token store issue by myself and
fixed it by changing the GData module, like this:

def run_on_appengine(gdata_service, use_engine_token_store=True):
  gdata_service.http_client = AppEngineHttpClient()
  if use_engine_token_store:
  gdata_service.token_store = AppEngineTokenStore()
  return gdata_service

So that I could pass use_engine_token_store=False. This patch is
fine but needs to be applied whenever the library changes. Likewise
the suggestion by Jeff S may need to be slightly changed whenever the
gdataService normal token store is replaced/renamed.
Anyway in my opinion the most important thing is to document this
change in token store in the Note mentioned in step 2 of
http://code.google.com/appengine/articles/gdata.html. Thanks!

Robert

P.S. I blogged on my experiences on GAE so far at:
http://betweenthekeys.blogspot.com/2008/10/battling-platforms.html

On Sep 24, 1:42 am, Jeff S [EMAIL PROTECTED] wrote:
 Hi Murali,

 Your code should work if you are signed in to your app. Beginning in
 1.2.1, the gdata-python-client library stores auth tokens in the
 datastore, but only does so if they can be associated with the current
 user. In most cases, you wouldn't want every user to be using the same
 authtoken, so the library will notstoreatokenif it doesn't know
 who it belongs to. It looks like you want every user to use the 
 sametokenhere, so you can either sign in to your app, or use an in memory
 token_store by adding:

 gdataService = gdata.blogger.service.BloggerService()
 gdata.alt.appengine.run_on_appengine(gdataService)
 gdataService.token_store = atom.token_store.TokenStore()

 Happy coding,

 Jeff

 On Sep 21, 7:24 pm, Murali [EMAIL PROTECTED] wrote:

  Hi All,

  I am trying to access GData Blogger API on App Engine.
  Though ProgrammaticLogin() was successful, subsequent GetBlogFeed()
  fails throwing the following error:

   File C:\xxx\src\gdata\blogger\service.py, line 40, in GetBlogFeed
  return self.Get(uri, converter=gdata.blogger.BlogFeedFromString)
File C:\xxx\src\gdata\service.py, line 703, in Get
  'reason': server_response.reason, 'body': result_body}
  RequestError: {'status': 401, 'body': 'Must authenticate to use
  #39;default#39; user', 'reason': ''}

  I am using gdata-py 1.2.1 and latest version of app engine sdk on
  Windows Vista.
  I have verified the email/password on blogger and everything works
  fine. Even the ProgrammaticLogin() call was successful.

  Here is the source code snippet:
  ---
  gdataService = gdata.blogger.service.BloggerService()
  gdata.alt.appengine.run_on_appengine(gdataService)

  gdataService.email = 'email'
  gdataService.password = 'password'
  gdataService.source = 'SA01-PApp-1.0'
  gdataService.service = 'blogger'
  gdataService.account_type = 'GOOGLE'
  gdataService.server = 'www.blogger.com'
  gdataService.ProgrammaticLogin()

  feed = gdataService.GetBlogFeed()
  --
  Has anybody tried to use blogger API on App engine and experience
  similar problems?
  Any help or pointers would be greatly appreciated.

  Thank you so much,
  Murali

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



[google-appengine] Re: Tutorials / help with app.yaml?

2008-10-08 Thread Marzia Niccolai
Hi Tom-


 1.  Does the app.yaml support uploading files into different directory
 structures than exist on disk?  (eg. Locally files are in ../xyz and
 they need to be installed in /abc.)


This is not currently supported, the directory structure when uploaded
directly mimics the directory structure of the uploaded directory.

It should be noted that static files and program files are treated
separately from one another.  Which is to say, once uploaded, your python
program does not have access to read the directory structure of the static
files.



 2.  What would the app.yaml look like for the case where /abc maps to
 abc.py, abc/foo.html maps to a static file?


In this case you would need to specify the abc/foo.html handler prior to
abc/.*.  We evaluate the regular expressions in order, and the handler for
the first regex that matches the request is always served.



 3.  Perhaps related, what is the best way to map a
 RequestHandler.get() call to an uploaded static html file?  (eg. A
 post() call to /abc gets processed but then the get() call displays
 the static file abc/foo.html)


For this, you would not treat foo.html as a static file.  Instead it would
be a program file.  So lets say that you had a templates directory for your
program files in app/templates.  Your code for this handler might look like:

class MainPage(webapp.RequestHandler):
  def get(self):
path = os.path.join(os.path.join(os.path.dirname(__file__), 'templates'),
'foo.html')
self.response.out.write(template.render(path, template_values))


  def post(self):
   do stuff 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Still having trouble with high-cpu warnings for thumbnails.

2008-10-08 Thread iceanfire

I just wanted to follow up on this discussion to (shamefacedly) point
out what was causing this problem: imports.

I had copied and pasted some code earlier, which I had later deleted
to slim down my code. What I had forgotten to do was: remove the
imports for that piece of code. Once I had removed them, I noticed a
great improvement in performance.

Ever since I removed that piece of code + changed debug to false and
removed the profiler code, I haven't had any cpu warnings for that
particular piece of code.

So the lesson here is: If you're having trouble reducing your CPU
warnings, try looking at imports and make sure that you only call the
essential ones.



On Oct 1, 2:24 am, iceanfire [EMAIL PROTECTED] wrote:
 I will try removing the debug stuff, maybe that is what's causing this
 problem. I'll let you know if this helps.

 Thanks.

 On Sep 29, 6:44 am, Sylvain [EMAIL PROTECTED] wrote:

  Hi,

  memcache can decrease the average, that's all.
  memcache is really good, but it can't be the answer for everything.

  Else, I think with this CPU/Warning, there is no good solution. Now,
  I'm just waiting for higher quota (free or not).

  Did you remove all DEBUG flag (webapp, django render option,...)
  because it uses a lot of CPU.
  The profiler code uses a lot of CPU too.

  Regards

  On 29 sep, 12:57, Arun Shanker Prasad [EMAIL PROTECTED]
  wrote:

   Hi Barry,

   I know that the memcache is free, but it will push out stuff if the
   memory usage is high, I already have much bigger query result cached
   in the memcache, I want to keep them there as long as possible. :)

   Thanks,
   Arun Shanker Prasad.

   On Sep 29, 3:44 pm, Barry Hunter [EMAIL PROTECTED]
   wrote:

On Mon, Sep 29, 2008 at 11:18 AM, Arun Shanker Prasad

[EMAIL PROTECTED] wrote:

 My app is also causing the same problems, I have used etags to set the
 response to 302 if cached, I've tried everything short of memcache, I
 have many images, I don't think that is a viable solution for me.

Why not? memcache is 'free', doesn't seem to be any reason NOT to use 
it?

memcache is already designed to keep 'hot' items in the cache - so it
will automatically discard little used images (or what ever you
store).

You should I would of thought be looking to cache everything possible.

 Any suggestions are welcome.

 On Sep 29, 2:10 am, iceanfire [EMAIL PROTECTED] wrote:
 Thanks for the suggestions. I see the need for Cacheing to reduce the
 load, but I don't understand why the current request is causing high-
 cpu warnings (2 times the average cpu request). At this rate, if a 
 few
 first time users use my application  try to open images that haven't
 been memcached (etc..).. then my application will crash.

 My main question is: why is this request causing a high cpu warning,
 and no one has been able to answer that. For a request that only
 takes  0.020 CPU seconds (according to profiler), appengine sends
 out a warning stating that 2463mcycles have been used.

 So my question is: how do I completely stop high-cpu warnings for a
 request that shouldn't be causing them in the first place?

 I understand that there are ways I can mitigate the problem..but i'd
 like to get to the root if possible.

 thanks!

 On Sep 25, 9:26 am, Bryan A. Pendleton [EMAIL PROTECTED] wrote:

      -So are textProperties more efficient than StringProperties
  because
      they're not indexed?

      You'd have to find the talk from Google IO to be sure. I 
  believe
  it
      was the one about scalability, in the QA section. But yes, 
  that is
  my
      understanding.

  As I understand it, every field that's not a TextProperty or a
  BlobProperty are implicitly indexed (this is how all = conditions 
  are
  dealt with in queries). So, whenever you write such an object, it 
  will
  take longer (because of the index updates).

  Another way of thinking about it, is that if you never need to 
  query
  on a single value, make it a TextProperty or BlobProperty, if
  possible.

      -Wouldn't adding etag--while increasing efficiency if I have 
  the
  same
      users loading the sameimageagain and again--actually decrease
      efficiency for users who are opening up an thumbnail for the 
  first
      time? In that situation,  I'd have another column for etags in 
  my
      datastore being requested w/ every query.

      Yes, you absolutely should generate the etag when you save the
      thumbnail, and save it in the model itself.Cachingit separately
  is
      however still desirable as you can then avoid pulling the rest 
  of
  the
      data into memory if it's not needed, or you can opt to not 
  cache
  the
      rest of the data at all, instead onlycachingthe etag, to be 
  

[google-appengine] Re: Can We use Unicode in Custom Tags?

2008-10-08 Thread yejun

Maybe you can try this.

import sys
reload(sys)
sys.setdefaultencoding('utf-8')


On Oct 7, 9:18 am, Gmail [EMAIL PROTECTED] wrote:
 Current I Try to Use django's Custom Tags,
 It is usful,I like it.

 but when i try to render something Unicode ,
 I got UnicodeDecodeError.

 This is my Tag:
 class PostA(template.Node):
         def render(self, context):
                 p=context['p']          
                 return lia id='%s' href='/post/%s.html'%s/a/li %
 (p.id,p.id,p.title)
 def posta(parser, token):
         return PostA()

 in the template:
 {%for p in paths%}
 li{%posta p.id p.title%}/li
 {% endfor %}

 paths is a list of Post
 Post is my model:
 class Post(db.Model):
         id=db.StringProperty(required=True)
         title = db.StringProperty(required=True)
         path = db.StringProperty()

 in the Handler:
         template_values={
                 'title':p.title,
                 'paths':paths,
                 'content':p.content,
                 'relates':relates
         }
         return shortcuts.render_to_response(post.html,template_values)
 So What your Idea?

 I think there are something wrong in the shortcuts module when it is  
 dealing whit unicode,
 but i can not find it.
 Any reply will be appreciated!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Convenient resource intensive requests without changing quotas/deadlines

2008-10-08 Thread Alexander Kojevnikov

Star this issue:
http://code.google.com/p/googleappengine/issues/detail?id=6

Google mentioned on one of the conferences that they are working on
this, but no timeline was given.

On Oct 9, 8:42 am, Amir  Michail [EMAIL PROTECTED] wrote:
 Hi,

 Why not handle resource intensive requests in a transparent way?  This
 can be done without changing quotas/deadlines.

 In particular, you could give developers a way to designate certain
 request handlers as potentially resource expensive.

 You could then run these handlers on our behalf at your convenience.
 It's ok for them to take a long time to complete.  However, it would
 be nice to inform us when they do complete (e.g., by email).

 The point is that the code for such handlers would be the same as the
 code for normal handlers.  There's no need to split up the task,
 invoke the handler repeatedly, etc..  You could do that automatically
 for us behind the scenes.

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Support for datastore backup/archive

2008-10-08 Thread ctran

I assume Google does have backups but not one that you have control.
Imagine you just roll out a new version of your app and mistakenly
wipe out half of your data during migration.  Probably won't be easy
to restore.  Assuming you're friend with Larry Page and get it
restore, you probably won't get back the same data you had before the
migration.

With this ability, I can go to the admin console, do a back up, roll
out my code and feel perfectly same if anything goes wrong.

On Oct 8, 10:51 am, Josh Heitzman [EMAIL PROTECTED] wrote:
 Is there no backup of an app and its datastore entities now?

 On Oct 8, 8:47 am, ctran [EMAIL PROTECTED] wrote:

  Please voice your support if you find this is necessary for your
  applications:

   http://code.google.com/p/googleappengine/issues/detail?id=776
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Convenient resource intensive requests without changing quotas/deadlines

2008-10-08 Thread Amir Michail

On Wed, Oct 8, 2008 at 6:00 PM, Alexander Kojevnikov
[EMAIL PROTECTED] wrote:

 Star this issue:
 http://code.google.com/p/googleappengine/issues/detail?id=6

 Google mentioned on one of the conferences that they are working on
 this, but no timeline was given.

What's important in what I propose is that you do not need to worry
about resource issues and the handler is written exactly as with any
other handler.

Google decides when your handler runs and whether to interrupt it a
few times to avoid you going over quota.

Amir


 On Oct 9, 8:42 am, Amir  Michail [EMAIL PROTECTED] wrote:
 Hi,

 Why not handle resource intensive requests in a transparent way?  This
 can be done without changing quotas/deadlines.

 In particular, you could give developers a way to designate certain
 request handlers as potentially resource expensive.

 You could then run these handlers on our behalf at your convenience.
 It's ok for them to take a long time to complete.  However, it would
 be nice to inform us when they do complete (e.g., by email).

 The point is that the code for such handlers would be the same as the
 code for normal handlers.  There's no need to split up the task,
 invoke the handler repeatedly, etc..  You could do that automatically
 for us behind the scenes.

 Amir
 




-- 
http://chatbotgame.com
http://numbrosia.com
http://twitter.com/amichail

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



[google-appengine] Re: 'Must Authenticate' Problem using Blogger API on App Engine

2008-10-08 Thread Jeff S

Hi Robert,

Thank you for chiming in. This is an issue that I'm planning to
address in the next release of gdata-python-client. I wrote up a
design doc and passed it around to some of my coworkers and I'd also
like comments from the community. This Google Data APIs library is
open source after all :)

http://code.google.com/p/gdata-python-client/wiki/AuthOnAppEngine

Thank you,

Jeff

On Oct 8, 12:36 pm, Robert [EMAIL PROTECTED] wrote:
 Hi,

 Unfortunately I'm reading this message thread only now. I think that
 the (otherwise pretty good!) GAE documentation on the use of the Data
 APIs could/should better explain that

 gdata.alt.appengine.run_on_appengine(gdataService)

 also changes the token store of the gdataService. As an exercise I
 made a little Facebook App (that runs on GAE and uses the Google
 Calendar API). Hence this app has no need to authenticate the user as
 a Google user. I'd figured out the token store issue by myself and
 fixed it by changing the GData module, like this:

 def run_on_appengine(gdata_service, use_engine_token_store=True):
   gdata_service.http_client = AppEngineHttpClient()
   if use_engine_token_store:
       gdata_service.token_store = AppEngineTokenStore()
   return gdata_service

 So that I could pass use_engine_token_store=False. This patch is
 fine but needs to be applied whenever the library changes. Likewise
 the suggestion by Jeff S may need to be slightly changed whenever the
 gdataService normal token store is replaced/renamed.
 Anyway in my opinion the most important thing is to document this
 change in token store in the Note mentioned in step 2 
 ofhttp://code.google.com/appengine/articles/gdata.html. Thanks!

 Robert

 P.S. I blogged on my experiences on GAE so far 
 at:http://betweenthekeys.blogspot.com/2008/10/battling-platforms.html

 On Sep 24, 1:42 am, Jeff S [EMAIL PROTECTED] wrote:

  Hi Murali,

  Your code should work if you are signed in to your app. Beginning in
  1.2.1, the gdata-python-client library stores auth tokens in the
  datastore, but only does so if they can be associated with the current
  user. In most cases, you wouldn't want every user to be using the same
  authtoken, so the library will notstoreatokenif it doesn't know
  who it belongs to. It looks like you want every user to use the 
  sametokenhere, so you can either sign in to your app, or use an in memory
  token_store by adding:

      gdataService = gdata.blogger.service.BloggerService()
      gdata.alt.appengine.run_on_appengine(gdataService)
      gdataService.token_store = atom.token_store.TokenStore()

  Happy coding,

  Jeff

  On Sep 21, 7:24 pm, Murali [EMAIL PROTECTED] wrote:

   Hi All,

   I am trying to access GData Blogger API on App Engine.
   Though ProgrammaticLogin() was successful, subsequent GetBlogFeed()
   fails throwing the following error:

    File C:\xxx\src\gdata\blogger\service.py, line 40, in GetBlogFeed
       return self.Get(uri, converter=gdata.blogger.BlogFeedFromString)
     File C:\xxx\src\gdata\service.py, line 703, in Get
       'reason': server_response.reason, 'body': result_body}
   RequestError: {'status': 401, 'body': 'Must authenticate to use
   #39;default#39; user', 'reason': ''}

   I am using gdata-py 1.2.1 and latest version of app engine sdk on
   Windows Vista.
   I have verified the email/password on blogger and everything works
   fine. Even the ProgrammaticLogin() call was successful.

   Here is the source code snippet:
   ---
       gdataService = gdata.blogger.service.BloggerService()
       gdata.alt.appengine.run_on_appengine(gdataService)

       gdataService.email = 'email'
       gdataService.password = 'password'
       gdataService.source = 'SA01-PApp-1.0'
       gdataService.service = 'blogger'
       gdataService.account_type = 'GOOGLE'
       gdataService.server = 'www.blogger.com'
       gdataService.ProgrammaticLogin()

       feed = gdataService.GetBlogFeed()
   --
   Has anybody tried to use blogger API on App engine and experience
   similar problems?
   Any help or pointers would be greatly appreciated.

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



[google-appengine] Re: Still having trouble with high-cpu warnings for thumbnails.

2008-10-08 Thread yejun

The default cache setting is no-cache, the browser will revalidate the
same image ever time the image being displayed.
You may try to set this explicitly to a week.
self.response.headers['Cache-Control'] = 'public, max-age=63'

On Sep 24, 10:59 pm, iceanfire [EMAIL PROTECTED] wrote:
 I'm still having trouble with high-cpu warnings for thumbnails. This
 time around I took some profiler data to see what's causing it. But
 before I get into that here is the model i'm using:

 class ImageThumb(db.Model):
   binId = db.IntegerProperty()
   thumb = db.BlobProperty(default=None)
   building = db.ReferenceProperty(Buildings)
   apartment = db.ReferenceProperty(Apartments)
   mime = db.StringProperty()
   type = db.StringProperty(choices=['Floor Plan','Picture'])
   created_by =  db.UserProperty()

 So here's the Profiler cpu data:
 2538 function calls (2472 primitive calls) in 0.028 CPU seconds (rest
 of the data:http://docs.google.com/Doc?id=dgfxff5_30hc9tjsgg)

 But here's the warning: This request used a high amount of CPU, and
 was roughly 1.3 times over the average request CPU limit. High CPU
 requests have a small quota, and if you exceed this quota, your app
 will be temporarily disabled.

 Here's the megacycle info from the new Admin console: 1339mcycles 7kb

 Here's the code that pulls up the data for thumbnails:
 class Apt_thumb (webapp.RequestHandler):
     def get(self,id):
                 image = ImageThumb.get_by_id(int(id))
                 if image:
                         self.response.headers['Content-Type'] = 
 str(image.mime)
                         self.response.out.write(image.thumb)
                 else:
                         self.error(404)

 The images stored are 4kb each in the datastore. As I said, I had this
 problem earlier, so I had taken out the full image and put that in its
 own Model. Clearly that didn't help.

 Any idea what's causing this high-cpu error  how I can fix it?

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] 'module' object has no attribute 'getaddrinfo'

2008-10-08 Thread pragmaticobjects

I know that is another post with the same subject, but that one was
still not helping me.  So can I start a new thread of discussion.

In my handler, I have the following couple of lines:

client = gdata.contacts.service.ContactsService()
feeds = client.GetContactsFeed()

and the following imports:

import wsgiref.handlers
import gdata.service

import gdata.urlfetch
# Use urlfetch instead of httplib
gdata.service.http_request_handler = gdata.urlfetch

import gdata.contacts
import gdata.contacts.service

from google.appengine.ext import webapp
from google.appengine.ext.webapp import template

but I am still getting the following errors:

Traceback (most recent call last):
  File /home/user/Data/Dev/google_appengine/google/appengine/ext/
webapp/__init__.py, line 496, in __call__
handler.get(*groups)
  File /home/user/Data/Dev/google_appengine/workspace/vnmail/view/my/
handler.py, line 43, in get
feeds = client.GetContactsFeed()
  File /usr/lib/python2.5/site-packages/gdata/contacts/service.py,
line 58, in GetContactsFeed
return self.Get(uri,
converter=gdata.contacts.ContactsFeedFromString)
  File /usr/lib/python2.5/site-packages/gdata/service.py, line 665,
in Get
headers=extra_headers)
  File /usr/lib/python2.5/site-packages/atom/service.py, line 163,
in request
data=data, headers=all_headers)
  File /usr/lib/python2.5/site-packages/atom/http_interface.py, line
148, in perform_request
return http_client.request(operation, url, data=data,
headers=headers)
  File /usr/lib/python2.5/site-packages/atom/http.py, line 117, in
request
connection.endheaders()
  File /usr/lib/python2.5/httplib.py, line 860, in endheaders
self._send_output()
  File /usr/lib/python2.5/httplib.py, line 732, in _send_output
self.send(msg)
  File /usr/lib/python2.5/httplib.py, line 699, in send
self.connect()
  File /usr/lib/python2.5/httplib.py, line 666, in connect
for res in socket.getaddrinfo(self.host, self.port, 0,
AttributeError: 'module' object has no attribute 'getaddrinfo'


Line 43 in .../my/handler.py is the line that says feeds =
client.GetContactsFeed()

I also saw the post http://code.google.com/p/hello-youtube/wiki/Codelab,
and /atom and /gdata in my application directory.  What am I doing
wrong?  It looks like httplib.py still is still the one in effect.
Please help.  Thanks

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



[google-appengine] Re: Memcache not working?

2008-10-08 Thread Marzia Niccolai
More or less as written this code is working for me on App Engine and the
SDK, so I don't know what is happening with your app specifically.

Are you setting the non default timeout for this page?  Could you provide
the relevant code as it is currently running on App Engine?

Thanks,
Marzia

On Wed, Oct 8, 2008 at 7:46 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote:


 Sorry I forgot a return

 The example of use is:

  def get_items(self):
 return model.Item.all().order('-creation_date').fetch(10)

 I copied the wrong thing because I'm also trying to cache chunks of
 HTML

def get_items(self):
items = model.Item.all().fetch(10)
return self.render_chunk('templates/index-items.html',
 {'items':
 items})

 On Oct 8, 4:41 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  I have this funcion to cache things:
 
  def cache(self, key, function, timeout=0):
  logging.debug('looking for %s in the cache' % key)
  data = memcache.get(key)
  if data is not None:
  logging.debug('%s is already in the cache' % key)
  return data
  else:
  data = function.__call__()
  logging.debug('inserting %s in the cache' % key)
  memcache.add(key, data, timeout)
  return data
 
  An example of use:
 
  items = self.cache('index_items', self.get_items)
 
  def get_items(self):
  items =
 model.Item.all().order('-creation_date').fetch(10)
 
  With the SDK it works. But when uploading the application I just see
  messages saying that nothing is in the cache. I never see xxx is
  already in the cache.
 
  I have cached all the queries in my main page because it is 6000
  megacycles of average CPU. But if the caching is not working I don't
  know what I can do. I have also tried to cache chunks of HTML, but it
  still doesn't cache anything. In the SDK I go to the memcache viewer
  and I see the chunk of HTML cached if I put the key I use to store it
  in the cache.
 
  The debug messages says me that is not finding anything in the cache.
  And also the chunks of HTML write a tiemstamp and in the development
  environment (localhost) I see always the same timestamp until I call
  to memecache.delete but on the appspot page I always see a different
  timestamp so I'm sure it is caching nothing.
 


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



[google-appengine] Cannot use Google Apps for Domains accounts with Google App Engine

2008-10-08 Thread cm_gui

Hi All

Can Google App Engine use Google Apps for Domains user accounts?
I tried and it doesn't seem to be possible.

Is there anyway for Google App Engine to get the name of the logged-in
user (of a Google Apps for Domains) ?

We want to create forms in our Google Apps Sites for user to submit
information (plus upload file to the form).
The Google Documents Forms is not suitable for our use because the
email notification does not indicate who the form submitter is.   The
email also does not contain the form data.

How can we create a normal html form on Sites which will get emailed
to a group of recipients upon submission.   And with File uploads.
The email notification should contain the form data and links to the
uploaded files.

Is Google Apps API the suitable tool for this?
Or Google Apps Engine ?(probably not)
Or it cannot be done at all?

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should each developer really have to pack his libs with his app?

2008-10-08 Thread lookon

agree

On Oct 2, 12:44 am, Terrence Brannon [EMAIL PROTECTED] wrote:
 It seems monolithic and redundant to not have a way to install certain
 python libraries, hell why not all of pypi!

 But really, the place for libraries is not my application directory.

 If we can get a sandbox shell to install things in alibraryplace,
 that is much better than expecting us to have it with our app code.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Help: I want to have an app engine space!!

2008-10-08 Thread fedekun
Im from argentina i had the same problem, just fill this form
http://appengine.google.com/waitlist/sms_issues

2008/10/8 ajaxer [EMAIL PROTECTED]


 I am from china,
 but the mobile number I entered didn't work for me
 can google manually handler this problem for me?

 chinese developers are eagerly for tasting google app engine.

 but we still have difficulties in using it.

 hope you can help us!!
 thanks.

 



-- 
Best Regards.
fedekun

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



[google-appengine] Re: Help: I want to have an app engine space!!

2008-10-08 Thread wenxin ren
thanks a lot.
for my poor english, would you please make me clear about the carrier name?
what does this mean? does carrier means the companies like AT  T? which
operating on the wireless network for the mobile phone?

2008/10/9 fedekun [EMAIL PROTECTED]

 Im from argentina i had the same problem, just fill this form
 http://appengine.google.com/waitlist/sms_issues

 2008/10/8 ajaxer [EMAIL PROTECTED]


 I am from china,
 but the mobile number I entered didn't work for me
 can google manually handler this problem for me?

 chinese developers are eagerly for tasting google app engine.

 but we still have difficulties in using it.

 hope you can help us!!
 thanks.





 --
 Best Regards.
 fedekun

 


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



[google-appengine] Re: Help: I want to have an app engine space!!

2008-10-08 Thread Kang





不可以用么?GAE要手机验证?

我是测试时就可以用了的,也在中国

wenxin ren 写道:

  thanks a lot.
for my poor english, would you please make me clear about the carrier
name?
what does this mean? does carrier means the companies like AT  T?
which operating on the wireless network for the mobile phone?
  
  2008/10/9 fedekun [EMAIL PROTECTED]
  
Im from argentina i had the same problem, just fill
this form 
http://appengine.google.com/waitlist/sms_issues

2008/10/8 ajaxer [EMAIL PROTECTED]


I am from china,
but the mobile number I entered didn't work for me
can google manually handler this problem for me?
  
chinese developers are eagerly for tasting google app engine.
  
but we still have difficulties in using it.
  
hope you can help us!!
thanks.
  
  






-- 
Best Regards.
fedekun






  
  
  
  
  
  



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





[google-appengine] Re: Help: I want to have an app engine space!!

2008-10-08 Thread wenxin ren
是啊。现在注册不了了。

2008/10/9 Kang [EMAIL PROTECTED]

  不可以用么?GAE要手机验证?

 我是测试时就可以用了的,也在中国

 wenxin ren 写道:

 thanks a lot.
 for my poor english, would you please make me clear about the carrier name?
 what does this mean? does carrier means the companies like AT  T? which
 operating on the wireless network for the mobile phone?

 2008/10/9 fedekun [EMAIL PROTECTED]

 Im from argentina i had the same problem, just fill this form
 http://appengine.google.com/waitlist/sms_issues

 2008/10/8 ajaxer [EMAIL PROTECTED]


 I am from china,
 but the mobile number I entered didn't work for me
 can google manually handler this problem for me?

 chinese developers are eagerly for tasting google app engine.

 but we still have difficulties in using it.

 hope you can help us!!
 thanks.





 --
 Best Regards.
 fedekun







 


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



[google-appengine] Re: Help: I want to have an app engine space!!

2008-10-08 Thread Kang
具体怎么说?


wenxin ren 写道:
 是啊。现在注册不了了。

 2008/10/9 Kang [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 不可以用么?GAE要手机验证?

 我是测试时就可以用了的,也在中国

 wenxin ren 写道:
 thanks a lot.
 for my poor english, would you please make me clear about the
 carrier name?
 what does this mean? does carrier means the companies like AT 
 T? which operating on the wireless network for the mobile phone?

 2008/10/9 fedekun [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]

 Im from argentina i had the same problem, just fill this form
 http://appengine.google.com/waitlist/sms_issues

 2008/10/8 ajaxer [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]


 I am from china,
 but the mobile number I entered didn't work for me
 can google manually handler this problem for me?

 chinese developers are eagerly for tasting google app engine.

 but we still have difficulties in using it.

 hope you can help us!!
 thanks.





 -- 
 Best Regards.
 fedekun










 


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



[google-appengine] How to use timeutil module in GAE?

2008-10-08 Thread Kang

I cannot import that module in GAE. Wish your help.

p.s. I cannot import epsilon module either...

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



[google-appengine] Re: Help: I want to have an app engine space!!

2008-10-08 Thread wenxin ren
具体就是注册时让你输入号码
没有通过前什么都做不了

2008/10/9 Kang [EMAIL PROTECTED]

  具体怎么说?


 wenxin ren 写道:

 是啊。现在注册不了了。

 2008/10/9 Kang [EMAIL PROTECTED]

 不可以用么?GAE要手机验证?

 我是测试时就可以用了的,也在中国

 wenxin ren 写道:

 thanks a lot.
 for my poor english, would you please make me clear about the carrier
 name?
 what does this mean? does carrier means the companies like AT  T? which
 operating on the wireless network for the mobile phone?

 2008/10/9 fedekun [EMAIL PROTECTED]

 Im from argentina i had the same problem, just fill this form
 http://appengine.google.com/waitlist/sms_issues

 2008/10/8 ajaxer [EMAIL PROTECTED]


 I am from china,
 but the mobile number I entered didn't work for me
 can google manually handler this problem for me?

 chinese developers are eagerly for tasting google app engine.

 but we still have difficulties in using it.

 hope you can help us!!
 thanks.





 --
 Best Regards.
 fedekun













 


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



[google-appengine] How to change Authentication Options after application has been uploaded

2008-10-08 Thread cm_gui

Hi all

During the uploading, I forgot to restrict authentication to my Google
Apps domain.
After uploading, I went to Application Settings, but it seems that
there is no way
to edit the Authentication Options anymore.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to change Authentication Options after application has been uploaded

2008-10-08 Thread pr3d4t0r

On Oct 8, 9:14 pm, cm_gui [EMAIL PROTECTED] wrote:
 During the uploading, I forgot to restrict authentication to my Google
 Apps domain.
 After uploading, I went to Application Settings, but it seems that
 there is no way
 to edit the Authentication Options anymore.

Unfortunately there is no way of doing that at this time.  Some
discussions have hinted that it may change in the future, but this is
it for now.

Cheers,

pr3d4t0r
http://www.istheserverup.com
http://www.teslatestament.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Help: I want to have an app engine space!!

2008-10-08 Thread wenxin ren
改天换个联通的号试一下

2008/10/9 Damien Hou [EMAIL PROTECTED]

 中国只支持联通手机号码的,我试过可以

 2008/10/9 wenxin ren [EMAIL PROTECTED]

 具体就是注册时让你输入号码
 没有通过前什么都做不了


 2008/10/9 Kang [EMAIL PROTECTED]

  具体怎么说?


 wenxin ren 写道:

 是啊。现在注册不了了。

 2008/10/9 Kang [EMAIL PROTECTED]

 不可以用么?GAE要手机验证?

 我是测试时就可以用了的,也在中国

 wenxin ren 写道:

 thanks a lot.
 for my poor english, would you please make me clear about the carrier
 name?
 what does this mean? does carrier means the companies like AT  T? which
 operating on the wireless network for the mobile phone?

 2008/10/9 fedekun [EMAIL PROTECTED]

 Im from argentina i had the same problem, just fill this form
 http://appengine.google.com/waitlist/sms_issues

 2008/10/8 ajaxer [EMAIL PROTECTED]


 I am from china,
 but the mobile number I entered didn't work for me
 can google manually handler this problem for me?

 chinese developers are eagerly for tasting google app engine.

 but we still have difficulties in using it.

 hope you can help us!!
 thanks.





 --
 Best Regards.
 fedekun




















 --
 Best Regards,
 Damien

 


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



[google-appengine] Re: unique identifier for server process

2008-10-08 Thread pr3d4t0r

On Oct 8, 6:03 pm, Josh Heitzman [EMAIL PROTECTED] wrote:
 As os.getpid is not supported by GAE, is there another API that
 provides a unique (preferably across all of GAE) identifier for the
 process?  I'd like to use this to identify if an incomplete update
 sequence (spanning entity groups, so no it can't be done in a
 transaction) was left hanging by the current process or another, as if
 it was the current it can be immediately restarted, where as if it is
 another, it'll have to wait a time period before continuing the
 sequence.

Because of the distributed nature of App Engine, about the only way
you have of ensuring that something committed/finished to completion
is to use transactions and entities.  You could create an entity group
that tracks your process(es) state and updates it as various stages
are completed.  Remember that there is no guarantee that your process
will run on any given machine across subsequent calls.

Cheers,

pr3d4t0r
http://www.istheserverup.com
http://www.teslatestament.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] In AppEngine, gdata.py-1.2.1 (latest as of 10-8-08) is broken and gdata.service.http_request_handler = gdata.urlfetch won't help

2008-10-08 Thread pragmaticobjects

Jeff Scudder blogged about making Contacts API work with AppEngine
here ( 
http://googledataapis.blogspot.com/2008/04/release-hounds-support-for-app-engine.html
), but gdata.py-1.2.1 is broken in AppEngine 1.1.5 (both are latest as
of 10-08-08).  The error is 'module' object has no attribute 'socket',
which already was posted on another Google Group here (
http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/d8ee7ea2e3d873f2?pli=1
).

You can write a simple app using gdata.py-1.2.1 and AppEngine 1.1.5,
get it working  and tell me that I'm crazy, and I'll be glad to hear
that, but I spent the whole day and still didn't see it working.

Anyway, for now I fixed by still using the latest gdata.py.1.2.1,
copy /atom and /gdata to the application folder, but I replace all
the .py files with the same ones from one of the sample from
http://code.google.com/p/hello-youtube/downloads/list#.  I know that's
scary and crazy, but that seems to work for now.  It's better than the
alternatives which is either doing nothing, or using one of the older
gdata.py versions (don't know which one to select) or simply wait.

Hope someone from either team at Google see this post, verify the
problem, and fix it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---