[google-appengine] App Engine Gurus

2009-01-15 Thread Daniel O'Brien (Google)

Hello everyone,

Some of you may have noticed the recent addition of a guru listing
at the top of our main groups page. We've selected a few top
contributors to the App Engine community to act as App Engine Gurus.
Gurus will continue to post normally in the group, but are now
officially noted for their excellent contributions. The gurus were
selected based on their eagerness to participate in the App Engine
community as a whole and their advanced knowledge of the API.

The newly appointed Gurus are:

  - Alexander Kojevnikov
  - Bill Katz

Google will continue posting normally alongside the gurus. Our primary
focus is to help developers using the API, and the gurus will help
with that focus by continuing to help provide knowledge and answers to
those who ask. Remember that this list isn't fixed. Gurus who stop
participating may be removed, and others who demonstrate the level of
expertise and willingness to participate may be added.

If anyone has any questions, feel free to reply, contact me directly,
or send a message to the group's owners list.

Daniel O'Brien
--~--~-~--~~~---~--~~
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: ImportError: No module named feedparser

2008-12-11 Thread Daniel O'Brien (Google)

feedparser isn't currently included as part of the SDK, or within the
production environment. You can confirm which third party libraries we
do provide under the lib directory of your SDK install.

Daniel

On Dec 10, 5:28 pm, L xyyz...@gmail.com wrote:
 I thought feedparser is in SDK. ^_^
 I have to copy feedparse.py into my folder!

 On Dec 11, 9:16 am, L xyyz...@gmail.com wrote:

  Hi, i use the latest sdk and (i install feedparse in my computer and i
  canimportin the python shell) but meet the error in subject! when i
  use dev_appserver.py
--~--~-~--~~~---~--~~
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: Non-returning ajax upload

2008-12-11 Thread Daniel O'Brien (Google)

The SDK is single-threaded, but our production servers aren't, so a
request should still process until it either completes or hits a
deadline and regardless of how many other processes are running at any
given time.

Daniel

On Dec 10, 8:15 am, gvan g.van...@yahoo.com wrote:
 In part of my app the user uploads a file this is done using ajax;
 this file is processed and then uploaded to another website. My
 question is: if the user navigates away from the page while appengine
 is processing the file will it abort. In other words can appengine run
 more than one process from an app or will it abort as soon as a new
 request comes in?
--~--~-~--~~~---~--~~
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: You have sent too many SMS verification messages?

2008-12-11 Thread Daniel O'Brien (Google)

It's something we need to help with once you've hit the error message
in question. Try filling out the SMS issues form:
http://appengine.google.com/waitlist/sms_issues

Daniel

On Dec 11, 7:15 am, Shedokan shedok...@gmail.com wrote:
 I get this message every time I'm trying sending a message to my
 cellphone.
 at first I sent a couple of messages and then realized I putted a zero
 instead of two, so I corrected my number.
 but it tells me I sent too many messages, will this message expire? or
 I'll have to ask for your help?
 thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: dynamic plotting matplotlib

2008-12-01 Thread Daniel O'Brien (Google)

We only support pure Python modules at present, and as far as I know
matplotlib depends on several compiled modules that we don't provide
ourselves (e.g. numpy). Other developers may have some experience with
alternatives or workarounds though.

Daniel

On Dec 1, 7:28 am, gratefulfrog [EMAIL PROTECTED] wrote:
 Hi!
 I'm quite new to the app-engine and am trying to build an application
 that dynamically reads a data feed (RSS or other) and builds charts by
 plotting the data it has read. The exact data would be selected by
 user input.

 I was wondering if the app-engine can use the python module
 matplotlib.py to do that or if there are other ways?

 The google chart interface seems too limited for teh kind of multi-
 variate charts I want to produce. Very simple static examples (gifs)
 can be seen on my first attempt:

 http://gratefulfrog-ap-demo.appspot.com/

 Any advice or pointers would be very helpful!

 Thanks to all for the app-engine which is a really great tool!
 GF.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: AE 1.1.7 defines has_key on db.Model

2008-12-01 Thread Daniel O'Brien (Google)

It's worth filing this as a feature request (or defect) in the public
issue tracker, if you haven't already: 
http://code.google.com/p/googleappengine/issues/list

As far as I know this method has existed since 1.1.6: Some developers
ran into issues involving cheetah, which assumes that any has_key
method behaves like that of a dict which, as you've noted, the one no
db.Model doesn't.

Daniel

On Dec 1, 1:54 pm, Ken Tidwell [EMAIL PROTECTED] wrote:
 Apparently, some bright spark has defined a has_key method on db.Model.

 Doing so will preclude the creation of any Model derived from or
 emulating dictionary classes (such as UserDict or DictMixin).

 The has_key method in question does not follow the same semantics as
 has_key on dict so the choice of name is unfortunate, to say the least.

 Any chance the method could be renamed to something less toxic and more
 suggestive of its actual function (such as key_complete)?

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



[google-appengine] Re: unicode problem with django custom tag

2008-11-26 Thread Daniel O'Brien (Google)

Relying on setdefaultencoding isn't ideal, especially if you're
working with code that you plan on making reusable.

The proper solution normally involves decoding your input data using
the proper encoding when it's retrieved (e.g. some.data.decode
('utf-8')). How you go about doing so depends on the design of your
app. I can attempt to help troubleshoot if you're able to provide a
code sample where you've run into this.

Daniel

On Nov 24, 6:13 pm, Amir  Michail [EMAIL PROTECTED] wrote:
 Hi,

 Sometimes I get this error:

 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position
 67: ordinal not in range(128)

 So I tried this fix mentioned 
 inhttp://groups.google.com/group/google-appengine/browse_thread/thread/...

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

 This works except that it sometimes results in blank pages.

 Any workarounds?

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



[google-appengine] Re: Content-Encoding?

2008-11-24 Thread Daniel O'Brien (Google)

Not at present - Marzia responded with a list of headers that cannot
be changed in a previous question along the same lines:
http://groups.google.com/group/google-appengine/browse_thread/thread/69232c3e1934173e

Currently all incoming requests go through our serving infrastructure
- we don't allow apps to open raw server sockets, which is what you'd
need to implement your own HTTP server.

Daniel

On Nov 23, 2:03 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hallo,

 Setting the Content-Encoding using the Response object or app.yaml is
 impossible. Is there now workaround, like setting up a miniature http-
 server in pure python inside the appengine that does what we want?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Compressed string extractable in appengine?

2008-11-20 Thread Daniel O'Brien (Google)

The following should work, if you haven't tried something along these
lines already.

Java:

String inputString = Hello, world!;
byte[] input = inputString.getBytes(UTF-8);

byte[] output = new byte[100];
Deflater compresser = new Deflater();
compresser.setInput(input);
compresser.finish();
compresser.deflate(output);

FileOutputStream out = null;
try {
  out = new FileOutputStream(some_temp_file);
  out.write(output);
} finally {
  out.close();
}

Python:

import zlib
zlib.decompress(data)
print data

Let me know if you run into any trouble,

Daniel

On Nov 19, 4:30 pm, jago [EMAIL PROTECTED] wrote:
 Hi,

 I want to create a compressed String in Java and send it to the
 appengine where it is decompressed. Can somebody help me to do this?

 So far I used GZIP for compression in Java. Extraction in appengine
 didn't work though.

 Using the ZIP format in Java resulted also in not more luck. Does
 somebody have example codes on both sides that is known to work?

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



[google-appengine] Re: Loading new pages not in the frames present in the previous page!

2008-11-18 Thread Daniel O'Brien (Google)

From the sounds of it this is an HTML question? If so, add the
attribute target to your link tags, with the value _top. e.g.

a href=/someurl target=_topThis will override any frames on the
current page/a

Let me know if I misunderstood the question.

Daniel

On Nov 18, 4:45 am, Nora [EMAIL PROTECTED] wrote:
 Hello all,
 I am sure this is really a simple and silly question but I am stuck in
 it!
 I have a page that contains two frames.  In one of the frames, I need
 to include a url to a totally new page.  The problem is, the new page
 gets rendered in the frame that cotains the url instead of being
 rendered in a new page of its own.

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



[google-appengine] Re: Getting only the key of a reference property

2008-11-18 Thread Daniel O'Brien (Google)

You're correct in your concern: At present we don't support the sort
of lazy loading that would enable you to fetch a referenced entity's
key without fetching the actual entity.

One option is to store the key itself as a separate property. You
could even keep the existing ReferenceProperty if you're interested in
keeping it for convenience, and if you don't mind the redundancy.

Daniel

On Nov 18, 8:47 am, jhofmann [EMAIL PROTECTED] wrote:
 I am making an app which will store files (relatively large ones, but
 within the 1MB size limit) in the datastore. To make it possible to
 gain information about the files without downloading them I have
 separated their information into two models: Doc and DocData, where
 Doc contains metadata and DocData contains the file. Doc contains a
 reference property to DocData.

 I want to get the key from the DocData reference and let the client
 use that to make a second http request that gets only DocData(thus
 avoiding the problem of any one request being too large). But I am
 concerned that the syntax doc.docdataref.key() is actually going to
 load DocData to get the key instead of using the reference. Someone
 please clear me up on the best way to ensure that I'm not loading
 DocData unnecessarily.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Getting only the key of a reference property

2008-11-18 Thread Daniel O'Brien (Google)

Correction to my previous post: This is possible, as Rafe demonstrated
in a separate topic:

http://groups.google.com/group/google-appengine/browse_thread/thread/ae8ab7cb83e5f609?fwc=1

Daniel

On Nov 18, 11:58 am, Daniel O'Brien (Google) [EMAIL PROTECTED]
wrote:
 You're correct in your concern: At present we don't support the sort
 of lazy loading that would enable you to fetch a referenced entity's
 key without fetching the actual entity.

 One option is to store the key itself as a separate property. You
 could even keep the existing ReferenceProperty if you're interested in
 keeping it for convenience, and if you don't mind the redundancy.

 Daniel

 On Nov 18, 8:47 am, jhofmann [EMAIL PROTECTED] wrote:

  I am making an app which will store files (relatively large ones, but
  within the 1MB size limit) in the datastore. To make it possible to
  gain information about the files without downloading them I have
  separated their information into two models: Doc and DocData, where
  Doc contains metadata and DocData contains the file. Doc contains a
  reference property to DocData.

  I want to get the key from the DocData reference and let the client
  use that to make a second http request that gets only DocData(thus
  avoiding the problem of any one request being too large). But I am
  concerned that the syntax doc.docdataref.key() is actually going to
  load DocData to get the key instead of using the reference. Someone
  please clear me up on the best way to ensure that I'm not loading
  DocData unnecessarily.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: title and home page caching problem

2008-11-14 Thread Daniel O'Brien (Google)

Yes, unless you're doing environment-specific checks, or relying on
some underlying calls that function differently between the SDK and
production, your titles should remain the same.

Do you have a code sample where you've seen this occur?

Daniel

On Nov 14, 12:27 pm, adrian [EMAIL PROTECTED] wrote:
 Why would a different title appear in my browser when running on the
 Production server than appears on my browser when running on the Dev
 server?   Don't they both use the text in the title tag?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Common View Component

2008-11-04 Thread Daniel O'Brien (Google)

Django has some features to simplify this via RequestContext and
context processors: http://docs.djangoproject.com/en/dev/ref/templates/api/#id1

Alternatively, if you don't want to pull in Django, you could do all
the heavy lifting (i.e.datastore calls, memcache) in your main()
method, then expose the results either using Python global variables
or memcache.

Either approach is probably preferable over using a custom filter,
since datastore operations open up a number of error cases that you
may want to deal with before actually rendering your template.

Daniel

On Nov 4, 9:29 am, Chris [EMAIL PROTECTED] wrote:
 What's the best practice for including a common dynamic view component
 in every template? For example, say I want to include a short list of
 links, dynamically queried from my datastore, on every page.

 The default option seems to be adding this query to every request
 handler, and use Django's template inheritance to reuse the display
 logic. However, this still seems like a lot of work, so I decided to
 create a linklist templatefilter to both query the data and retrieve
 the template, and just add {{request|linklist}} to my base template.
 This is simple, but seems like a hack. Is there a better way?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: user login problem

2008-11-04 Thread Daniel O'Brien (Google)

The problem you'll encounter with naked domains is random TCP errors.
Testing within your actual app won't work as a result, since the
request never gets that far.

yejun is correct that you'll need to manage redirects through your
actual registrar. How you go about doing so depends on the registrar.

Daniel

On Nov 4, 2:55 pm, yejun [EMAIL PROTECTED] wrote:
 Google's official word is that you should leave redirect to your
 domain registrar.
 But your domain ready naked I think you can test
 os.environ[''HTTP_HOST''] to see whether it is naked or not in your
 request handler, then do a http 301 redirect.

 On Nov 4, 5:19 pm, Richie [EMAIL PROTECTED] wrote:

  do you have any information on how to do this?

  Richie

  On 4 Nov., 21:14, yejun [EMAIL PROTECTED] wrote:

   Naked domain is no longer supported by google. I think you'd better
   redirect anyone use naked domain to www.

   On Nov 4, 3:13 pm, Richie [EMAIL PROTECTED] wrote:

Hello,

my application ishttp://www.eaglefeed.me

Login from there works like a charme, but login fromhttp://eaglefeed.me
does not.

from my sourcecode users.get_current_user() seem to return None after
login.

what can I do about this?

any help is appreciated. maybe someone could tell me, how to redirect
my users as a work around.

Thanks in advance,

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



[google-appengine] Re: user login problem

2008-11-04 Thread Daniel O'Brien (Google)

On the original problem, the naked domain issue shouldn't affect users
being able to log in.

Have you checked which website your login cookies are being associated
with? That is, login cookies from www.eaglefeed.me aren't accessible
by eaglefeed.me, which may explain the problem you're running into.

Daniel

On Nov 4, 12:13 pm, Richie [EMAIL PROTECTED] wrote:
 Hello,

 my application ishttp://www.eaglefeed.me

 Login from there works like a charme, but login fromhttp://eaglefeed.me
 does not.

 from my sourcecode users.get_current_user() seem to return None after
 login.

 what can I do about this?

 any help is appreciated. maybe someone could tell me, how to redirect
 my users as a work around.

 Thanks in advance,

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



[google-appengine] Re: Trouble with Zipfile, Django 1.0, GAE Django Helper

2008-11-04 Thread Daniel O'Brien (Google)

It sounds as if you've found an alternate solution, but regarding the
error you ran into while following the article, the following as part
of step 4 should resolve the problem:

zip -r django.zip django/contrib/__init__.py django/contrib/auth
django/contrib/sessions

Note that you may also need to adjust MIDDLEWARE_CLASSES in
settings.py to enable
'django.contrib.sessions.middleware.SessionMiddleware', since auth
depends on it.

Daniel

On Nov 2, 9:07 pm, Dylan Lorimer [EMAIL PROTECTED] wrote:
 So I'm trying to get the app engine django helper working with the
 zipfile example for django 1.0, and running into a problem.

 I should also mention that I'm using the bootstrap method in the GAE
 django helper readme. I'm also using version 66 of the django helper
 (pulled via svn.)

 I created the django.zip following the exact instructions 
 athttp://code.google.com/appengine/articles/django10_zipimport.html.

 So, the trouble I'm having is that after dropping in django.zip into
 the root level of my application folder, I start the app server, and
 in the browser see the following error(s):

 
 Traceback (most recent call last):
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 2413, in _HandleRequest
 base_env_dict=env_dict)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 348, in Dispatch
 base_env_dict=base_env_dict)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 1848, in Dispatch
 self._module_dict)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 1766, in ExecuteCGI
 reset_modules = exec_script(handler_path, cgi_path, hook)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/dev_appserver.py, line 1664, in
 ExecuteOrImportScript
 script_module.main()
   File /Users/edylan/Development/JaceyPhotographs2/main.py, line 48,
 in main
 util.run_wsgi_app(application)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/ext/webapp/util.py, line 76, in run_wsgi_app
 result = application(env, _start_response)
   File /Users/edylan/Development/JaceyPhotographs2/django.zip/django/
 core/handlers/wsgi.py, line 228, in __call__
   File /Users/edylan/Development/JaceyPhotographs2/django.zip/django/
 core/handlers/base.py, line 40, in load_middleware
 continue
 ImproperlyConfigured: Error importing middleware
 django.contrib.auth.middleware: No module named
 contrib.auth.middleware

 
 looks like the error is in my django.zip that I'm creating, but I'm
 not sure how to fix this. Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Global Template Context Processors

2008-10-24 Thread Daniel O'Brien (Google)

The Django template wrapper module we use in
google.appengine.ext.webapp.template only accepts a dict, rather than
Context or RequestContext instances, so doesn't support global context
processors.

We do also provide django.template, which does support context
processors. If you take this approach, though, you may wish to switch
over entirely to using Django, since otherwise I suspect you'll run
into difficulty passing a proper request object into RequestContext.
You'll also still need to wrap users.is_current_user_admin() and other
similar functions to match the context processor interface.

Let me know if you have any other questions,

Daniel

On Oct 23, 6:47 pm, Chris [EMAIL PROTECTED] wrote:
 Django supports global template context processors, which allow you to
 ensure certain values are added to every template context. Does App
 Engine have anything similar? I'd like to ensure every template gets
 certain things like users.is_current_user_admin() so the correct
 options are displayed in a sidebar that every template inherits.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How can I know the version I am running in Production?

2008-10-23 Thread Daniel O'Brien (Google)

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 !--
 running version $Version$ -- so that way I know if the proxies are
 still caching my pages or not.
 Mariano

 On Oct 23, 12:15 am, Venkatesh Rangarajan

 [EMAIL PROTECTED] wrote:
  Doesn't the version in appengine dashboard do just that ?

  On Wed, Oct 22, 2008 at 6:49 PM, Mariano Benitez [EMAIL PROTECTED] wrote:

   I would like to do some stuff (reset caches, for example) when I
   deploy a new version, and I would also like to know which version of
   the files I am using (you know... proxies...).
   AFAIK there is no $VERSION variable that I can use, I will use my SVN
   build number, but it would be nice to know that.

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



[google-appengine] Re: is there a way to tell the deployer to ignore some directories and/or files?

2008-10-23 Thread Daniel O'Brien (Google)

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:

  Thanks a lot!

  On Oct 23, 12:57 am, Dan Sanderson [EMAIL PROTECTED] wrote:

   Check out the skip_files configuration 
   directive:http://code.google.com/appengine/docs/configuringanapp.html#Skipping_...

   -- Dan

   On Wed, Oct 22, 2008 at 7:54 PM, Mariano Benitez [EMAIL PROTECTED] 
   wrote:

I've moved my data directory inside the app gae/trunk/data. I've
marked it ignored for subversion, but I assume the appengine is
still uploading everything.

I think I read somewhere that there's no way to ignore some files, but
I am just asking again... (maybe there's a new answer now).

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



[google-appengine] Re: How to delete unused files on app engine

2008-10-20 Thread Daniel O'Brien (Google)

If you're still planning on using TinyMCE, it may be worth looking
into using zipserve if you haven't already. It should help in working
around the file limit.

e.g. Assuming TinyMCE's files are zipped to /tinymce.zip, add
something like this as a handler in your app.yaml:

  - url: /tinymce/.*
script: $PYTHON_LIB/google/appengine/ext/zipserve

More details in zipserve's docstrings:
http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/zipserve/__init__.py

Daniel

On Oct 18, 11:00 pm, qubic [EMAIL PROTECTED] wrote:
 I found the reason,the number of local files over 1000.

 On Oct 19, 12:33 pm, qubic [EMAIL PROTECTED] wrote:

  I use TinyMCE in my app,when i upload the new version to app engine,it
  output:
  Error 400: --- begin server output ---
  Max number of files and blobs is 1000.
  --- end server output ---
  How can i delete the old files on app engine?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---