[google-appengine] Encrypt data and decrypted in appengine

2009-06-16 Thread timo

I want to send encrypted data to my appengine and never did anything
similar. Also I am more of a programming beginner.

The encryption should take place from a Java client. This data I send
to the appengine where it should be decrypted and then used to answer
the request. It can be a very 'light' encryption, so rather quick then
hard to break.

Can somebody perhaps provide me with two code snippets to do such a
task on the Java and Python side?

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



[google-appengine] Appengine timeout..?

2009-06-16 Thread astrid.thuec...@googlemail.com

In general - how much data can I send in an request to the appengine
and be sure it won't time out? Is the amount different between a GET
and POST request?

Another thing is, that I would like to create an iframe and send some
data in the src-URL string:

http://myappspot.appspot.com?somdata=abcdefg"; ... >

I fear that in special cases there might be many iframes of this type
on a users site and the src-String could be really really long. Does
this mean it would time out? Does it make a difference if there are
many iframes on a single page, since a users connection will try to
load all at once, connection speed is split by the number iframes.
isn't it? Does this increase the danger of running into timeouts?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: bcrypt on google app engine

2009-06-16 Thread gae123

Mike,

this is great news and thanks for the clarification.

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



[google-appengine] Re: How is an entity key generated?

2009-06-16 Thread gae123

Nick,

can we consider what you write below to be part of the API or an
internal implementation detail we whould not be relying on?

Thanks

> In the case of 'stringified' keys, what you are seeing is the base64
> encoding of the protocol buffer containing the key. You can verify this by
> going to shell.appspot.com and entering:
>
> ---
> from google.appengine.ext import db
> db.Key(mystr)
> ---

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



[google-appengine] Unable to create a new application

2009-06-16 Thread glenn

My account says I have 10 applications remaining. But when I try to
create a new application, entering my mobile phone number, country and
carrier, I get the following error:

The phone number has been sent too many messages or has already been
used to confirm an account.

Anyone know what's going on and how to get past this?


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



[google-appengine] remote_api ->ImportError: No module named models

2009-06-16 Thread johnfromCalgary

It seems like variations of this question has been asked a few times,
but I can't get tell which of the answers are out of date, in any
case, none of the solutions work.

I've followed this verbatim:http://code.google.com/appengine/docs/
python/tools/uploadingdata.html

and get the error: "ImportError: No module named models"

Let many java users, I'm only using this to get data into the data
store; I've spent more time on this than everything else combined...
and so my python knowledge is zilch.

I seems like I need to add the current directory to the python_path or
something, but I'm not sure how to do that, and it's only a guess.

I'm on Windows Vista.

Any guidance would be appreciated.

Thanks,
John

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



[google-appengine] Re: Key Only Queries with Java

2009-06-16 Thread Nick

Jeff,

Thanks for the quick reply.

I found it, I had downloaded the new SDK, but had not enabled it in
the build path.

Thanks again.
Nick

On Jun 16, 4:12 pm, "Jeff S (Google)"  wrote:
> Hi Nick,
>
> The Javadocs need to  be updated, but the method is available in SDK 1.2.1
> and later. Eclipse's tool tip reports:
>
> public Query setKeysOnly()
>   Makes this query fetch and return only keys, not full entities.
>   Returns:
>     this (for chaining)
>
> Happy coding,
>
> Jeff
>
> On Tue, Jun 16, 2009 at 3:56 PM, Nick  wrote:
>
> > Hi Jeff,
>
> > I wasn't using the low level API, but now that I'm looking, I can't
> > seem find the option you are talking about:
>
> >http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
>
> > I'm probably missing something here, but could you point me to the
> > documentation or supply a code sample by any chance?
>
> > Thanks,
> > Nick
>
> > On Jun 16, 1:17 pm, "Jeff S (Google)"  wrote:
> > > Hi Nick,
>
> > > The Java API does have a setKeysOnly() method on the low level Query
> > class
> > > which will allow you to fetch just the keys. Are you using the lower
> > level
> > > API? In a future release the JDO/JPA layer will make use of this
> > > method for queries
> > > that only request the key property.
>
> > > Happy coding,
>
> > > Jeff
>
> > > On Sun, Jun 14, 2009 at 12:30 PM, Nick  wrote:
>
> > > > Hi Guys,
>
> > > > I realize that key only queries are now supported with the Python SDK,
> > > > but I can't seem to find this support for Java.  Can this be done with
> > > > the Java API and if so, can you point me toward the documentation for
> > > > this?
>
> > > > If not, will this be supported for Java soon?  This is a nice feature
> > > > and could significantly improve performance in my application.
>
> > > > Thanks,
> > > > Nick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Key Only Queries with Java

2009-06-16 Thread Jeff S (Google)
Hi Nick,

The Javadocs need to  be updated, but the method is available in SDK 1.2.1
and later. Eclipse's tool tip reports:

public Query setKeysOnly()
  Makes this query fetch and return only keys, not full entities.
  Returns:
this (for chaining)

Happy coding,

Jeff

On Tue, Jun 16, 2009 at 3:56 PM, Nick  wrote:

>
> Hi Jeff,
>
> I wasn't using the low level API, but now that I'm looking, I can't
> seem find the option you are talking about:
>
>
> http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html
>
> I'm probably missing something here, but could you point me to the
> documentation or supply a code sample by any chance?
>
> Thanks,
> Nick
>
>
> On Jun 16, 1:17 pm, "Jeff S (Google)"  wrote:
> > Hi Nick,
> >
> > The Java API does have a setKeysOnly() method on the low level Query
> class
> > which will allow you to fetch just the keys. Are you using the lower
> level
> > API? In a future release the JDO/JPA layer will make use of this
> > method for queries
> > that only request the key property.
> >
> > Happy coding,
> >
> > Jeff
> >
> > On Sun, Jun 14, 2009 at 12:30 PM, Nick  wrote:
> >
> > > Hi Guys,
> >
> > > I realize that key only queries are now supported with the Python SDK,
> > > but I can't seem to find this support for Java.  Can this be done with
> > > the Java API and if so, can you point me toward the documentation for
> > > this?
> >
> > > If not, will this be supported for Java soon?  This is a nice feature
> > > and could significantly improve performance in my application.
> >
> > > Thanks,
> > > Nick
> >
>

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



[google-appengine] Re: my jquery post isn't working after deployment.

2009-06-16 Thread ofey

the request seems to be fine, "/gettags" is  being called with no
errors, I guess my problem is the jquery callback isn't firing up.

function (data ,textStatus){element.innerHTML = data; }

Prior to this jquery request was  "/puttags"  to write tags,
consecutively the requests are "puttags" then immediately request
"gettags" to read what was just written, i wonder if this would have
an effect on the jquery callback on the production server?

On Jun 16, 9:53 pm, "Nick Johnson (Google)" 
wrote:
> Hi loell,
>
> On Tue, Jun 16, 2009 at 8:00 AM, loell  wrote:
>
> > $.post("/gettags",{ppa_name: '{{ppaname}}' }, function
> > (data ,textStatus){element.innerHTML = data; } )
>
> We need more details in order to help you with this. Have you checked the
> request logs in your admin console, to see what happens when this request is
> made?
>
> -Nick Johnson
>
>
>
> > I'm puzzled why this piece code is properly working on localhost, but
> > when  deployment it won't.
>
> > does jquery's "post" method works for you? or are there any caveats
> > that i should know?
>
> --
> Nick Johnson, App Engine Developer Programs Engineer
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Key Only Queries with Java

2009-06-16 Thread Nick

Hi Jeff,

I wasn't using the low level API, but now that I'm looking, I can't
seem find the option you are talking about:

http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html

I'm probably missing something here, but could you point me to the
documentation or supply a code sample by any chance?

Thanks,
Nick


On Jun 16, 1:17 pm, "Jeff S (Google)"  wrote:
> Hi Nick,
>
> The Java API does have a setKeysOnly() method on the low level Query class
> which will allow you to fetch just the keys. Are you using the lower level
> API? In a future release the JDO/JPA layer will make use of this
> method for queries
> that only request the key property.
>
> Happy coding,
>
> Jeff
>
> On Sun, Jun 14, 2009 at 12:30 PM, Nick  wrote:
>
> > Hi Guys,
>
> > I realize that key only queries are now supported with the Python SDK,
> > but I can't seem to find this support for Java.  Can this be done with
> > the Java API and if so, can you point me toward the documentation for
> > this?
>
> > If not, will this be supported for Java soon?  This is a nice feature
> > and could significantly improve performance in my application.
>
> > Thanks,
> > Nick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: app-engine-patch 1.0.2 released

2009-06-16 Thread 'Αλκης Ευλογημένος
Aren't these good
enough?

On Tue, Jun 16, 2009 at 10:39 PM, Tibor Piri  wrote:

>
> Hi,
> I am really happy about this patch, but some installation instructions
> would be very welcome!
> Bye,
> Tibor
>
> On Jun 16, 3:57 pm, Waldemar Kornewald  wrote:
> > Hi,
> > we've released app-engine-patch 1.0.2 (Django 1.0.2) which comes with
> > interesting new features:
> > * jQuery and BlueprintCSS integration to demonstrate the media generator
> > * remote access via remoteapi (including support for manage.py syncdb)
> > * an important bugfix for strange exceptions after a
> DeadlineExceededError
> >
> > Download it here:http://code.google.com/p/app-engine-patch/
> >
> > The repository version (see "Source" tab) has the same features, but
> > uses Django 1.1beta1.
> >
> > We also have a "powered by app-engine-patch" logo which you can place
> > on your website:
> http://app-engine-patch.googlecode.com/files/powered-by-app-engine-pa...
> >
> > The logo is a donation from Giftag (note, they use "assisted by"
> > instead of "powered by", but you can use their aep logo, too) and the
> > remoteapi integration was implemented together with Thomas Bohmbach
> > from Best Buy / Giftag (http://www.giftag.com/). Thanks a lot!
> >
> > Bye,
> > Waldemar Kornewald
> >
>


-- 

Alkis

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



[google-appengine] Re: app-engine-patch 1.0.2 released

2009-06-16 Thread Tibor Piri

Hi,
I am really happy about this patch, but some installation instructions
would be very welcome!
Bye,
Tibor

On Jun 16, 3:57 pm, Waldemar Kornewald  wrote:
> Hi,
> we've released app-engine-patch 1.0.2 (Django 1.0.2) which comes with
> interesting new features:
> * jQuery and BlueprintCSS integration to demonstrate the media generator
> * remote access via remoteapi (including support for manage.py syncdb)
> * an important bugfix for strange exceptions after a DeadlineExceededError
>
> Download it here:http://code.google.com/p/app-engine-patch/
>
> The repository version (see "Source" tab) has the same features, but
> uses Django 1.1beta1.
>
> We also have a "powered by app-engine-patch" logo which you can place
> on your 
> website:http://app-engine-patch.googlecode.com/files/powered-by-app-engine-pa...
>
> The logo is a donation from Giftag (note, they use "assisted by"
> instead of "powered by", but you can use their aep logo, too) and the
> remoteapi integration was implemented together with Thomas Bohmbach
> from Best Buy / Giftag (http://www.giftag.com/). Thanks a lot!
>
> Bye,
> Waldemar Kornewald
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: why there is no way to build a key id?

2009-06-16 Thread Jeff S (Google)

The datastore does not allow key_names which begin with a digit in
order to avoid confusion with an ID, which is numerical. If you want
to use numeric key names, you could add a one letter prefix :-)

Happy coding,

Jeff

On Jun 16, 1:17 am, cryb  wrote:
> Hi Jeff.
> Thanks for your reply.. I really hope that in the near future
> appengine will support setting key ids for entities.
> You mentioned that I can use hooks in order to achieve my goal..
> However I was more interested in a solution based on appengine java
> sdk, and not on python hooks. Does appengine java sdk provide hooks or
> some other similar mechanism?
> It seems that for the moment I'll stick to generating key names.
> One more question: I've tried to generate some entities with key names
> on my local devappserver and I got a strange exception stating that I
> can't create key names that start with a digit (?!?)... this holds on
> google appengine production servers too or it's just a "bug" of
> devappserver?
>
> Thanks
>
> On Jun 16, 2:45 am, "Jeff S (Google)"  wrote:
>
> > Hi cryb,
>
> > As you noted, we do not currently allow the ID for a key to be set, as we
> > ensure that the ID is unique for each existing entity. I recommend using a
> > key name instead of an ID, as Antoniov suggeted, if possible.
>
> > It is technically possible to modify the key of an entity as it is being
> > converted to a protocol buffer message before it is sent to the datastore.
> > You could do this using hooks in the API proxy as described in this 
> > article:http://code.google.com/appengine/articles/hooks.htmlAlsoit is 
> > possible to
> > construct the key for the desired object if you know the ID in advance.
>
> > class X(db.Model):
> >   pass
>
> > # If you've already created the entity so you have the ID.
> > x_id = X().put().id()
>
> > # Instead of getting by ID, you can create the key manually.
> > k = db.Key.from_path('X', x_id)
>
> > Now you have the desired key without having fetched the object, but the part
> > which the model class does not allow is setting the key yourself. So you
> > could modify the protocol buffer message before it is written to the
> > datastore, but I don't recommend it.
>
> > The decision to allow setting key_names but not IDs is something we may
> > revisit.
>
> > Happy coding,
>
> > Jeff
>
> > 2009/6/12 cryb 
>
> > > Hi.. that is to build key names... What I asked was why I can't build
> > > a key ID..
>
> > > On Jun 12, 5:35 am, Antoniov  wrote:
> > > > Use the code:
> > > > s = Story(key_name="xzy123")
> > > > Then you create an entity with the key name "xzy123".
>
> > > > Check this:
> > >http://code.google.com/intl/en-US/appengine/docs/python/datastore/key...
>
> > > > On 6月12日, 上午1时28分, cryb  wrote:
>
> > > > > Does anyone know why it is possible to build a key name but NOT a key
> > > > > id? I know key IDs are used as autoincrements, but why can't I just
> > > > > override this mechanism and build my own key id?
> > > > > Suppose I want to overwrite an existent entry in my table that has a
> > > > > key id I know, and also I want to keep that key id after update...
> > > > > because I can't just build a key id, I am forced to fetch that entity,
> > > > > modify it and write it back, instead of just write the updated entity
> > > > > with the key id I already know - so an additional read to the
> > > > > datastore.
> > > > > Is there an obscure reason for that? (both key names and key ids are
> > > > > prefixed with appid/kind as far as I know so there is no chance of
> > > > > collision with other apps/kinds)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Hypothetical DB Design Question

2009-06-16 Thread Jeff S (Google)
Hi Tony,

I thought of a few ideas that you could use in this type of situation. I'm
not saying this is the best/most efficient design, but it illustrates a
different approach than you may be used to. The general guidelines I'm using
are to do more work at write time and less at read time and take advantage
of list properties for queries (you could also look at back-reference
collections).

a.) which users had tickets to a particular auction

class AuctionUser(Model):
  username = StringProperty(...)
  aunctions_entered = ListProperty(...)

Select * from AuctionUser where aunctions_entered = current_auction

b.) how many tickets (of each type) they had for the auction.

I assumed you meant, for each user, how many free vs purchased did they
have.

class UserTickets(Model):
  user_level = IntegerProperty(...)
  auction_name = StringProperty(...)
  free_tickets = IntegerProperty(...)
  purchased_tickets = IntegerProperty(...)

Or you might have meant for each auction, how many total tickets, free,
purchased were given out. For the per auction counts I would use a sharded
counter (or just a simple counter if the writes will not be coming in too
quickly).

c) update all those (possible more than 1000) users to reflect the refund.

Rather than refund all users after the raffle is over, why not precompute a
discount assuming that the refund will apply. If only the winner doesn't
receive the refund, then you could take away their refund when they win, so
only one user will need to have their cost modified.

d) I'm assuming that you want to be able to find the user with the winning
ticket and that a user has a limited number of tickets they hold.

class UserTickets(Model):
  username = StringProperty(...)
  tickets = ListProperty(...)

To find the winner
Select * from UserTickets where tickets = winning_ticket

Again, these are just suggestions and they rely on quite a few assumptions
about what you are trying to do. Rather than give specific design advice,
I'm trying to illustrate some different ways of thinking about the problem.

Thank you,

Jeff

On Sat, Jun 13, 2009 at 4:28 AM, Tony  wrote:

>
> Here's a generic example of one of my use cases - I'm curious if
> anyone has any ideas I haven't thought of...
>
> Let's say I have an app where users can buy tickets to a raffle (I'm
> not really creating a gambling app, this is just an example).  There
> are two types of tickets - purchased tickets and free tickets (given
> away as promotions).  There may be more than 1000 users with tickets
> to a particular raffle, but each user is unlikely to have more than
> 1000 tickets to a particular raffle.  When a raffle ends, a winning
> ticket is selected from the tickets for that raffle...but here's the
> hard part:  I would like to be able to refund, based on some logic,
> some or all of each user's purchased tickets for that raffle if they
> don't win.  For example:  User A has 10 purchased tickets and 10 free
> tickets for a raffle.  He has 5 tickets remaining on his account.  He
> doesn't win the raffle.  Because his User.level == 2, he gets refunded
> 10 tickets.  User B has the same situation, but has User.level == 3.
> He gets refunded all his free tickets plus 50% of his purchased
> tickets.
>
> Here's my current setup:
>
> Class User (db.Model):
>  level = db.IntegerProperty
>  paidtickets = db.IntegerProperty
>  freetickets = db.IntegerProperty
>
> Class Ticket (db.Model):
>  user = db.ReferenceProperty
>  type = db.BooleanProperty (true=paid, false=free)
>  (parent = Raffle)
>
> Class Raffle (db.Model)
>  expires = db.DateTimeProperty
>  winner = db.ReferenceProperty
>
> My problem is I need to be able to determine: a.) which users had
> tickets to a particular auction, b.) how many tickets (of each type)
> they had for the auction.  Then I need to update all those (possible
> more than 1000) users to reflect the refund.  What is the best way to
> do this without maxing out datastore cpu and query limits?
> ListProperties updated every time a ticket is added?  How do I get
> around the 1000-entity limit?
> >
>

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



[google-appengine] Re: Key Only Queries with Java

2009-06-16 Thread Jeff S (Google)
Hi Nick,

The Java API does have a setKeysOnly() method on the low level Query class
which will allow you to fetch just the keys. Are you using the lower level
API? In a future release the JDO/JPA layer will make use of this
method for queries
that only request the key property.

Happy coding,

Jeff

On Sun, Jun 14, 2009 at 12:30 PM, Nick  wrote:

>
> Hi Guys,
>
> I realize that key only queries are now supported with the Python SDK,
> but I can't seem to find this support for Java.  Can this be done with
> the Java API and if so, can you point me toward the documentation for
> this?
>
> If not, will this be supported for Java soon?  This is a nice feature
> and could significantly improve performance in my application.
>
> Thanks,
> Nick
>
> >
>

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



[google-appengine] Re: Is there currently a problem deploying apps?

2009-06-16 Thread herbie

Problem solved.  Stupid noob error.  Between testing on the dev server
and uploading I managed to delete a vital line of code


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



[google-appengine] Re: Use of Main/Log

2009-06-16 Thread Barry Hunter

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

On 16/06/2009, NealWalters  wrote:
>
>  Can a developer write a message to the Main/Log file (to be viewed on
>  the Admin/Console).  Seems like this might be handy occasionally for
>  debugging.  Or is it better to create you own table and write there?
>
>  Thanks,
>  Neal Walters
>
>  >
>


-- 
Barry

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

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



[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-16 Thread bd_



On Jun 16, 3:15 pm, J Keller  wrote:
> Thank you Scott - that redirect trick worked great.
>
> After processing a subset of the data, I simply redirect back to my
> service.  Each time it caches more of the data, until the job is
> complete.  Sometimes this can cause the browser to give up and report
> an 'infinite redirect loop', but it usually works fine.  And even when
> the it does give up, if the user tries again it usually finishes the
> process fine.
>
> Thanks again!

It should be fairly straightforward to handle this polling in
Javascript, eliminating the infinite redirect loop and allowing for
the possibility of giving status readouts for the user :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: DeadlineExceededException - how to avoid?

2009-06-16 Thread J Keller

Thank you Scott - that redirect trick worked great.

After processing a subset of the data, I simply redirect back to my
service.  Each time it caches more of the data, until the job is
complete.  Sometimes this can cause the browser to give up and report
an 'infinite redirect loop', but it usually works fine.  And even when
the it does give up, if the user tries again it usually finishes the
process fine.

Thanks again!

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



[google-appengine] Use of Main/Log

2009-06-16 Thread NealWalters

Can a developer write a message to the Main/Log file (to be viewed on
the Admin/Console).  Seems like this might be handy occasionally for
debugging.  Or is it better to create you own table and write there?

Thanks,
Neal Walters

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



[google-appengine] Re: Server Error

2009-06-16 Thread NealWalters

Nick,
   I just discovered that there were "Main/Logs" and "Admin/Logs".
Yesterday, I was looking at the Admin/Logs.
So today, in the "Main/Logs" I see my error.

It is related to this:

import atom.url
returnURL = atom.url.Url('http', settings.HOST_NAME, path='/
customerLogin')

Then when I fixed that, was having problem with
import gdata... (3 different imports).

So lessons learned - do you agree?
1) ALWAYS up the version number in the app.yaml file so you can go
back to the prior version
2) Don't count on various imports being on the server.  Not sure how
you know until you try?  QUESTION: Any techniques here?
3) Google support from my premier Google apps did not respond within
24 hours

I strongly suggest Google change this message (which had a link to
Google support).

Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this
error message and the query that caused it.

The message could more clearly say:  "For the reason of this error,
please have your administrator check the "Main/Logs" from the
administrator console."   Seems like a more clear message would save
unnecessary support requests from newbies.


Thanks,
Neal Walters

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



[google-appengine] Re: Do repeated things in appengine..?

2009-06-16 Thread Adam

It's in the manual:
http://code.google.com/appengine/docs/python/config/cron.html

On Jun 16, 12:18 pm, "richardcur...@googlemail.com"
 wrote:
> I want to do some kind of automated (i.e. no triggered by anyone)
> administrative task every 1-2 hours. Can I somehow schedule that to
> automatically happen in appengine?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: No SMS in Ecuador?

2009-06-16 Thread Jeff S (Google)
Hi Jose,

If your provider is not listed as one which we currently accept, you can use
the form linked to in this FAQ to request access:

http://code.google.com/appengine/kb/sms.html#carrier
http://appengine.google.com/waitlist/sms_issues

Happy coding,

Jeff

On Sat, Jun 13, 2009 at 9:17 AM, Jose  wrote:

>
> Looks like there are no SMS providers supported in Ecuador, so I can't
> register. When might this become available? I'd specifically be
> interested in MoviStar http://www.movistar.com.ec/ .
>
>
> >
>

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



[google-appengine] Re: Debug log retention period

2009-06-16 Thread Jeff S (Google)
Hi David,

There is a fixed size of storage for logs, so the length of time that log
entries are available for an app depends on how much data is being logged.
Here is a related thread with a recommendation on how to keep a running log
on your own machine:

http://groups.google.com/group/google-appengine/browse_thread/thread/6d5d7d1a14a3321c

Thank you,

Jeff

On Sat, Jun 13, 2009 at 12:16 PM, David Wilson  wrote:

>
> Hi there,
>
> I seem to remember reading in the documentation that request logs are
> kept around for 90 days. Does literally apply only to request logs?
> Today on trying to determine what happened to a user, I received this
> message while trying to search the debug logs:
>
>   Last record searched: 06-12 11:33AM 56.977.
>
> I'd very much like to keep my debug logs around for at least 30 days
> (since this is the longest period over which a user account can remain
> idle before changing state on my service). Do I need to download the
> logs daily using appcfg to preserve them?
>
> Is the debug retention period really only 24 hours?
>
> Thanks,
>
>
> David
>
>
>
> --
> It is better to be wrong than to be vague.
>  — Freeman Dyson
>
> >
>

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



[google-appengine] OverQuotaErrors on Image Transforms

2009-06-16 Thread Federico Builes

I'm getting a bunch of OverQuotaError when doing resizes on images,
but when I check the quotas page I'm usually at 50-60/2592000. This
has been bothering us constantly for 2-3 days now, any ideas on what
might be wrong?

The full trace is:

The API call images.Transform() required more quota than is available.
Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 503, in __call__
handler.post(*groups)
  File "/base/data/home/apps/garota-social/15.334160378372986192/app/
controllers/candidate_photos.py", line 21, in post
candidate.set_album_photos(keys_for_album_photos)
  File "/base/data/home/apps/garota-social/15.334160378372986192/app/
helpers/candidate_helper.py", line 64, in set_album_photos
thumb = db.get(self.photos[-1]).create_thumb()
  File "/base/data/home/apps/garota-social/15.334160378372986192/app/
models/photo.py", line 19, in create_thumb
thumbnail = image.execute_transforms()
  File "/base/python_lib/versions/1/google/appengine/api/images/
__init__.py", line 490, in execute_transforms
response)
  File "/base/python_lib/versions/1/google/appengine/api/
apiproxy_stub_map.py", line 68, in MakeSyncCall
apiproxy.MakeSyncCall(service, call, request, response)
  File "/base/python_lib/versions/1/google/appengine/api/
apiproxy_stub_map.py", line 240, in MakeSyncCall
stub.MakeSyncCall(service, call, request, response)
  File "/base/python_lib/versions/1/google/appengine/runtime/
apiproxy.py", line 183, in MakeSyncCall
rpc.CheckSuccess()
  File "/base/python_lib/versions/1/google/appengine/api/
apiproxy_rpc.py", line 112, in CheckSuccess
raise self.exception
OverQuotaError: The API call images.Transform() required more quota
than is available.

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



[google-appengine] Re: Deep entity groups and long key strings

2009-06-16 Thread Jeff Enderwick

worked great, thanks!

On Mon, Jun 15, 2009 at 9:10 AM, Nick Johnson
(Google) wrote:
> On Mon, Jun 15, 2009 at 5:04 PM, Jeff Enderwick 
> wrote:
>>
>> Thanks Nick.
>>
>> If I go down the path of building ID-based URLs in the manner you
>> suggest, will I likely have substantially shorter URLs than I would
>> with str(node.key())?
>
> If you know the model types involved (and thus don't need to include them in
> the URL), then the URL will be a _lot_ shorter. If you need to include the
> type names as well, it'll still be shorter, just not as much. It'll also be
> a lot easier to read.
>
> The str(node.key()) representation is simply the Key Protocol Buffer, base64
> encoded, so it's guaranteed to be longer than parts of it, not encoded.
>
> -Nick Johnson
>
>>
>>
>> Thanks,
>> Jeff
>>
>> On Mon, Jun 15, 2009 at 4:44 AM, Nick Johnson
>> (Google) wrote:
>> > Hi Jeff,
>> >
>> > You're correct that the only way to access a datastore entity is to
>> > provide
>> > the full path to it - the key is the entity's primary (and only) key. If
>> > you
>> > know the entity type of each entity in the heirarchy, though, you can
>> > extract the id of the entity in question and all its parents, and
>> > represent
>> > the ID as a delimiter-separated list of IDs, though - 1/2/3/4 - and
>> > regenerate the key yourself.
>> >
>> > -Nick Johnson
>> >
>> > On Sun, Jun 14, 2009 at 5:51 PM, Jeff Enderwick
>> > 
>> > wrote:
>> >>
>> >> I have possibly deep entity groups (think tree structure), but I want
>> >> a URL where the user can go to a specific node, like:
>> >>
>> >> http://viewnode/.
>> >>
>> >> I'd like to use db.get() to directly access the node rather than query
>> >> based on node-id.
>> >>
>> >> If I build the URL based on str(node.key()), then the strings can get
>> >> very big. Key.from_path() seems to want the entire path from the
>> >> parent. Is it really the case that the only way to get direct access
>> >> to an interior node in an entity group is provide the entire path to
>> >> that node?
>> >>
>> >> Thanks, Jeff
>> >>
>> >>
>> >
>> > >
>> >
>>
>>
>
>
> >
>

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



[google-appengine] Re: why there is no way to build a key id?

2009-06-16 Thread Jeff Enderwick

I second that. I have cases where I'm building a structure of multiple
objects, and I have to do a put() just to get the id, and then I need
to do another put() to the same object later on. Eliminating the 2nd
put() of the same object in the flow would also allow me to wrap it in
a transaction.

2009/6/16 Andy Freeman :
>
>> The decision to allow setting key_names but not IDs is something we may
>> revisit.
>
> I hope that you're also considering some way to request and allocate
> an unused id for a given path prefix.  (That way we can get unique key
> ids to specify.)
>
>
>
> On Jun 15, 4:45 pm, "Jeff S (Google)"  wrote:
>> Hi cryb,
>>
>> As you noted, we do not currently allow the ID for a key to be set, as we
>> ensure that the ID is unique for each existing entity. I recommend using a
>> key name instead of an ID, as Antoniov suggeted, if possible.
>>
>> It is technically possible to modify the key of an entity as it is being
>> converted to a protocol buffer message before it is sent to the datastore.
>> You could do this using hooks in the API proxy as described in this 
>> article:http://code.google.com/appengine/articles/hooks.htmlAlso it is 
>> possible to
>> construct the key for the desired object if you know the ID in advance.
>>
>> class X(db.Model):
>>   pass
>>
>> # If you've already created the entity so you have the ID.
>> x_id = X().put().id()
>>
>> # Instead of getting by ID, you can create the key manually.
>> k = db.Key.from_path('X', x_id)
>>
>> Now you have the desired key without having fetched the object, but the part
>> which the model class does not allow is setting the key yourself. So you
>> could modify the protocol buffer message before it is written to the
>> datastore, but I don't recommend it.
>>
>> The decision to allow setting key_names but not IDs is something we may
>> revisit.
>>
>> Happy coding,
>>
>> Jeff
>>
>> 2009/6/12 cryb 
>>
>>
>>
>>
>>
>> > Hi.. that is to build key names... What I asked was why I can't build
>> > a key ID..
>>
>> > On Jun 12, 5:35 am, Antoniov  wrote:
>> > > Use the code:
>> > > s = Story(key_name="xzy123")
>> > > Then you create an entity with the key name "xzy123".
>>
>> > > Check this:
>> >http://code.google.com/intl/en-US/appengine/docs/python/datastore/key...
>>
>> > > On 6月12日, 上午1时28分, cryb  wrote:
>>
>> > > > Does anyone know why it is possible to build a key name but NOT a key
>> > > > id? I know key IDs are used as autoincrements, but why can't I just
>> > > > override this mechanism and build my own key id?
>> > > > Suppose I want to overwrite an existent entry in my table that has a
>> > > > key id I know, and also I want to keep that key id after update...
>> > > > because I can't just build a key id, I am forced to fetch that entity,
>> > > > modify it and write it back, instead of just write the updated entity
>> > > > with the key id I already know - so an additional read to the
>> > > > datastore.
>> > > > Is there an obscure reason for that? (both key names and key ids are
>> > > > prefixed with appid/kind as far as I know so there is no chance of
>> > > > collision with other apps/kinds)- Hide quoted text -
>>
>> - Show quoted text -
> >
>

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



[google-appengine] Dynamically reloading application files

2009-06-16 Thread Josh Moore

Hi,

I am using JRuby to run rails on the App Engine.  I have noticed that
the HTML template files but the ruby files I cannot. Is this because
of the restrictions of the App Engine?  That the html files can be
dynamically reloaded but the code files cannot?  If this is the case
does anybody know why it is OK to reload THML files but not the ruby
files?

Thanks,

Josh

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



[google-appengine] Do repeated things in appengine..?

2009-06-16 Thread richardcur...@googlemail.com

I want to do some kind of automated (i.e. no triggered by anyone)
administrative task every 1-2 hours. Can I somehow schedule that to
automatically happen in appengine?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Server Error (500) while uploading index definitions (again)

2009-06-16 Thread gae123

For the record, four days after the original posting this remains an
issue!!

I sent a private message to Nick Johnosn with my app id yesterday
morning but have not heard back. There is another posting in this
thread by "L" whom I do not know and has nothing to do with my
original posting and should have never replied to this thread with his
issues because he just confused things.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: why there is no way to build a key id?

2009-06-16 Thread Andy Freeman

> The decision to allow setting key_names but not IDs is something we may
> revisit.

I hope that you're also considering some way to request and allocate
an unused id for a given path prefix.  (That way we can get unique key
ids to specify.)



On Jun 15, 4:45 pm, "Jeff S (Google)"  wrote:
> Hi cryb,
>
> As you noted, we do not currently allow the ID for a key to be set, as we
> ensure that the ID is unique for each existing entity. I recommend using a
> key name instead of an ID, as Antoniov suggeted, if possible.
>
> It is technically possible to modify the key of an entity as it is being
> converted to a protocol buffer message before it is sent to the datastore.
> You could do this using hooks in the API proxy as described in this 
> article:http://code.google.com/appengine/articles/hooks.htmlAlso it is 
> possible to
> construct the key for the desired object if you know the ID in advance.
>
> class X(db.Model):
>   pass
>
> # If you've already created the entity so you have the ID.
> x_id = X().put().id()
>
> # Instead of getting by ID, you can create the key manually.
> k = db.Key.from_path('X', x_id)
>
> Now you have the desired key without having fetched the object, but the part
> which the model class does not allow is setting the key yourself. So you
> could modify the protocol buffer message before it is written to the
> datastore, but I don't recommend it.
>
> The decision to allow setting key_names but not IDs is something we may
> revisit.
>
> Happy coding,
>
> Jeff
>
> 2009/6/12 cryb 
>
>
>
>
>
> > Hi.. that is to build key names... What I asked was why I can't build
> > a key ID..
>
> > On Jun 12, 5:35 am, Antoniov  wrote:
> > > Use the code:
> > > s = Story(key_name="xzy123")
> > > Then you create an entity with the key name "xzy123".
>
> > > Check this:
> >http://code.google.com/intl/en-US/appengine/docs/python/datastore/key...
>
> > > On 6月12日, 上午1时28分, cryb  wrote:
>
> > > > Does anyone know why it is possible to build a key name but NOT a key
> > > > id? I know key IDs are used as autoincrements, but why can't I just
> > > > override this mechanism and build my own key id?
> > > > Suppose I want to overwrite an existent entry in my table that has a
> > > > key id I know, and also I want to keep that key id after update...
> > > > because I can't just build a key id, I am forced to fetch that entity,
> > > > modify it and write it back, instead of just write the updated entity
> > > > with the key id I already know - so an additional read to the
> > > > datastore.
> > > > Is there an obscure reason for that? (both key names and key ids are
> > > > prefixed with appid/kind as far as I know so there is no chance of
> > > > collision with other apps/kinds)- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: export or report on resource usage

2009-06-16 Thread Nick Johnson (Google)
Hi Jonathan,

You can use the 'request_logs' command of appcfg to download the request
logs for your app in Apache format, which includes the response size.

We don't currently provide programmatic access to the CPU time, however. At
the moment, you can use the quota API to get the CPU usage so far for the
current request, and record that yourself. Note, though, that this doesn't
currently include the CPU used by API calls.

http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/api/quota.py

This is definitely an area we'd like to improve, so keep an eye open for
future developments.

-Nick Johnson

On Tue, Jun 16, 2009 at 4:03 PM, Jonathan  wrote:

>
> Hi, I am trying to optimise the performance of my application and I
> find the reporting provided in the dashboard to be less useful than I
> need. The two things that I am trying to optimise are cpu-time and
> downloaded bandwidth (of course) and I would love to be able to find
> out which handlers are generating most of the cpu-time. But since I
> have restful urls, they don't get grouped usefully... eg /image/abcd
> or /foo/defg/edit.html.
>
> Ideally I would like to be able to export the data and report on it
> myself.
>
> Does anyone know how to get this data?
>
> j
> >
>


-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



[google-appengine] export or report on resource usage

2009-06-16 Thread Jonathan

Hi, I am trying to optimise the performance of my application and I
find the reporting provided in the dashboard to be less useful than I
need. The two things that I am trying to optimise are cpu-time and
downloaded bandwidth (of course) and I would love to be able to find
out which handlers are generating most of the cpu-time. But since I
have restful urls, they don't get grouped usefully... eg /image/abcd
or /foo/defg/edit.html.

Ideally I would like to be able to export the data and report on it
myself.

Does anyone know how to get this data?

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



[google-appengine] Re: is there a way to access bigtable timestamps?

2009-06-16 Thread Barry Hunter

Dont think there is (not seen it at least)

as for plans, you should add it to the issue tracker.


On 16/06/2009, cryb  wrote:
>
>  Hello.
>  Is there a way to access bigtable timestamps for entity data? This
>  would avoid the need to create an additional property field just for
>  that.
>  If this feature is not available, do you have any plans to release it?
>  Thanks.
>  >
>


-- 
Barry

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

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



[google-appengine] Re: DNS error - cannot find server

2009-06-16 Thread Barry Hunter

Probably an issue with your host. Seems to be working now.

As for troubleshooting, try something like
http://centralops.net/co/DomainDossier.aspx?dom_dns=true
and check it resolved to a valid looking Google IP


On 15/06/2009, EW  wrote:
>
>  I have an app that has been working fine for over a month at this
>  domain: office.portofinodoors.com. Now this morning, I'm getting a DNS
>  error. The app is working fine from numbergrab.appspot.com. I'm not
>  sure how to troubleshoot this. Is this a problem with app engine or
>  with my domain host?
>
>  >
>


-- 
Barry

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

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



[google-appengine] Re: Finding out if a key is in the datastore

2009-06-16 Thread Nick Johnson (Google)
Hi n8gray,

There's currently no support for an 'exists' operation. A key only query as
bd_ describes would work, but I would expect the execution time for such a
query to be at least as long as a simple get(). Unless your entity is
exceptionally large, a straightforward get() is likely to be only marginally
slower than an 'exists' operation would be.

-Nick Johnson

On Mon, Jun 15, 2009 at 9:42 PM, n8gray  wrote:

>
> Hi folks,
>
> Is there a way to find out if a key refers to an entity in the
> datastore without retrieving it?  Something like myKey.exists() would
> be nice, but I don't see it in the docs.
> >
>


-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



[google-appengine] Re: Server Error

2009-06-16 Thread Nick Johnson (Google)
Hi Neal,

What is your App ID, and what is the offending request? Feel free to send
these to me privately if you're concerned about revealing them on this
forum.

When you check your request logs, try setting the minimum severity to
'Requests Only' -  do the requests show up in the logs at all?

-Nick Johnson

On Tue, Jun 16, 2009 at 4:09 AM, NealWalters wrote:

>
> I saw another post with a 500 Server Error, and Nick said to check the
> logs.
> I just now checked there and absolutely nothing about this error is
> logged.
>
> Neal
>
>
> On Jun 15, 8:42 pm, NealWalters  wrote:
> > I uploaded some enhancements to my google app (running on the google
> > site), and now getting this error:
> >
> > Error: Server Error
> > The server encountered an error and could not complete your request.
> > If the problem persists, please report your problem and mention this
> > error message and the query that caused it.
> >
> > I opened a ticket with Google hours ago.
> > What could be causing this?  I started using Mercurial distributed
> > source, so the related directories were in there. Today, I copied
> > everything to a second copy, deleted Mercurial files, and uploaded as
> > Version 2, made Version 2 the default, and still getting the error.
> >
> > I also added a CName, if that could have had any impact. But still
> > trying to access throughhttp://myappname.appspot.com.
> >
> > Any ideas?  How long would it normally take Google to reply to a
> > support question?
> >
> > Thanks,
> > Neal Walters
> >
>


-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



[google-appengine] Re: Open Letter to Google App Engine Team: Billing for CPU time is Wrong

2009-06-16 Thread Nick Johnson (Google)
Hi Alex,

Thanks for your feedback. Responses inline.

On Mon, Jun 15, 2009 at 11:46 PM, Alex Popescu <
the.mindstorm.mailingl...@gmail.com> wrote:

>
> While I am appreciating the work and innovation behind the App Engine
> platform, I believe that billing for CPU time is wrong:
>
> - the terms are not well defined [1]


I believe the terms are well defined, in our documentation. api-ms is, as
expected, the number of milliseconds spent processing API calls, and is
purely informative (eg, it's not used separately for billing). If there's
something specific you think we could clarify, please let us know.


> - it is not clear how they are measured


What about how CPU is measured would you like clarified?


>
> - there have been repeated problems on the platform and these are
> impacting the CPU analytics


You're right - App Engine has experienced issues, and it's something we're
actively working on reducing. Any production system will inevitably have
occasional problems, but we're dedicated to ensuring App Engine works as
smoothly and as reliably as possible.


> - it includes framework API internal calls CPU usage and this is not
> under developers' control


API calls are only ever made when a developer's code requests them.
Admittedly this can sometimes be less obvious than one might expect - for
example, resolution of ReferenceProperties - but reading the documentation
will reveal exactly when API calls can be expected.


> - framework API calls are already billable separately


We don't bill for API calls, except in terms of the CPU use they entail,
with the exception of the Mail API, where we bill per-message. We do place
limits on API calls and data volumes to and from our APIs, but these are
purely to prevent (deliberate or accidental) abuse and ensure smooth
operation for all users. I'm not aware of anyone running into these limits
in normal operation.

-Nick Johnson


>
> The letter can be read here
> http://themindstorms.blogspot.com/2009/06/open-letter-to-google-app-engine.html
>
> ./alex
>
> http://the.dailycloud.net
>
> [1] This is just an example
> http://groups.google.com/group/google-appengine/browse_thread/thread/f278fa469c035621
> >
>


-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



[google-appengine] app-engine-patch 1.0.2 released

2009-06-16 Thread Waldemar Kornewald

Hi,
we've released app-engine-patch 1.0.2 (Django 1.0.2) which comes with
interesting new features:
* jQuery and BlueprintCSS integration to demonstrate the media generator
* remote access via remoteapi (including support for manage.py syncdb)
* an important bugfix for strange exceptions after a DeadlineExceededError

Download it here:
http://code.google.com/p/app-engine-patch/

The repository version (see "Source" tab) has the same features, but
uses Django 1.1beta1.

We also have a "powered by app-engine-patch" logo which you can place
on your website:
http://app-engine-patch.googlecode.com/files/powered-by-app-engine-patch.png

The logo is a donation from Giftag (note, they use "assisted by"
instead of "powered by", but you can use their aep logo, too) and the
remoteapi integration was implemented together with Thomas Bohmbach
from Best Buy / Giftag (http://www.giftag.com/). Thanks a lot!

Bye,
Waldemar Kornewald

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



[google-appengine] Re: my jquery post isn't working after deployment.

2009-06-16 Thread Nick Johnson (Google)
Hi loell,

On Tue, Jun 16, 2009 at 8:00 AM, loell  wrote:

>
> $.post("/gettags",{ppa_name: '{{ppaname}}' }, function
> (data ,textStatus){element.innerHTML = data; } )


We need more details in order to help you with this. Have you checked the
request logs in your admin console, to see what happens when this request is
made?

-Nick Johnson


>
>
> I'm puzzled why this piece code is properly working on localhost, but
> when  deployment it won't.
>
> does jquery's "post" method works for you? or are there any caveats
> that i should know?
> >
>


-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



[google-appengine] Re: potential commit problems

2009-06-16 Thread Nick Johnson (Google)
Hi cryb,

App Engine is designed such that the indexes will always be in sync. Updates
are either applied fully (including index updates), or not at all.

-Nick Johnson

On Tue, Jun 16, 2009 at 9:46 AM, cryb  wrote:

>
> Hello.
> AppEngine docs/articles state that commit is performed in 2 separate,
> sequential stages: changes to entities (stage 1) and changes to
> indexes (stage 2).
> My question is what happens after a successful commit in stage 1 (that
> is entity data becomes visible), followed by a crashed index update in
> stage 2? does indexing data have journal logs that are coordinated
> with entity data journal logs before initial commit in stage 1?
> Thanks.
> >
>


-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



[google-appengine] Re: URL path in python script handlers

2009-06-16 Thread Nick Johnson (Google)
On Tue, Jun 16, 2009 at 2:04 AM, Vadim Zaliva  wrote:

>
> I am trying to write Python handler which will analyze URL path. For
> example I would like it to be accessible
> as:
>
> /feed/1
> /feed/2
>
> So I've put following to app.yaml:
>
> - url: /feed/.*
>  script: feed.py


We also need to see the contents of feed.py - the WSGIApplication section.


>
> In my handler I print path:
>
>def get(self):
>logging.debug("FEED with path '%s'" % self.request.path)
>...
>
> However regex matching does not seems to be working my handler never
> gets invoked and I am getting 404.
>
> If I remove "/.*" part from URL matching expression, my handler is
> invoked OK for "http://localhost:80800/feed"; URL.


"/feed/.*" will match anything starting with "/feed/". "/feed" does not, so
it won't match. You probably want "/feed(?:/.*)?"

-Nick Johnson


>
> I am testing with dev_appserver.py
>
> What I am doing wrong?
>
> Sincerely,
> Vadim
>
> >
>


-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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



[google-appengine] Re: URL path in python script handlers

2009-06-16 Thread Sylvain

Did you check the WSGIApplication ?

application = webapp.WSGIApplication([('/feed/.*', MainPage)],
 debug=True)


On 16 juin, 03:04, Vadim Zaliva  wrote:
> I am trying to write Python handler which will analyze URL path. For
> example I would like it to be accessible
> as:
>
> /feed/1
> /feed/2
>
> So I've put following to app.yaml:
>
> - url: /feed/.*
>   script: feed.py
>
> In my handler I print path:
>
>     def get(self):
>         logging.debug("FEED with path '%s'" % self.request.path)
>         ...
>
> However regex matching does not seems to be working my handler never
> gets invoked and I am getting 404.
>
> If I remove "/.*" part from URL matching expression, my handler is
> invoked OK for "http://localhost:80800/feed"; URL.
>
> I am testing with dev_appserver.py
>
> What I am doing wrong?
>
> Sincerely,
> Vadim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] potential commit problems

2009-06-16 Thread cryb

Hello.
AppEngine docs/articles state that commit is performed in 2 separate,
sequential stages: changes to entities (stage 1) and changes to
indexes (stage 2).
My question is what happens after a successful commit in stage 1 (that
is entity data becomes visible), followed by a crashed index update in
stage 2? does indexing data have journal logs that are coordinated
with entity data journal logs before initial commit in stage 1?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] is there a way to access bigtable timestamps?

2009-06-16 Thread cryb

Hello.
Is there a way to access bigtable timestamps for entity data? This
would avoid the need to create an additional property field just for
that.
If this feature is not available, do you have any plans to release 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: why there is no way to build a key id?

2009-06-16 Thread cryb

Hi Jeff.
Thanks for your reply.. I really hope that in the near future
appengine will support setting key ids for entities.
You mentioned that I can use hooks in order to achieve my goal..
However I was more interested in a solution based on appengine java
sdk, and not on python hooks. Does appengine java sdk provide hooks or
some other similar mechanism?
It seems that for the moment I'll stick to generating key names.
One more question: I've tried to generate some entities with key names
on my local devappserver and I got a strange exception stating that I
can't create key names that start with a digit (?!?)... this holds on
google appengine production servers too or it's just a "bug" of
devappserver?

Thanks

On Jun 16, 2:45 am, "Jeff S (Google)"  wrote:
> Hi cryb,
>
> As you noted, we do not currently allow the ID for a key to be set, as we
> ensure that the ID is unique for each existing entity. I recommend using a
> key name instead of an ID, as Antoniov suggeted, if possible.
>
> It is technically possible to modify the key of an entity as it is being
> converted to a protocol buffer message before it is sent to the datastore.
> You could do this using hooks in the API proxy as described in this 
> article:http://code.google.com/appengine/articles/hooks.htmlAlso it is 
> possible to
> construct the key for the desired object if you know the ID in advance.
>
> class X(db.Model):
>   pass
>
> # If you've already created the entity so you have the ID.
> x_id = X().put().id()
>
> # Instead of getting by ID, you can create the key manually.
> k = db.Key.from_path('X', x_id)
>
> Now you have the desired key without having fetched the object, but the part
> which the model class does not allow is setting the key yourself. So you
> could modify the protocol buffer message before it is written to the
> datastore, but I don't recommend it.
>
> The decision to allow setting key_names but not IDs is something we may
> revisit.
>
> Happy coding,
>
> Jeff
>
> 2009/6/12 cryb 
>
>
>
> > Hi.. that is to build key names... What I asked was why I can't build
> > a key ID..
>
> > On Jun 12, 5:35 am, Antoniov  wrote:
> > > Use the code:
> > > s = Story(key_name="xzy123")
> > > Then you create an entity with the key name "xzy123".
>
> > > Check this:
> >http://code.google.com/intl/en-US/appengine/docs/python/datastore/key...
>
> > > On 6月12日, 上午1时28分, cryb  wrote:
>
> > > > Does anyone know why it is possible to build a key name but NOT a key
> > > > id? I know key IDs are used as autoincrements, but why can't I just
> > > > override this mechanism and build my own key id?
> > > > Suppose I want to overwrite an existent entry in my table that has a
> > > > key id I know, and also I want to keep that key id after update...
> > > > because I can't just build a key id, I am forced to fetch that entity,
> > > > modify it and write it back, instead of just write the updated entity
> > > > with the key id I already know - so an additional read to the
> > > > datastore.
> > > > Is there an obscure reason for that? (both key names and key ids are
> > > > prefixed with appid/kind as far as I know so there is no chance of
> > > > collision with other apps/kinds)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] my jquery post isn't working after deployment.

2009-06-16 Thread loell

$.post("/gettags",{ppa_name: '{{ppaname}}' }, function
(data ,textStatus){element.innerHTML = data; } )


I'm puzzled why this piece code is properly working on localhost, but
when  deployment it won't.

does jquery's "post" method works for you? or are there any caveats
that i should know?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---