[google-appengine] Re: Closure and Google App Engine

2009-11-07 Thread Nick Johnson (Google)
Hi Adrian, Are you referring to the recently-released Closure JavaScript library? The intention is that you use it with Closure Compiler, producing a single script you can include with your app, so there's no need to include the entire thing. -Nick Johnson On Fri, Nov 6, 2009 at 6:18 PM, acuth

[google-appengine] Re: Closure and Google App Engine

2009-11-07 Thread hawkett
Hi Nick, There are a certain class of applications that modify their code at runtime - is the intention that these use the restful Closure JavaScript compiler API? One of the downsides to GWT is the need for compilation (there's no compiler on GAE) - also making this a *requirement* of a stra

[google-appengine] Re: Thoughts on pagination with GAE

2009-11-07 Thread Joshua Smith
> I'd rather not pass the ID of the next object because then I'd have to > do a datastore get in order to get its date. Memcache! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post t

[google-appengine] Re: Thoughts on pagination with GAE

2009-11-07 Thread Barry Hunter
2009/11/6 wings: > > > What I would really like to discover is a solution that is: ... wouldnt we all! I'm not sure its been determined that a 'true' solution exists. ;P Or at least a simple one. And one that works on massive datasets, like AppEngine is meant to support. Coming from mysql, its

[google-appengine] Re: gql not giving full result set

2009-11-07 Thread Martin Trummer
just a guess: "An index only contains entities that have every property referred to by the index." http://bit.ly/qiTBk that my be the reason, why you get a different number of results On Nov 6, 6:53 pm, Adhi wrote: > Yes, I've tried using order by also. But its giving different > resultset. > W

[google-appengine] Re: Closure and Google App Engine

2009-11-07 Thread Nick Johnson (Google)
On Sat, Nov 7, 2009 at 12:38 PM, hawkett wrote: > > Hi Nick, > > There are a certain class of applications that modify their code at > runtime - is the intention that these use the restful Closure > JavaScript compiler API? What sort of runtime modification are you talking about? > One of

[google-appengine] Re: Closure and Google App Engine

2009-11-07 Thread hawkett
> What sort of runtime modification are you talking about? A user changes a piece of javascript, or adds a piece of javascript - for the sake of the example lets assume the javascript is stored in the GAE datastore. Something that you get from javascript, and precisely because it doesn't require

[google-appengine] Querys

2009-11-07 Thread david
Hello, How can I know how many items it returns a query? Example: eventos = db.GqlQuery ("SELECT * FROM Evento") How many items? Other question. How can I do random of numers in python? See you. Thanks. --~--~-~--~~~---~--~~ You received this message because you

[google-appengine] Re: Closure and Google App Engine

2009-11-07 Thread Barry Hunter
2009/11/7 hawkett : > >> What sort of runtime modification are you talking about? > > A user changes a piece of javascript, or adds a piece of javascript - > for the sake of the example lets assume the javascript is stored in > the GAE datastore.  Something that you get from javascript, and > prec

[google-appengine] Re: Closure and Google App Engine

2009-11-07 Thread Nick Johnson (Google)
On Sat, Nov 7, 2009 at 4:18 PM, hawkett wrote: > > > What sort of runtime modification are you talking about? > > A user changes a piece of javascript, or adds a piece of javascript - > for the sake of the example lets assume the javascript is stored in > the GAE datastore. Something that you ge

[google-appengine] Re: Closure and Google App Engine

2009-11-07 Thread hawkett
> Surely you talking about the closure *compiler*, not the closure *library* > here Both. Nick's point (as I read it) is that you shouldn't be using one without the other, at least not in production, and my point is that there are valid situations in which you do want the library and not the co

[google-appengine] Re: Closure and Google App Engine

2009-11-07 Thread hawkett
> Closure consciously makes a tradeoff - it abandons a little > flexibility in favor of improved responsiveness and smaller downloads. I think we've both made that point about compilation. Unfortunately it could be a gazillion times faster, better, stronger, cooler, but it still won't be suitable

[google-appengine] Re: Closure and Google App Engine

2009-11-07 Thread acuth
Just for the record... my initial post was just me wanting to explore using Closure as cheaply as possible. I certainly agree that one would expect to use the Closure Compiler for a production system. But I would have thought that the goog.provide ()/goog.require() mechanism in combination with m

[google-appengine] Task queue logging stopped?

2009-11-07 Thread Jeff Schnitzer
Right around noon today I stopped getting log messages for my task queue attempts. I can create new tasks, the console says they are being retried, but I don't see the execution request in the logs at all. I can't tell why my tasks are failing :-( Did something change today? Thanks, Jeff --~--

[google-appengine] Re: Task queue logging stopped?

2009-11-07 Thread Jeff Schnitzer
Nevermind. Looks like there is a bug in the Task Queue, if you create a Task URL with a (properly urlencoded) newline in it, the executioner silently fails (although the retry count goes up). Jeff On Nov 7, 1:51 pm, Jeff Schnitzer wrote: > Right around noon today I stopped getting log messages

[google-appengine] Re: remote_api intermittantly throwing HTTPError 302 after 100's of transactions (and found bug in apiproxy code

2009-11-07 Thread Tim Hoffman
Hi Further to my report about the remote server send HTTPError 302, after a number of remote api calls, the stack trace I am getting suggests that the path in the apiproxy code has a problem as a second exception is raised when the 302 is sent. Traceback (most recent call last): File "/opt/k

[google-appengine] Re: Querys

2009-11-07 Thread niklasr
On Nov 7, 12:00 pm, david wrote: > Hello, > > How can I know how many items it returns a query? > Example: > eventos = db.GqlQuery ("SELECT * FROM Evento") > How many items? > > Other question. > How can I do random of numers in python? > > See you. Thanks. python list size or eventos.count() w

[google-appengine] [Python] Reading files with python and open()

2009-11-07 Thread warlock24
Hello Could someone tell me why tis code does't work? [CODE] ROOT_DIR = os.path.dirname(__file__) pageUrl = os.path.join(ROOT_DIR, 'pages/' + pageName + '.html') pageContent = open(pageUrl, 'r').read() [/CODE] i get error message [CODE] IOError: [Errno 2] No such file or directory: '/base/data

[google-appengine] Re: [Python] Reading files with python and open()

2009-11-07 Thread OvermindDL1
On Sat, Nov 7, 2009 at 8:39 AM, warlock24 wrote: > > Hello > > Could someone tell me why tis code does't work? > > [CODE] > ROOT_DIR = os.path.dirname(__file__) > pageUrl = os.path.join(ROOT_DIR, 'pages/' + pageName + '.html') > pageContent = open(pageUrl, 'r').read() > [/CODE] > > i get error me

[google-appengine] Re: remote_api reliably throwing HTTPError 302 after 100's of transactions (and found bug in apiproxy code)

2009-11-07 Thread Tim Hoffman
On further investigation I am finding the the remote_api always gets a HTTPError 302 after a number of transactions. The exact number varies. Anywhere from 10's to a few hundred. I wait for around 2min, and then resubmit it works find again. I don't believe this is a time based problem, as I oft

[google-appengine] "Only ancestor queries are allowed inside transactions"

2009-11-07 Thread Will
Hi all, I got this error when I tried to run a query in a transaction, "Only ancestor queries are allowed inside transactions". I have a class, C1, whose entities have no ancestors. I want to query a particular entity from it, modify, and put it back, for example, item = C1.gql("WHERE p1 = :a AN