It's exposed as an environment variable, so something along the lines
of the following should work:
import os
version = os.environ['CURRENT_VERSION_ID']
Daniel
On Oct 22, 7:52 pm, Mariano Benitez [EMAIL PROTECTED] wrote:
I need to know it inside my app so I can do something like !--
Yep. PIL is required for the images API within the SDK, but won't work
on the live servers.
Daniel
On Oct 22, 9:54 pm, Mariano Benitez [EMAIL PROTECTED] wrote:
ok that worked, now.. I use PIL, should I skip PIL too?
Mariano
On Oct 23, 1:53 am, Mariano Benitez [EMAIL PROTECTED] wrote:
i use os.environ['REMOTE_ADDR']
On Oct 23, 2:10 pm, Grays [EMAIL PROTECTED] wrote:
HI all:
I found self.request.remote_addr get intranet ip today,but it's work fine
yesterday.
anybody have the same problem?
thanks all
--~--~-~--~~~---~--~~
You received
in the life time of an app, what's a reasonable upper bound on the
integer key().id() ?
i need to encode the id into a string - i'm trying to figure out how
many of the 500bytes to dedicate it.
inb4 be more specific than 'in the life time of an app' :P
Attempting to examine the logs for my AppEngine application today, I have
consistently received a document containing nothing more than the following:
HTTP response was too large: 1738540. The limit is: 1048576.
Other than the obvious 1Mb ceiling being hit here, it's a little tough to
diagnose
I have to agree. The best case is you have it up with an app.yaml with
placeholders or somesuch. With utilities I just left the live one in
there, and I've seen the demo pop up on a few live sites as people
have played with it.
On Oct 22, 6:54 pm, Roberto Saccon [EMAIL PROTECTED] wrote:
Hey,
Here's an issue I created that could address this kind of need:
http://code.google.com/p/googleappengine/issues/detail?id=658
On Wed, Oct 22, 2008 at 6:33 PM, David koblas [EMAIL PROTECTED] wrote:
I would as well, but part of the idea is that I would like to make it
easily installable by
Ian MacLarty wrote:
In RDBMS speak a READ COMMITTED transaction may read changes committed
by another concurrent transaction. If you were using a traditional
RDBMS and you tried to increment a counter in a READ COMMITTED
transaction by first querying the value of the counter and then
Hi,
i developed an web application in cherrypy. now i want to host it
with google app engine. Is it is been supported by app engine.
Secondly what configuration i need to change in order to host my
cherrypy webapplication,??
Thanks Regards,
Saurabh
Cherrypy is multithread. It seems that GAE does not support multithread.
chenbaiping
www.mao2.com
-邮件原件-
发件人: google-appengine@googlegroups.com [mailto:[EMAIL PROTECTED] 代表 saurabh
发送时间: 2008年10月23日 20:54
收件人: Google App Engine
主题: [google-appengine] cherrypy application hosting
Hi,
Hi,
What is the app id for the app experiencing this issue (as always, if you
don't want the app id published in the forum, you can reply directly to me
with it).
Also, what is the status of this index in your Admin Console for this app?
Is it shown there?
-Marzia
On Thu, Oct 23, 2008 at 9:19
Hi,
This issue is due to a reset of sys.path to a fixed default at the start of
each request. While a fix is in progress, you can work around it bby saving
a copy of sys.path in a global variable when main() is called for the first
time. The code would look like:
import sys
.
. (code that
Newbie question here...
Say I have model like the below:
class Blah(db.Model):
Example
name = db.StringProperty()
title = db.StringProperty()
address = db.StringProperty()
How would I modify the output from the datastore before it gets to the
caller? So, I want to modify the
Hi Brian,
To view in the web interface, you can set the limit of logs records to be
displayed by appending the limit argument on the URL, so the following
should work:
On 10/23/08 12:54 PM, Marzia Niccolai wrote:
Hi Brian,
It does seem like the size of your logs is too large for the logs page,
which is probably due to the amount of information you are including in
them. Can you try and download the logs to your computer? Use the
request_logs
On 10/23/08 1:34 PM, Marzia Niccolai wrote:
Hi Brian,
To view in the web interface, you can set the limit of logs records to
be displayed by appending the limit argument on the URL, so the
following should work:
http://appengine.google.com/logs?app_id=xxxversion_id=1.150limit=10
I have very few indexes in my application. The first batch of indexes
took no time. I just added another one today, and it's taken two hours
already.
Jillian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Google
On Oct 24, 2:09 am, Ross Ridge [EMAIL PROTECTED] wrote:
Ian MacLarty wrote:
In RDBMS speak a READ COMMITTED transaction may read changes committed
by another concurrent transaction. If you were using a traditional
RDBMS and you tried to increment a counter in a READ COMMITTED
On Oct 23, 9:41 am, Marzia Niccolai [EMAIL PROTECTED] wrote:
What is the app id for the app experiencing this issue (as always, if you
don't want the app id published in the forum, you can reply directly to me
with it).
App ID and link to this posting coming your way via email.
Also, what
Hi yejun,
I didn't see any immediate problems with the first approach which you
listed, I agree it will be more efficient than the second approach.
Depending on the shape of your data you might need to adjust the
number of items which you fetch and delete in a single request (100
could be too
i'm formulating a single composite property which can be finalized at
entity creation time and which will hopefully allow me to retrieve
hierarchical data in a desired order. i don't think i can do this with
multiple properties as they would each require a inequality operation.
also, this
Hi johny,
Take a look at this FAQ http://code.google.com/appengine/kb/sms.html#error
If you fill out the SMS issues form we can manually approve you.
Cheers,
Jeff
On Oct 23, 5:11 am, realgt [EMAIL PROTECTED] wrote:
are you including the country code? (1 for united states ) it should
be
Ross Ridge [EMAIL PROTECTED] wrote:
There's no SELECT in the example in the documentation as queries
aren't allowed inside of a transaction.
Ian MacLarty wrote:
There is a call to db.get. This would be analogous to a SELECT in a
relational database.
I'd say the it's SELECT in GQL that's
The docs mention how to profile the code, which shows function calls
and things.
How do you profile the datastore calls? (number of queries, read/
write, time, etc)
Does anyone have some interesting ways to profile their apps?
The application I have been designing seems fairly clean so far and
On Oct 20, 10:00 am, A.TNG [EMAIL PROTECTED] wrote:
Do you have any idea? I meet some similar problems in my project too.
I have investigated this issue and put a lot of time (too much!)
tinkering to get it working but without success (found a really dirty
hack to get it working with
Hi,
Many of you have expressed interest in learning about what's coming next for
Google App Engine, and although we've often talked about features we plan on
supporting, we've decided to publish a
roadmaphttp://code.google.com/appengine/docs/roadmap.htmlalong with
our documentation. The roadmap
This is fantastic, thanks Marzia!
There also seems to be a fair amount of clamor for beefing up the
Image API, any chance that might be in the pipeline?
Also, I would like to suggest that the documentation be fattened up,
especially concerning the inner workings of datastore/BigTable and
The first approach normally should work. But there is also a very very
small possibility that some of fetched entries are updated during this
call, which will cause the updated values being deleted.
The second approach doesn't actually work on GAE, because query isn't
supported inside a
Thanks for the feedback - good to know you are listening to our
concerns.
The big one for me is billing, which presumably will remove all the
quota issues. I have an application just about ready to go live, and I
don't anticipate huge resource use, but I'm hesitant about launching
until I can be
Hi,
My application get a lot of high-CPU usage warnings on the production
server. I have spent the past few weeks profiling and optimizing my
production code as suggested.
From profiler data, I know that 99% of processor time is spent in
Model.put or db.put. As a result I have been aggressively
* Support for a new runtime language
Would you be able to say how different languages will be partitioned?
Could you access a single datastore with more than one language or
have different languages running on the same VM?
--~--~-~--~~~---~--~~
You received this
How would you map the URL /admin/users to the script admin/
editusers.py?
I tried adding something like this to my app.yaml, but all I get is a
blank document
- url: /admin/users
script: admin/editusers.py
login: admin
--~--~-~--~~~---~--~~
You received this
Hi,
I'm not sure about the exact time, but it happens 2-3 times per day.
Perhaps what I can do is create a data entity to simply log the last
time the operation completed. Then, once it fails, I can lookup the
last completion time and send you a precise date/time.
It was concerning to me that
When I fetch some resource like
http://news.aol.com/cp.adp?mod1=233051|cp_crosspromodebug=0, urlfetch
will throw 'CONTENT_TYPE' exception .
Who knows why?
My code is something like this:
Try
beginTime=time.time()
Urlfetch.fetch(url,...)
except Exception, e:
Thanks for clarifying this! I am especially relieved to see the
datastore import/export and the billing option announced. I am also
relieved to see recent advances like the HTTPS release which now lets
us add things like Google Checkout integration. As someone who runs
their entire business
On Thu, Oct 23, 2008 at 6:15 PM, Paulo Fabiano Langer
[EMAIL PROTECTED] wrote:
I've created a class called ListLanguages and I use Languages.all()
My doubt is, how could get the languages list and the number of words
of each language?
Normaly with SQL we could use group by id_language but I
I've had the same problem and also got no useful advice on my similar
post. So you're not alone. I'm surprised this is not a more common
problem or perhaps everyone knows the solution except us.
I tried memcache but you need a separate key for each user to avoid
that concurrency overlap, and
I wrote a patch to enable beaker session work on webapp. You can get
code here.
http://appengine-cookbook.appspot.com/recipe/add-session-support-to-webapp/
On Sep 25, 1:11 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
First post related to my first ever app, so watch out.
I've had a lot of
Great to finally get official about the Roadmap
On Oct 24, 8:01 am, Jeffrey Rosen [EMAIL PROTECTED] wrote:
Thanks for clarifying this! I am especially relieved to see the
datastore import/export and the billing option announced. I am also
relieved to see recent advances like the HTTPS
On Oct 23, 9:41 am, Marzia Niccolai [EMAIL PROTECTED] wrote:
What is the app id for the app experiencing this issue (as always, if you
don't want the app id published in the forum, you can reply directly to me
with it).
Marzia and I discussed some of this in private since I gave him the
app
40 matches
Mail list logo