[google-appengine] Re: Gettext and GAE/jijas2 integration
I tried to put Environment object in memcache, but it's not picklable so no joy. FileSystemLoader can be pickled and cached, but for some unknown reason cached object throws IOErrors if template code changes (eg. because of new deployment) and I did not found a way to remove it from cache after succesful deployment (and do not have key versioning yet). I ended up creating module-level environment object and hoping the module will be kept in module cache fo long enough to be reused. On 5 Mar, 01:14, pedepy paul.ro...@gmail.com wrote: just as a side note, loading a jinja2 environment can be quite expensive. You'll wanna seperate this code (that you will no doubt reuse extensively) into it's own method. A little memcache love also wouldnt hurt. On Mar 4, 7:45 am, Jose jose.pala...@gmail.com wrote: I'm new in python and app engine. I'm developing a simple project without django, just webapp. Instead use django template system I'm using jijas2. To enable jijas2 into my project I downloaded the last version and after unpack it, I copied jijas2 folder into my project. I added this imports: from jinja2 import Template from jinja2 import FileSystemLoader, Environment An in my request handler I use templates in this way: template_dirs = os.path.join(os.path.dirname(__file__), 'templates') env = Environment(loader=FileSystemLoader(template_dirs)) template = env.get_template(index.html) rendered = template.render(template_values) self.response.out.write(rendered) Everything works fine. Now, I'm trying to make use of i18n support in jijas2. But I have a lot of problems and I would apreciate your help. First of all I read jijas2 documentation and API, and the way to implement this feature is with this lines: import gettext (..and in my request handler) domain = myproject dirname = os.path.dirname(__file__) locales = en_US translations = gettext.find(domain, dirname, locales) env = Environment(loader=FileSystemLoader (template_dirs),extensions=['jinja2.ext.i18n']) env.install_gettext_translations(translations) Second question: I have experiencie with PHP, so it not so hard understand gettext and po/mo files operation, so I think I have to upload my po files into ROOT/locale/LC_MESSAGES/en_US/myproject.po Regards --~--~-~--~~~---~--~~ 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: pytz and astimezone
pytz isn't included with python or gae, you will need to get the package from pypi T On Mar 5, 10:34 am, andrew andrew.r...@gmail.com wrote: I was able to convert the datetime timezone from the datastore to EST by following thehttp://timezones.appspot.com/ for example: event.date = event.date.replace(tzinfo=TZINFOS ['utc']) event.date = event.date.astimezone(TZINFOS ['est']) This works great, however I noticed that EST is hardcoded to UTC-5: def utcoffset(self, dt): return datetime.timedelta(hours=-5) So when spring rolls around and we are in daylight savings, I'm going to have to update the code to UTC-4, or my time will be off by an hour. It seems that pytz would solve this problem but I couldn't figure out how to import it into my application. I tried import pytz but got error type 'exceptions.ImportError': No module named pytz Any suggestions? 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: cooperate with top Google Apps Engine developer
Hi Linbo!The questions that it will answer is Where it is and what it is using Google map, reader and google finance. Drop me a few lines about your expereince and I will send out a full description as soon I have read through all the people who has shown their interest. Regards Alex 2009/3/5 lianbo waveconnex...@gmail.com Hi, Alex, What app are you trying to develop? -lb On Wed, Mar 4, 2009 at 7:47 PM, AlexR alexra...@gmail.com wrote: Hi Everyone, I am not a very good developer, therefore I am looking for some one who can join me to develop an apps. So anyone who enjoy working in team, why not send me an email --~--~-~--~~~---~--~~ 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: Guideline for performance tuning
Thanks Tony, But what to look at in profiler. And how do you judge it could be improved? For experienced developer, it maybe easy to spot the bottleneck, but for novice, how should they analyze the profile result and improved the performance. Cheers On Thu, Mar 5, 2009 at 1:14 AM, Tony Arkles - home t.ark...@gmail.comwrote: Profile profile profile! Use the profiler, on the live app engine. On Mar 4, 8:42 am, ltcstyle ltcst...@gmail.com wrote: Hi All, When we developing an app, or implementing an idea, it's very likely we focus on the features and functionalities first. However, at some point, the performance could become your concern unless you do not expect it run nicely. I am wondering how you guys do this performance tuning works and what's your pattern to improve the quality of your work. For example, Gql query tuning, template improvement, etc. If anyone can share their ideas or tips, I would be grateful. 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: Guideline for performance tuning
Hi Alex, Can't wait to see your experiences. Good luck. On Thu, Mar 5, 2009 at 7:36 AM, Alex Popescu the.mindstorm.mailingl...@gmail.com wrote: On Mar 4, 4:42 pm, ltcstyle ltcst...@gmail.com wrote: Hi All, When we developing an app, or implementing an idea, it's very likely we focus on the features and functionalities first. However, at some point, the performance could become your concern unless you do not expect it run nicely. I am wondering how you guys do this performance tuning works and what's your pattern to improve the quality of your work. For example, Gql query tuning, template improvement, etc. If anyone can share their ideas or tips, I would be grateful. Thanks. While working on my app I've started to put together a series of lessons I've learnt and hope to publish it soon. But I have to firstly complete the app :). ./alex --~--~-~--~~~---~--~~ 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: cooperate with top Google Apps Engine developer
*chuckle* So wait, you lack capability, but rather than be forthcoming about your needs, you wish to screen the people volunteering to help you? Sounds like yet another pseudo-entrepreneur who wants to take advantage of techies. On Thu, Mar 5, 2009 at 5:31 AM, Alex Rad alexra...@gmail.com wrote: Hi Linbo! The questions that it will answer is Where it is and what it is using Google map, reader and google finance. Drop me a few lines about your expereince and I will send out a full description as soon I have read through all the people who has shown their interest. Regards Alex 2009/3/5 lianbo waveconnex...@gmail.com Hi, Alex, What app are you trying to develop? -lb On Wed, Mar 4, 2009 at 7:47 PM, AlexR alexra...@gmail.com wrote: Hi Everyone, I am not a very good developer, therefore I am looking for some one who can join me to develop an apps. So anyone who enjoy working in team, why not send me an email --~--~-~--~~~---~--~~ 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: cooperate with top Google Apps Engine developer
Hi Andrew... Well there you are wrong... a team discuss and get togehter something that every team member is happy with it I am not here to say This What I WANT HELP ME TO DO IT!!.. By the way with your point of view I dont like you to be in the team!.. 2009/3/5 Andrew Badera and...@badera.us *chuckle* So wait, you lack capability, but rather than be forthcoming about your needs, you wish to screen the people volunteering to help you? Sounds like yet another pseudo-entrepreneur who wants to take advantage of techies. On Thu, Mar 5, 2009 at 5:31 AM, Alex Rad alexra...@gmail.com wrote: Hi Linbo! The questions that it will answer is Where it is and what it is using Google map, reader and google finance. Drop me a few lines about your expereince and I will send out a full description as soon I have read through all the people who has shown their interest. Regards Alex 2009/3/5 lianbo waveconnex...@gmail.com Hi, Alex, What app are you trying to develop? -lb On Wed, Mar 4, 2009 at 7:47 PM, AlexR alexra...@gmail.com wrote: Hi Everyone, I am not a very good developer, therefore I am looking for some one who can join me to develop an apps. So anyone who enjoy working in team, why not send me an email --~--~-~--~~~---~--~~ 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: cooperate with top Google Apps Engine developer
You're asking people to volunteer their help, but rather than give them details of what you're expecting them to do, you want them to submit THEIR information, so you can screen them? A bit presumptuous, don't you think? Not to mention bass-ackwards. PS No interest in being on your team, but thanks for the thought! ;) On Thu, Mar 5, 2009 at 6:13 AM, Alex Rad alexra...@gmail.com wrote: Hi Andrew... Well there you are wrong... a team discuss and get togehter something that every team member is happy with it I am not here to say This What I WANT HELP ME TO DO IT!!.. By the way with your point of view I dont like you to be in the team!.. 2009/3/5 Andrew Badera and...@badera.us *chuckle* So wait, you lack capability, but rather than be forthcoming about your needs, you wish to screen the people volunteering to help you? Sounds like yet another pseudo-entrepreneur who wants to take advantage of techies. On Thu, Mar 5, 2009 at 5:31 AM, Alex Rad alexra...@gmail.com wrote: Hi Linbo! The questions that it will answer is Where it is and what it is using Google map, reader and google finance. Drop me a few lines about your expereince and I will send out a full description as soon I have read through all the people who has shown their interest. Regards Alex 2009/3/5 lianbo waveconnex...@gmail.com Hi, Alex, What app are you trying to develop? -lb On Wed, Mar 4, 2009 at 7:47 PM, AlexR alexra...@gmail.com wrote: Hi Everyone, I am not a very good developer, therefore I am looking for some one who can join me to develop an apps. So anyone who enjoy working in team, why not send me an email --~--~-~--~~~---~--~~ 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: Suggestion: worst case testing mode
Looks good to me. I went ahead and added a comment. Thanks! On Mar 5, 12:21 am, Andy Freeman ana...@earthlink.net wrote: Would a generalization ofhttp://code.google.com/p/googleappengine/issues/detail?id=915 be useful? On Mar 4, 5:17 am, Brandon Thomson gra...@gmail.com wrote: Due to the way App Engine is designed it is possible for an application to work fine when datastore/memcache performance is good but then fail miserably when datastore/memcache performance is bad (ie, the last 2 days). In my case I was mostly able to design workarounds for the bad performance so that my app still returns something from all requests (albeit in a degraded mode), but I wasn't aware which handlers were going to fail with timeout and 502 errors and whatnot until the bad performance happened. If we had a way to simulate worst case datastore/memcache performance for our apps we could design them to fail gracefully ahead of time and avert some of the pain of events like yesterday. If google would clearly define maximum acceptable latencies for all the relevant parameters (you don't have to call it a service level agreement, but it would be nice) and then allow us to test our applications at those latencies we could write more robust apps and still return something useful for our visitors in the event of unexpected performance degradation. --~--~-~--~~~---~--~~ 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 geographic distribution
On Tue, Mar 3, 2009 at 10:03 AM, Jeffrey Rosen jef...@gmail.com wrote: Bump for Google Please don't. Search the group archives instead. Dave. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Gettext and GAE/jijas2 integration
So, which one is the best (and easiest) way to build an appengine project with i18n support without django? I think I will write a dirty implementation if therer are not solution to solve this problem. On Thu, Mar 5, 2009 at 9:09 AM, Jarek Zgoda jarek.zg...@gmail.com wrote: I tried to put Environment object in memcache, but it's not picklable so no joy. FileSystemLoader can be pickled and cached, but for some unknown reason cached object throws IOErrors if template code changes (eg. because of new deployment) and I did not found a way to remove it from cache after succesful deployment (and do not have key versioning yet). I ended up creating module-level environment object and hoping the module will be kept in module cache fo long enough to be reused. On 5 Mar, 01:14, pedepy paul.ro...@gmail.com wrote: just as a side note, loading a jinja2 environment can be quite expensive. You'll wanna seperate this code (that you will no doubt reuse extensively) into it's own method. A little memcache love also wouldnt hurt. On Mar 4, 7:45 am, Jose jose.pala...@gmail.com wrote: I'm new in python and app engine. I'm developing a simple project without django, just webapp. Instead use django template system I'm using jijas2. To enable jijas2 into my project I downloaded the last version and after unpack it, I copied jijas2 folder into my project. I added this imports: from jinja2 import Template from jinja2 import FileSystemLoader, Environment An in my request handler I use templates in this way: template_dirs = os.path.join(os.path.dirname(__file__), 'templates') env = Environment(loader=FileSystemLoader(template_dirs)) template = env.get_template(index.html) rendered = template.render(template_values) self.response.out.write(rendered) Everything works fine. Now, I'm trying to make use of i18n support in jijas2. But I have a lot of problems and I would apreciate your help. First of all I read jijas2 documentation and API, and the way to implement this feature is with this lines: import gettext (..and in my request handler) domain = myproject dirname = os.path.dirname(__file__) locales = en_US translations = gettext.find(domain, dirname, locales) env = Environment(loader=FileSystemLoader (template_dirs),extensions=['jinja2.ext.i18n']) env.install_gettext_translations(translations) Second question: I have experiencie with PHP, so it not so hard understand gettext and po/mo files operation, so I think I have to upload my po files into ROOT/locale/LC_MESSAGES/en_US/myproject.po Regards --~--~-~--~~~---~--~~ 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: Guideline for performance tuning
Here's a short list of tweaks sitting on top of my mind: * Memcache everything -- because retrieving an item in the datastore can take time, cache it if you need to reuse at least twice. Also cache rendered pages. * Use a lighter and faster template engine than Django -- For sure, Django is great and allow many things. But smaller apps use just a fraction of the template engine functions. Simple string replacement templates are usually enough to start with and without doubt, outperforms Django rendering functions. Personally, I rely on Mako. * Prefer built-in Python functions and if possible, functions written in C -- for example, prefer the _map_ function over the _for_ loop. There are of course many other tips available to optimize to your code but right now, these three works great for me. --~--~-~--~~~---~--~~ 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: Gettext and GAE/jijas2 integration
Shouldn't the dirname from your code contain the path where actual catalogs are stored, iow. os.path.join(os.path.dirname(__file__), 'locale')? On 5 Mar, 13:11, Jose Ramon Palanco jose.pala...@gmail.com wrote: So, which one is the best (and easiest) way to build an appengine project with i18n support without django? I think I will write a dirty implementation if therer are not solution to solve this problem. On Thu, Mar 5, 2009 at 9:09 AM, Jarek Zgoda jarek.zg...@gmail.com wrote: I tried to put Environment object in memcache, but it's not picklable so no joy. FileSystemLoader can be pickled and cached, but for some unknown reason cached object throws IOErrors if template code changes (eg. because of new deployment) and I did not found a way to remove it from cache after succesful deployment (and do not have key versioning yet). I ended up creating module-level environment object and hoping the module will be kept in module cache fo long enough to be reused. On 5 Mar, 01:14, pedepy paul.ro...@gmail.com wrote: just as a side note, loading a jinja2 environment can be quite expensive. You'll wanna seperate this code (that you will no doubt reuse extensively) into it's own method. A little memcache love also wouldnt hurt. On Mar 4, 7:45 am, Jose jose.pala...@gmail.com wrote: I'm new in python and app engine. I'm developing a simple project without django, just webapp. Instead use django template system I'm using jijas2. To enable jijas2 into my project I downloaded the last version and after unpack it, I copied jijas2 folder into my project. I added this imports: from jinja2 import Template from jinja2 import FileSystemLoader, Environment An in my request handler I use templates in this way: template_dirs = os.path.join(os.path.dirname(__file__), 'templates') env = Environment(loader=FileSystemLoader(template_dirs)) template = env.get_template(index.html) rendered = template.render(template_values) self.response.out.write(rendered) Everything works fine. Now, I'm trying to make use of i18n support in jijas2. But I have a lot of problems and I would apreciate your help. First of all I read jijas2 documentation and API, and the way to implement this feature is with this lines: import gettext (..and in my request handler) domain = myproject dirname = os.path.dirname(__file__) locales = en_US translations = gettext.find(domain, dirname, locales) env = Environment(loader=FileSystemLoader (template_dirs),extensions=['jinja2.ext.i18n']) env.install_gettext_translations(translations) Second question: I have experiencie with PHP, so it not so hard understand gettext and po/mo files operation, so I think I have to upload my po files into ROOT/locale/LC_MESSAGES/en_US/myproject.po Regards --~--~-~--~~~---~--~~ 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: Gettext and GAE/jijas2 integration
Also, the gettext docs say it should be localedir/language/ LC_MESSAGES/domain.mo (ROOT/locale/en_US/LC_MESSAGES/myproject.po - following your terminology and layout), not localedir/LC_MESSAGES/ language/domain.mo. On 5 Mar, 13:32, Jarek Zgoda jarek.zg...@gmail.com wrote: Shouldn't the dirname from your code contain the path where actual catalogs are stored, iow. os.path.join(os.path.dirname(__file__), 'locale')? On 5 Mar, 13:11, Jose Ramon Palanco jose.pala...@gmail.com wrote: So, which one is the best (and easiest) way to build an appengine project with i18n support without django? I think I will write a dirty implementation if therer are not solution to solve this problem. On Thu, Mar 5, 2009 at 9:09 AM, Jarek Zgoda jarek.zg...@gmail.com wrote: I tried to put Environment object in memcache, but it's not picklable so no joy. FileSystemLoader can be pickled and cached, but for some unknown reason cached object throws IOErrors if template code changes (eg. because of new deployment) and I did not found a way to remove it from cache after succesful deployment (and do not have key versioning yet). I ended up creating module-level environment object and hoping the module will be kept in module cache fo long enough to be reused. On 5 Mar, 01:14, pedepy paul.ro...@gmail.com wrote: just as a side note, loading a jinja2 environment can be quite expensive. You'll wanna seperate this code (that you will no doubt reuse extensively) into it's own method. A little memcache love also wouldnt hurt. On Mar 4, 7:45 am, Jose jose.pala...@gmail.com wrote: I'm new in python and app engine. I'm developing a simple project without django, just webapp. Instead use django template system I'm using jijas2. To enable jijas2 into my project I downloaded the last version and after unpack it, I copied jijas2 folder into my project. I added this imports: from jinja2 import Template from jinja2 import FileSystemLoader, Environment An in my request handler I use templates in this way: template_dirs = os.path.join(os.path.dirname(__file__), 'templates') env = Environment(loader=FileSystemLoader(template_dirs)) template = env.get_template(index.html) rendered = template.render(template_values) self.response.out.write(rendered) Everything works fine. Now, I'm trying to make use of i18n support in jijas2. But I have a lot of problems and I would apreciate your help. First of all I read jijas2 documentation and API, and the way to implement this feature is with this lines: import gettext (..and in my request handler) domain = myproject dirname = os.path.dirname(__file__) locales = en_US translations = gettext.find(domain, dirname, locales) env = Environment(loader=FileSystemLoader (template_dirs),extensions=['jinja2.ext.i18n']) env.install_gettext_translations(translations) Second question: I have experiencie with PHP, so it not so hard understand gettext and po/mo files operation, so I think I have to upload my po files into ROOT/locale/LC_MESSAGES/en_US/myproject.po Regards --~--~-~--~~~---~--~~ 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: Gettext and GAE/jijas2 integration
I will try all posibilities.. If I finally get it working i will document the process. Thanks On Thu, Mar 5, 2009 at 1:40 PM, Jarek Zgoda jarek.zg...@gmail.com wrote: Also, the gettext docs say it should be localedir/language/ LC_MESSAGES/domain.mo (ROOT/locale/en_US/LC_MESSAGES/myproject.po - following your terminology and layout), not localedir/LC_MESSAGES/ language/domain.mo. On 5 Mar, 13:32, Jarek Zgoda jarek.zg...@gmail.com wrote: Shouldn't the dirname from your code contain the path where actual catalogs are stored, iow. os.path.join(os.path.dirname(__file__), 'locale')? On 5 Mar, 13:11, Jose Ramon Palanco jose.pala...@gmail.com wrote: So, which one is the best (and easiest) way to build an appengine project with i18n support without django? I think I will write a dirty implementation if therer are not solution to solve this problem. On Thu, Mar 5, 2009 at 9:09 AM, Jarek Zgoda jarek.zg...@gmail.com wrote: I tried to put Environment object in memcache, but it's not picklable so no joy. FileSystemLoader can be pickled and cached, but for some unknown reason cached object throws IOErrors if template code changes (eg. because of new deployment) and I did not found a way to remove it from cache after succesful deployment (and do not have key versioning yet). I ended up creating module-level environment object and hoping the module will be kept in module cache fo long enough to be reused. On 5 Mar, 01:14, pedepy paul.ro...@gmail.com wrote: just as a side note, loading a jinja2 environment can be quite expensive. You'll wanna seperate this code (that you will no doubt reuse extensively) into it's own method. A little memcache love also wouldnt hurt. On Mar 4, 7:45 am, Jose jose.pala...@gmail.com wrote: I'm new in python and app engine. I'm developing a simple project without django, just webapp. Instead use django template system I'm using jijas2. To enable jijas2 into my project I downloaded the last version and after unpack it, I copied jijas2 folder into my project. I added this imports: from jinja2 import Template from jinja2 import FileSystemLoader, Environment An in my request handler I use templates in this way: template_dirs = os.path.join(os.path.dirname(__file__), 'templates') env = Environment(loader=FileSystemLoader(template_dirs)) template = env.get_template(index.html) rendered = template.render(template_values) self.response.out.write(rendered) Everything works fine. Now, I'm trying to make use of i18n support in jijas2. But I have a lot of problems and I would apreciate your help. First of all I read jijas2 documentation and API, and the way to implement this feature is with this lines: import gettext (..and in my request handler) domain = myproject dirname = os.path.dirname(__file__) locales = en_US translations = gettext.find(domain, dirname, locales) env = Environment(loader=FileSystemLoader (template_dirs),extensions=['jinja2.ext.i18n']) env.install_gettext_translations(translations) Second question: I have experiencie with PHP, so it not so hard understand gettext and po/mo files operation, so I think I have to upload my po files into ROOT/locale/LC_MESSAGES/en_US/myproject.po Regards --~--~-~--~~~---~--~~ 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: Datastore Remote-Access Interactive Python Console
Hi Ed, Allen Hutchinson has written an excellent blog post showing how to work around this exact issue: http://allen.hutchison.org/2009/03/appengine-remoteapi-example-on-os-x.html The long and the short of it is that App Engine bundles a copy of PyYAML, and expects it to be present, but the path hack I presented in the article doesn't include it. You can either follow Allen's suggestion and modify the script, or you can install the PyYAML module. If you have easy_install, that's as simple as easy_install pyyaml. -Nick Johnson On Mar 5, 7:55 am, Ed edgam...@gmail.com wrote: Hi all, Following Johnson's article Accessing the datastore remotely with remote_api, I tried to run appengine_console.py to create the interactive console and connect to the datastore, but I am getting the message ImportError: No module named yaml (see below). C:\VPE_GAEpython appengine_console.py ecoknowmics Traceback (most recent call last): File appengine_console.py, line 8, in module from google.appengine.ext import db File C:\VPE_GAE\google\appengine\ext\db\__init__.py, line 88, in module from google.appengine.api import datastore File C:\VPE_GAE\google\appengine\api\datastore.py, line 47, in module from google.appengine.datastore import datastore_index File C:\VPE_GAE\google\appengine\datastore\datastore_index.py, line 53, in module from google.appengine.api import validation File C:\VPE_GAE\google\appengine\api\validation.py, line 44, in module import yaml ImportError: No module named yaml C:\VPE_GAE Can someone please point me to where I can find this module? 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: cooperate with top Google Apps Engine developer
Alex, You should use oDesk ( www.odesk.com ) for this. One catch though -- you'll have to pay the developers :-) Dale www.bookdope.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: New GAE App: Wordds.com - magazine articles optimized for your iPhone, Kindle BlackBerry
Hey Eric, Looks really cool! Very clean design too. If you don't mind sharing, what kinds of tools/libraries did you use to put it together? I'm also looking at doing an app that I want to be as useful through a mobile device as through the desktop web. -What web framework? -Is the mobile view layer done completely separate from the desktop? or is there some view layer toolkit that makes that kind of thing easy (single code base) Thanks Stu --~--~-~--~~~---~--~~ 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] Code reuse, templates, view layer understanding?
I'm slowly digesting all the pieces involved in this whole GAE thing (not to mention the ins and outs of web apps in general). Python is such a treat to work with. I recently read some article on Django/ Python that talked about the emphasis on code reuse woven into the technology. This is approach is something I really like. To illustrate my question I'll give an example. Lets say I want to build a competitor to gmail (on GAE... how funny would that be?!). Now, similar to gmail, I'd like to have a calender widget appear all throughout the the views the user gets on my app. So, when they view the inbox its on the bottom left. And maybe when they view their preferences its on the top right. And maybe if there's a family calender they would like to always see then both personal and family calenders would appear stacked all throughout the view on the app. So, my question is, is there some sort of code reuse like approach to producing the html/look for that calender (wherever its placed, however many different ones there are)? So that I can have multiple templates that I render (inbox,preferences, etc.) that will all have a calender in them, but without having to re-write the template code that creates the calender html/markup? Is this something I'd do with javascript, where I have javascript that implements the widget and just call that script into whatever templates I want it? Thanks in advance. Stu --~--~-~--~~~---~--~~ 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 handler for logout?
what is the difference between / and self.request.get('url' '/' ) ? is it the full address? (Yes, I will try later this evening :-) On Mar 5, 1:10 am, pedepy paul.ro...@gmail.com wrote: yes i was gonna say, keeping track of the original URL in a logout operation is probably not important, as you most likely want to simply redirect to home page. (this can also make the user more 'secure' that his session has indeed been properly terminated if its important to your app).. here's my way, pretty similar: class LogoutHandler(BaseHandler): def get(self ): self.redirect( users.create_logout_url( self.request.get ( 'uri', '/' ) ) ) On Mar 4, 1:45 pm, OliWeiD oliver.weimar.dr...@googlemail.com wrote: Hi Paul, after multiple trials I found a way which is working: 1) as link I'm using now /logout 2) the following handler is answering to it (typical stuff in app.yaml and wsgi application) class LogoutHelper(webapp.RequestHandler): def get(self): usr = users.get_current_user() if not usr: self.redirect(/) return # HERE I'M DOING THE CLEANUP STUFF url = users.create_logout_url(/) self.redirect(url) Thanks for the hints! Kind Regards Oliver W-D On 4 Mrz., 15:31, Paul Roy paul.ro...@gmail.com wrote: yep well turns out this is exactly what im doing. but i dont see this as generating a blank page. i have to try out the code i suggested yesterday. and i did make it home, thx :) Sent from my iPhone On 09-03-04, at 01:28, OliWeiD oliver.weimar.dr...@googlemail.com wrote: Well, I've got the idea. But I put the logout-uri into the html sitting on the page. With your idea in mind, don't I need a blank page, doing the del session stuff and then logout, passing the correct logout uri as an argument to that blank page?? Now I have to go to the train, hopefully you get, where you want to go. Oliver W.D. On 4 Mrz., 06:26, Paul Roy paul.ro...@gmail.com wrote: perhaps, instead of using the users' method directly, create a logout handler where you perform the necessary operations before fowarding to the logout uri. the tricky part is keeping track of the original uri. the way i do it, is to pass it as a request argument. you could maybe subclass the request handler, with a logout method. such as: def logout(self, uri=None): check that there really is a user logged in if uri is None: uri = self.request.uri #not sure this part works.. del session and stuff.. self.redirect(user.logout(uri)) .. im not 100% sure about this since im just typing this on my phone 50ft underground in a speeding subway train with nothing to refer to, but you should get the idea. when i get home ill see what code i use exactly.. ;) ps i actually just missed my stop! lol.. damn you google!! (shakes fist) Sent from my iPhone On 09-03-04, at 00:01, OliWeiD oliver.weimar.dr...@googlemail.com wrote: Hi everybody, due to security reasons and for efficiency some sort of logout handler is needed. That means, when the user is clicking on the created logout link (users.create_logout_url) During that logout I want to delete a session cookie and delete the memcache entries for that user. Any idea? Kind Regards Oliver W-D.- 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] Windows 7 - can't run appengine sdk
AttributeError: 'module' object has no attribute 'HttpRpcServer' I'm getting this error message while trying dev_appserver.py on a project that is working in vista (Although in vista I used 1.1.7 and now in Windows 7 I use 1.19) Python is 2.5.4 x64 Please assist, what can cause this error --~--~-~--~~~---~--~~ 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: New Terms of Service :-(
Is this application http://code.google.com/intl/en/apis/opensocial/articles/appengine-0.8.html violation of 4.4 ? On 3月5日, 上午10時19分, tankh64 tank...@gmail.com wrote: If this is indeed a violation of 4.4, it means that all separate organisations has to be treated as one application (even if they are accessed on their own domains); this makes the application artificially complicated to build and maintain. I would really appreciate clarification from the App Engine team on this. On Mar 5, 4:47 am, DeletingApps davide.rogn...@gmail.com wrote: I am currently developing my app to operate on 1 application instance per company/organisation. These application instances can have content/xml messages that flows in/out between them. Is this considered to be in violation of the above terms ? I think this could be a violation of the New Terms :-( --~--~-~--~~~---~--~~ 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: I want more fields than in DB models?
Try use db.Expando instead of db.Model, that'll all you to add fields without defining them first. On Mar 4, 9:45 pm, li jinyu disorder...@gmail.com wrote: 2009/3/4 Doug doug...@gmail.com I am also pretty green with GAE, but I think that the db Model Event and the db model event are 2 different db models. If they are 2 different models this would be why you are always getting none when you read from it. You would be able to see if you have 2 in the console. OK, I'll check that. Thanks. BTW - What is None? I do not see that as a db Model option in the Google doc. It looks to me like you would want those to be strings. In fact, I don't want to create columns for color and status, so I use None Doug On Mar 3, 10:32 pm, disorderdev disorder...@gmail.com wrote: Hi, I'm a newbie here, both python and app engine. a few questions: I store some fields in DB, but when show message on Web, I need more fields, most of them are calculated according to fields in DB, For now I don't want to do the calculating on web, but when I add some fields to the DB model class, the web dose not recognize them, all values are None, what should I do? For example, I have a class class Event(db.Model) : owner = db.UserProperty() title = db.StringProperty() content = db.StringProperty(multiline = True) status = None color = None when showing events on web, I want 'color' and 'status', so after retrieve the data from DB, I do the following: for event in events : logger.info(event.status) logger.info(event.color); event.create_time = datetime.now() event.status = Finished event.color = green but on web, they are still None. BTW: I have to add status and color in class, or these fields are not recognized. -- Don't schedule every day, make them disorder. --~--~-~--~~~---~--~~ 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: Moving our data to Google App Engine
Hi, App Engine doesn't accept hard drives for loading of data. Currently, all data must be loaded in to datastore via HTTP requests. For this purpose, we have a bulk upload utility that can populate the data for your app from your local machine. Please see our documentation for more information: http://code.google.com/appengine/docs/python/tools/uploadingdata.html -Marzia On Mon, Mar 2, 2009 at 8:35 PM, Dong Wang dongwang...@gmail.com wrote: I have some questions about transfer large amounts of data (10+ TB). I am wondering if the data can be shipped in via FedEx or UPS. I am hoping to have the data available faster then an internet transfer. I have a few questions about this possibility. - How quickly will the data be available on Google App Engine after receiving the data? - Can the hard drives (to ship data) be returned? - Is there any additional cost for handling and plugging in the drive? - What zip code will the data be shipped to? I need it for calculating costs. Thanks for your help --~--~-~--~~~---~--~~ 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: Intermittent upload problems this week
Hi, I can't say I know exactly what is happening here, since I've never seen this message before. Some Googling turned up this page: http://code.activestate.com/recipes/301740/ Reading this, it seems to indicate that it could be that in the request there is the '\r\n' end line, instead of just '\n'. If I had to guess this could either be in your auth cookies file or in your app.yaml file. I would just try running something like sed on both of these files to replace '\r\n' with '\n' to see if that works. -Marzia On Wed, Mar 4, 2009 at 11:34 PM, theillustratedlife toonscr...@nvbell.netwrote: I've been having intermittent issues uploading this week. I think they are tied to my computer, but I upgraded to SDK 1.1.9 and they haven't gone away. I was once able to get around them by throwing away the auth cookies in my user folder. (It's possible that was a different but similar error. I don't recall). I've never had issues before. It's unbelievably frustrating to not be able to deploy a new feature after I've been up all night building it. The traceback is below. Also, since upgrading to 1.1.9 both runserver and update have been very frustrating. runserver won't work unless I delete the . in .google_appengine's link; however, I can't update without putting it back in. If I forget to remove the ., usually I have to start the whole server over. I've opened an issue for this: http://code.google.com/p/google-app-engine-django/issues/detail?id=112can=5 update problem traceback: ERROR:root:An unexpected error occurred. Aborting.Traceback (most recent call last): Filemyapp\.google_appengine\google\appengine\tools\appcfg.py, line 1213, in DoUpload missing_files = self.Begin() Filemyapp\.google_appengine\google\appengine\tools\appcfg.py, line 1009, in Begin version=self.version, payload=self.config.ToYAML()) Filemyapp\google_appengine\google\appengine\tools\appengine_rpc.py, line 312, in Send Filemyapp\google_appengine\google\appengine\tools\appengine_rpc.py, line 344, in _Authenticate Filemyapp\google_appengine\google\appengine\tools\appengine_rpc.py, line 233, in _Authenticate Filemyapp\google_appengine\google\appengine\tools\appengine_rpc.py, line 177, in _GetAuthToken FileC:\Program Files\Python\r2.5\lib\urllib2.py, line 381, in open response = self._open(req, data) FileC:\Program Files\Python\r2.5\lib\urllib2.py, line 399, in _open '_open', req) FileC:\Program Files\Python\r2.5\lib\urllib2.py, line 360, in _call_chain result = func(*args) FileC:\Program Files\Python\r2.5\lib\urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) FileC:\Program Files\Python\r2.5\lib\urllib2.py, line 1082, in do_open raise URLError(err)URLError: urlopen error (8, 'EOF occurred in violation of protocol')Traceback (most recent call last): Filemanage.py, line 30, in module execute_manager(settings) Filemyapp\__init__.py, line 340, inexecute_manager Filemyapp\__init__.py, line 295, inexecute Filemyapp\appengine_django\management\commands\update.py, line 51, in run_from_argv run_appcfg() Filemyapp\appengine_django\management\commands\update.py, line 40, in run_appcfg appcfg.main(new_args) Filemyapp\.google_appengine\google\appengine\tools\appcfg.py, line 1967, in main result = AppCfgApp(argv).Run() Filemyapp\.google_appengine\google\appengine\tools\appcfg.py, line 1418, in Run self.action(self) Filemyapp\.google_appengine\google\appengine\tools\appcfg.py, line 1879, in __call__ return method() Filemyapp\.google_appengine\google\appengine\tools\appcfg.py, line 1669, in Update lambda path: open(os.path.join(basepath, path), rb)) Filemyapp\.google_appengine\google\appengine\tools\appcfg.py, line 1213, in DoUpload missing_files = self.Begin() Filemyapp\.google_appengine\google\appengine\tools\appcfg.py, line 1009, in Begin version=self.version, payload=self.config.ToYAML()) Filemyapp\google_appengine\google\appengine\tools\appengine_rpc.py, line 312, in Send Filemyapp\google_appengine\google\appengine\tools\appengine_rpc.py, line 344, in _Authenticate Filemyapp\google_appengine\google\appengine\tools\appengine_rpc.py, line 233, in _Authenticate Filemyapp\google_appengine\google\appengine\tools\appengine_rpc.py, line 177, in _GetAuthToken FileC:\Program Files\Python\r2.5\lib\urllib2.py, line 381, in open response = self._open(req, data) FileC:\Program Files\Python\r2.5\lib\urllib2.py, line 399, in _open '_open', req) FileC:\Program Files\Python\r2.5\lib\urllib2.py, line 360, in _call_chain result = func(*args) FileC:\Program Files\Python\r2.5\lib\urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) FileC:\Program Files\Python\r2.5\lib\urllib2.py, line 1082, in do_open raise URLError(err)urllib2.URLError: urlopen error
[google-appengine] Re: Filter against Reference Collection?
Hi, This should work just like this: my_fee = Feel.all().filter('prop2 =' 11).get() foos = Foo.all().filter('my_items =', my_feel).fetch(10) -Marzia On Wed, Mar 4, 2009 at 8:19 PM, Devel63 danstic...@gmail.com wrote: Is it possible to filter against a named reference collection? The datastore doesn't complain, but I never get any results... class Foo(search.SearchableModel): prop1 = TextProperty() class Fee(db.Model): prop2 = db.IntegerProperty() prop3 = db.ReferenceProperty(Foo, collection_name='my_items') my_fee = Fee.all().filter('prop2 =', 11).get() foos = Foo.all().filter('my_items =', my_fee.key()) I have tried every variation I can think of: using keys as above, using my_fee directly without the key call, putting a str() around the key, etc.). I think I saw it work once or twice, but now I'm not sure if that was just an illusion, and I can't replicate it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Transcript: App Engine chat time March 4
[7:00pm] marzia_google: (and this marks the beginning of App Engine chat time [7:00pm] smwaveforms: so does the app-engine-patcher run on top of django 0.96 [7:00pm] smwaveforms: or instead of it [7:01pm] cresloyd joined the chat room. [7:01pm] marzia_google: i'm not an app-engine-patch expert, but i think it works with either 0.96 and 1.0 [7:02pm] Kardax: Is there any particular format to this chat? [7:02pm] marzia_google: no format [7:02pm] dan_google: Shout questions. And answers, if you have 'em. [7:02pm] smwaveforms: I am wondering if you are running both 0.96 and the patch at the same time. That would seem to be expensive [7:02pm] Kardax: Ok, question: permanent unique user identifiers... something we can use in a key name... any chance this will happen soon? [7:03pm] oktopus joined the chat room. [7:03pm] marzia_google: re:app-engine-patch, i don't think there is significant additional overhead involved, it's basically just an extension of django that bridges the gap between app engine and traditional environments [7:04pm] taylorhughes: @Kardax good question! [7:04pm] smwaveforms: @Marzia, that is good news. [7:04pm] marzia_google: re: permanent unique user identifiers, we don't have any very immediate plans to introduce it, but it's something we are actively investigating [7:04pm] Kardax: So... how can one safely use the Google User's API... what if a user changes their email address? [7:05pm] amichail: How to fix an index that is stuck on Building? [7:05pm] marzia_google: so that is an issue with the user's api in theory, in reality, this is a very rare occurence [7:05pm] marzia_google: it almost never happens [7:06pm] Kardax: That's true... but it's always the rare stuff that bites ya [7:06pm] marzia_google: if an index has been in building more than 24 hours you will need to send an email to the group and someone will be able to fix it [7:06pm] taylorhughes: the main issue I ran into is, I changed my user account's e-mail address and couldn't create a User object to use in a query because my old e-mail address was not linked to an existing account anymore [7:06pm] marzia_google: if it's less than 24 hours it could still be building [7:07pm] marzia_google: @taylorhughes yes, currently, unfortunately this happens, you would basically need to treat them like a new user [7:07pm] marzia_google: or manually link the two accounts together [7:07pm] taylorhughes: the way I'm dealing with it is to record the user's e-mail address when the account is created separately so I can at least find it later to migrate it [7:08pm] marzia_google: that is the best solution right now [7:08pm] Kardax: I posted an issue about the permanent ID's a while back, for anyone who's interested. #1019 [7:08pm] Kardax: http://code.google.com/p/googleappengine/issues/detail?id=1019 [7:08pm] dw: i was wondering if there was an official comment on the recent failure that resulted in high latencies. how did this happen? what is being done to prevent such an evil problem in future? [7:09pm] dw: particularly im interested in how you segment your rollouts. seems something went live that you couldn't roll back, and that's worrying [7:09pm] marzia_google: the problems stemmed from monday's maintenance [7:09pm] marzia_google: you can read the most concise useful summary that was just posted: [7:09pm] marzia_google: http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/86ab36fa2e7fac2c [7:09pm] dw: th [7:10pm] dw: *thx [7:10pm] marzia_google: but we take what happened very seriously [7:10pm] marzia_google: obviously this is one of the worst downtimes we've seen since launch [7:11pm] marzia_google: generally at Google when something like this happens there is a full internal post mortem to ensure that this kind of stuff doesn't happen again [7:11pm] marzia_google: so the team will be going through everything and fixing things so that this kind of thing is less likely to happen in the future [7:12pm] dw: can you expand at all on what caused the failure? is a new component resulting in higher io? *very curious* [7:14pm] marzia_google: at this point, beyond what is published there isn't much more I can say, it wasn't the result of any specific feature or system [7:14pm] Kardax: My app is just a little experiment at the moment, but I'm seeing greatly improved performance vs. yesterday and this morning [7:14pm] marzia_google: it was basically just the result of the scheduled maintenance [7:14pm] dw: marzia_google: thanks again [7:14pm] marzia_google: it should be coming back in line with more typical performance now [7:15pm] marzia_google: i can say the team has been working _very_ hard the past couple of days on this problem [7:15pm] marzia_google: (as you can imagine) [7:15pm] dw: telling me that only makes me more curious sounds like a fun problem [7:15pm] pranny: http://appgallery.appspot.com/results?topapps=truestart=15num=5 any progress on thie error that pops up when viewing this. Sorry can't file
[google-appengine] Re: pytz and astimezone
Any idea on how to include it with appengine? On Mar 5, 3:59 am, Tim Hoffman zutes...@gmail.com wrote: pytz isn't included with python or gae, you will need to get the package from pypi T On Mar 5, 10:34 am, andrew andrew.r...@gmail.com wrote: I was able to convert the datetime timezone from the datastore to EST by following thehttp://timezones.appspot.com/ for example: event.date = event.date.replace(tzinfo=TZINFOS ['utc']) event.date = event.date.astimezone(TZINFOS ['est']) This works great, however I noticed that EST is hardcoded to UTC-5: def utcoffset(self, dt): return datetime.timedelta(hours=-5) So when spring rolls around and we are in daylight savings, I'm going to have to update the code to UTC-4, or my time will be off by an hour. It seems that pytz would solve this problem but I couldn't figure out how to import it into my application. I tried import pytz but got error type 'exceptions.ImportError': No module named pytz Any suggestions? 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: App Engine geographic distribution
I did search. A bump is appropriate for this topic because Google simply hasn't seen it yet. It is a simple yes or no answer and when Google or someone who knows sees it, it will be solved and searchable for future GAE users. On Mar 5, 3:47 am, David Symonds dsymo...@gmail.com wrote: On Tue, Mar 3, 2009 at 10:03 AM, Jeffrey Rosen jef...@gmail.com wrote: Bump for Google Please don't. Search the group archives instead. Dave. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Mixed Site Content - Cache Issue?
I can't confirm this but i want to report it in case somebody has experienced the same. Just now i tried to bring up a personal site i have on the AppEngine and after some delay (i'm aware there are delay issues going on in the AppEngine) the content that loaded was not my site's content. Upon refresh it loaded the correct content. I browsed the site a little and again i got some other site's page. The browser remained under my domain, didn't leave the site. My first impulse was that the browser was being hijacked or that the site had been hacked, but upon verification that doesn't seem to be the case - it working properly now and i haven't been able to reproduce it again. I can't say 100% that it was an AppEngine fluke and not something else. If you have seen a similar issue please let me 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 -~--~~~~--~~--~--~---
[google-appengine] Re: Windows 7 - can't run appengine sdk
Hi Chen, Please post the full text of the traceback you received. Have you tried reinstalling the SDK? Do you by any chance have a module called appengine_rpc anywhere in your application, or sys.path? David. 2009/3/5 Chen Harel chook.ha...@gmail.com: AttributeError: 'module' object has no attribute 'HttpRpcServer' I'm getting this error message while trying dev_appserver.py on a project that is working in vista (Although in vista I used 1.1.7 and now in Windows 7 I use 1.19) Python is 2.5.4 x64 Please assist, what can cause this error -- 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] Re: pytz and astimezone
Hi You can't probably can't just download and include it with your project as it has too many files in the module. Have a look at this. http://takashi-matsuo.blogspot.com/2008/07/using-zipped-pytz-on-gae.html Rgds T On Mar 6, 6:29 am, andrew andrew.r...@gmail.com wrote: Any idea on how to include it with appengine? On Mar 5, 3:59 am, Tim Hoffman zutes...@gmail.com wrote: pytz isn't included with python or gae, you will need to get the package from pypi T On Mar 5, 10:34 am, andrew andrew.r...@gmail.com wrote: I was able to convert the datetime timezone from the datastore to EST by following thehttp://timezones.appspot.com/ for example: event.date = event.date.replace(tzinfo=TZINFOS ['utc']) event.date = event.date.astimezone(TZINFOS ['est']) This works great, however I noticed that EST is hardcoded to UTC-5: def utcoffset(self, dt): return datetime.timedelta(hours=-5) So when spring rolls around and we are in daylight savings, I'm going to have to update the code to UTC-4, or my time will be off by an hour. It seems that pytz would solve this problem but I couldn't figure out how to import it into my application. I tried import pytz but got error type 'exceptions.ImportError': No module named pytz Any suggestions? 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] Appgallery timeouts
Kind of sad to see the appgallery timeout on half of the requests while browsing the app gallery. Does not inspire much confidence in the platform for newcomers! http://appgallery.appspot.com/results?topapps=truestart=25num=5 --~--~-~--~~~---~--~~ 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 geographic distribution
I can't comment as to the precise geographic distribution of apps and appservers, but let me put it this way... (a) our datastore API offers transactions (b) a datastore transaction completes in roughly 50ms, sometimes less (c) when routing requests to applications we have no idea which entity groups will be modified by the application when serving that request. further, we don't ask for any hint or indication of this from the application developer. (d) http://www.allthingsdistributed.com/2008/12/eventually_consistent.html Jon On Thu, Mar 5, 2009 at 2:19 PM, Jeffrey Rosen jef...@gmail.com wrote: I did search. A bump is appropriate for this topic because Google simply hasn't seen it yet. It is a simple yes or no answer and when Google or someone who knows sees it, it will be solved and searchable for future GAE users. On Mar 5, 3:47 am, David Symonds dsymo...@gmail.com wrote: On Tue, Mar 3, 2009 at 10:03 AM, Jeffrey Rosen jef...@gmail.com wrote: Bump for Google Please don't. Search the group archives instead. Dave. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: pytz and astimezone
I downloaded it and import it for Mashical.com without a problem. It probably adds some overhead at startup, but it's an invaluable utility if your dealing with multiple timezones. Steve On Thu, Mar 5, 2009 at 6:34 PM, Tim Hoffman zutes...@gmail.com wrote: Hi You can't probably can't just download and include it with your project as it has too many files in the module. Have a look at this. http://takashi-matsuo.blogspot.com/2008/07/using-zipped-pytz-on-gae.html Rgds T On Mar 6, 6:29 am, andrew andrew.r...@gmail.com wrote: Any idea on how to include it with appengine? On Mar 5, 3:59 am, Tim Hoffman zutes...@gmail.com wrote: pytz isn't included with python or gae, you will need to get the package from pypi T On Mar 5, 10:34 am, andrew andrew.r...@gmail.com wrote: I was able to convert the datetime timezone from the datastore to EST by following thehttp://timezones.appspot.com/ for example: event.date = event.date.replace(tzinfo=TZINFOS ['utc']) event.date = event.date.astimezone(TZINFOS ['est']) This works great, however I noticed that EST is hardcoded to UTC-5: def utcoffset(self, dt): return datetime.timedelta(hours=-5) So when spring rolls around and we are in daylight savings, I'm going to have to update the code to UTC-4, or my time will be off by an hour. It seems that pytz would solve this problem but I couldn't figure out how to import it into my application. I tried import pytz but got error type 'exceptions.ImportError': No module named pytz Any suggestions? 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: Is there a handler for logout?
oh the only difference is that if I ever choose to pass the logout handler an url 'value' it should be what it redirects it to, otherwise default to '/' for instance, www.mysite.com/logout?url=/something it will redirect to /something .. thats probably more useful in login situations though where you obviously want the user to be returned to exactly where he was... On Thu, Mar 5, 2009 at 10:37 AM, OliWeiD oliver.weimar.dr...@googlemail.com wrote: what is the difference between / and self.request.get('url' '/' ) ? is it the full address? (Yes, I will try later this evening :-) On Mar 5, 1:10 am, pedepy paul.ro...@gmail.com wrote: yes i was gonna say, keeping track of the original URL in a logout operation is probably not important, as you most likely want to simply redirect to home page. (this can also make the user more 'secure' that his session has indeed been properly terminated if its important to your app).. here's my way, pretty similar: class LogoutHandler(BaseHandler): def get(self ): self.redirect( users.create_logout_url( self.request.get ( 'uri', '/' ) ) ) On Mar 4, 1:45 pm, OliWeiD oliver.weimar.dr...@googlemail.com wrote: Hi Paul, after multiple trials I found a way which is working: 1) as link I'm using now /logout 2) the following handler is answering to it (typical stuff in app.yaml and wsgi application) class LogoutHelper(webapp.RequestHandler): def get(self): usr = users.get_current_user() if not usr: self.redirect(/) return # HERE I'M DOING THE CLEANUP STUFF url = users.create_logout_url(/) self.redirect(url) Thanks for the hints! Kind Regards Oliver W-D On 4 Mrz., 15:31, Paul Roy paul.ro...@gmail.com wrote: yep well turns out this is exactly what im doing. but i dont see this as generating a blank page. i have to try out the code i suggested yesterday. and i did make it home, thx :) Sent from my iPhone On 09-03-04, at 01:28, OliWeiD oliver.weimar.dr...@googlemail.com wrote: Well, I've got the idea. But I put the logout-uri into the html sitting on the page. With your idea in mind, don't I need a blank page, doing the del session stuff and then logout, passing the correct logout uri as an argument to that blank page?? Now I have to go to the train, hopefully you get, where you want to go. Oliver W.D. On 4 Mrz., 06:26, Paul Roy paul.ro...@gmail.com wrote: perhaps, instead of using the users' method directly, create a logout handler where you perform the necessary operations before fowarding to the logout uri. the tricky part is keeping track of the original uri. the way i do it, is to pass it as a request argument. you could maybe subclass the request handler, with a logout method. such as: def logout(self, uri=None): check that there really is a user logged in if uri is None: uri = self.request.uri #not sure this part works.. del session and stuff.. self.redirect(user.logout(uri)) .. im not 100% sure about this since im just typing this on my phone 50ft underground in a speeding subway train with nothing to refer to, but you should get the idea. when i get home ill see what code i use exactly.. ;) ps i actually just missed my stop! lol.. damn you google!! (shakes fist) Sent from my iPhone On 09-03-04, at 00:01, OliWeiD oliver.weimar.dr...@googlemail.com wrote: Hi everybody, due to security reasons and for efficiency some sort of logout handler is needed. That means, when the user is clicking on the created logout link (users.create_logout_url) During that logout I want to delete a session cookie and delete the memcache entries for that user. Any idea? Kind Regards Oliver W-D.- 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] query vs filter()
is there any difference in performance to use a single query call (like in, WHERE prop = value AND prop = value, etc vs running a loop of filter() calls and then executing the query ? seems to me that if you can build your query all in one shot, you can avoid one or many loop(s) in your code ... but everyone seems to be all about using all().filter() these days .. help? --~--~-~--~~~---~--~~ 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] a fundamental increase in App Engine transparency and locality is needed
I have long wanted to build apps on Google App Engine and have learned a lot about it in preparation for doing so. However the one problem is if I have a customer and their app goes down for an hour and they call me and say what happened? and how can we prevent that in the future? my only response will be I don't know and we can't. These are unacceptable answers. If you want App Engine to cross the chasm and become really for real then at the very least what you need to do is provide the kind of depth of sight into your infrastructure that you the Google engineers have. Further you need some kind of locality in the cloud: it would help if there were some way of ensuring reliability by knowing that (1) I have bought space on some particular cluster of machines (2) which is now stable and more apps are not being added to it; I should know (3) who is maintaining that cluster and (4) be able to send them a trouble ticket and (5) have some idea of what is wrong and how long it is going to take them to fix it. This opaque cloud utility of compute stuff is a fantasy: some locality and transparency will be needed or App Engine will never be really for real. --~--~-~--~~~---~--~~ 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] Query latency is not resolved
I just got the issues resolved email from Mike and I think it is a little misleading. Please look at the query time on the status page: http://code.google.com/status/appengine/detail/datastore/2009/03/05#ae-trust-detail-datastore-query-latency I am still getting Timeouts from queries in my apps due to the high latency... Can you at least increase the Timeout threshold if the latency is going to be consistently this high? --~--~-~--~~~---~--~~ 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: Query latency is not resolved
I agree - and compared to last week, it's three or four times higher. I'm just hanging out for the next scheduled maintenance, when they reckon it will return to pre-upgrade levels. I've pared everything I can back for our app, and hoping we can limp through till then without losing customers. I don't know if increasing the timeout will help - my (qualitative) experience is that either datastore accesses work fairly quickly, or they hang and time out. Longer timeout might just let them hang longer, although it would be an interesting experiment. --~--~-~--~~~---~--~~ 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: Query latency is not resolved
Thanks Greg, I didn't know the behavior of the datastore worked like that. I assumed it was linear for reads. I suppose then if the latency goes beyond a certain threshold some operations are just doomed to fail. But shouldn't the status graph be showing as red in this case? I propose: Blue = Fast Yellow = Slow Red = Broken On Mar 5, 10:23 pm, GregF g.fawc...@gmail.com wrote: I agree - and compared to last week, it's three or four times higher. I'm just hanging out for the next scheduled maintenance, when they reckon it will return to pre-upgrade levels. I've pared everything I can back for our app, and hoping we can limp through till then without losing customers. I don't know if increasing the timeout will help - my (qualitative) experience is that either datastore accesses work fairly quickly, or they hang and time out. Longer timeout might just let them hang longer, although it would be an interesting experiment. --~--~-~--~~~---~--~~ 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 handler for logout?
Cool, that makes sense. Thank you again. On 6 Mrz., 01:30, Paul Roy paul.ro...@gmail.com wrote: oh the only difference is that if I ever choose to pass the logout handler an url 'value' it should be what it redirects it to, otherwise default to '/' for instance,www.mysite.com/logout?url=/somethingit will redirect to /something .. thats probably more useful in login situations though where you obviously want the user to be returned to exactly where he was... On Thu, Mar 5, 2009 at 10:37 AM, OliWeiD oliver.weimar.dr...@googlemail.com wrote: what is the difference between / and self.request.get('url' '/' ) ? is it the full address? (Yes, I will try later this evening :-) On Mar 5, 1:10 am, pedepy paul.ro...@gmail.com wrote: yes i was gonna say, keeping track of the original URL in a logout operation is probably not important, as you most likely want to simply redirect to home page. (this can also make the user more 'secure' that his session has indeed been properly terminated if its important to your app).. here's my way, pretty similar: class LogoutHandler(BaseHandler): def get(self ): self.redirect( users.create_logout_url( self.request.get ( 'uri', '/' ) ) ) On Mar 4, 1:45 pm, OliWeiD oliver.weimar.dr...@googlemail.com wrote: Hi Paul, after multiple trials I found a way which is working: 1) as link I'm using now /logout 2) the following handler is answering to it (typical stuff in app.yaml and wsgi application) class LogoutHelper(webapp.RequestHandler): def get(self): usr = users.get_current_user() if not usr: self.redirect(/) return # HERE I'M DOING THE CLEANUP STUFF url = users.create_logout_url(/) self.redirect(url) Thanks for the hints! Kind Regards Oliver W-D On 4 Mrz., 15:31, Paul Roy paul.ro...@gmail.com wrote: yep well turns out this is exactly what im doing. but i dont see this as generating a blank page. i have to try out the code i suggested yesterday. and i did make it home, thx :) Sent from my iPhone On 09-03-04, at 01:28, OliWeiD oliver.weimar.dr...@googlemail.com wrote: Well, I've got the idea. But I put the logout-uri into the html sitting on the page. With your idea in mind, don't I need a blank page, doing the del session stuff and then logout, passing the correct logout uri as an argument to that blank page?? Now I have to go to the train, hopefully you get, where you want to go. Oliver W.D. On 4 Mrz., 06:26, Paul Roy paul.ro...@gmail.com wrote: perhaps, instead of using the users' method directly, create a logout handler where you perform the necessary operations before fowarding to the logout uri. the tricky part is keeping track of the original uri. the way i do it, is to pass it as a request argument. you could maybe subclass the request handler, with a logout method. such as: def logout(self, uri=None): check that there really is a user logged in if uri is None: uri = self.request.uri #not sure this part works.. del session and stuff.. self.redirect(user.logout(uri)) .. im not 100% sure about this since im just typing this on my phone 50ft underground in a speeding subway train with nothing to refer to, but you should get the idea. when i get home ill see what code i use exactly.. ;) ps i actually just missed my stop! lol.. damn you google!! (shakes fist) Sent from my iPhone On 09-03-04, at 00:01, OliWeiD oliver.weimar.dr...@googlemail.com wrote: Hi everybody, due to security reasons and for efficiency some sort of logout handler is needed. That means, when the user is clicking on the created logout link (users.create_logout_url) During that logout I want to delete a session cookie and delete the memcache entries for that user. Any idea? Kind Regards Oliver W-D.- 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: Help: The phone number has been sent too many messages or has already been used to confirm an account.
I am having the same issue. When I try to fill out that form, it say Carrier. I filled in ATT, but it says its invalid. I think I'm just going to give up on app engine if it is this difficult just to create an application. On Feb 26, 4:01 pm, interactivecl...@gmail.com interactivecl...@gmail.com wrote: Yea, I am getting the same thing. Cant seem to post messages and the registration seems to be screwy. I know I didnt register my number.. I should just stick with Microsoft. At least it works. On Feb 21, 2:03 pm, Guy Davis da...@guydavis.ca wrote: Hi Geoffrey, I tried that form, but it seems broken. I fill in all fields, but on submit I get an error complaining about missing comments. See screen shot athttp://www.imgshack.info/images/20ph6kmlm1m9buem99.png Is the only way to solve this problem a broken form? Isn't anyone from Google looking after registrations? Thanks in advance, Guy P.S. Sorry about the double post, but Groups seems to be dropping my post content? On Feb 19, 8:50 am, Geoffrey Spear geoffsp...@gmail.com wrote: http://appengine.google.com/waitlist/sms_issues On Feb 19, 10:18 am, Guy Davis da...@guydavis.ca wrote: Bouncing this post to keep in view. Hopefully a Googler (Marzia?) will notice and help me resolve this registration snafu. Is my only other option to use a friend's cellphone? That seems to go against the purpose of verifying my identity. However, if I get no help clearing the disallowed state on myphonenumber, a friend'sphone would seem the only answer. Any help would be greatly appreciated. Thanks in advance, Guy On Feb 18, 11:55 am, Guy Davis da...@guydavis.ca wrote: I am not able to get past the Verify YourAccountbySMS page. I had originally tried using my plain GMailaccount (guydavis...@gmail.com), but now would like to use my current Google Appsaccount(da...@guydavis.ca). I have reviewed theSMSFAQ page and it does not provide help for my current situation. Would someone from Google please contact me at either address so that I can get past this and create an application? Any help would be greatly appreciated. Thanks in advance, Guy --~--~-~--~~~---~--~~ 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] Can't log into GAE using Opera 9.64 on mac
I tried my site smw.appspot.com and www.hypetape.com/login with the latest version of Opera After entering email and password I get redirected back to same page with blank textfields (start over) gmail, calendar, groups, all log in ok. It seems to just be app engine. BTW, gmail looks great on this new browser. Way better than the new web mail the Opera folks are rolling out! -Tim --~--~-~--~~~---~--~~ 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] tipjar
any tip on what kind of full text search tipjar is using ? e.g. http://moderator.appspot.com/#9/e=3cfct=cd --~--~-~--~~~---~--~~ 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: Windows 7 - can't run appengine sdk
I have been using 1.1.8 on Windows 7 for a month, so your problem is likely something else. Good luck. Sumit On Mar 5, 3:28 pm, David Wilson d...@botanicus.net wrote: Hi Chen, Please post the full text of the traceback you received. Have you tried reinstalling the SDK? Do you by any chance have a module called appengine_rpc anywhere in your application, or sys.path? David. 2009/3/5 Chen Harel chook.ha...@gmail.com: AttributeError: 'module' object has no attribute 'HttpRpcServer' I'm getting this error message while trying dev_appserver.py on a project that is working in vista (Although in vista I used 1.1.7 and now in Windows 7 I use 1.19) Python is 2.5.4 x64 Please assist, what can cause this error -- 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] HTTPS pages with some unencrypted information
Hi, I have setup some pages in app.yaml with secure: always and some few are getting the following warn message in e.g. Firefox (IE7 is similar): You have requested an encrypted page that contains some unencrypted information. Information that you see or enter on this page could easily be read by a third party. Is there a plug in or something to identify, which elements are unencrypted? Or a list of hints to check? Thanks in advance Oliver W-D --~--~-~--~~~---~--~~ 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: pytz and astimezone
HI The main thing to watch is the number of files in the fill pytz distribution, if you software stack also has a lot fo files you find youself over the 1000 file limit T On Mar 6, 9:17 am, Stephen Judd judd.step...@gmail.com wrote: I downloaded it and import it for Mashical.com without a problem. It probably adds some overhead at startup, but it's an invaluable utility if your dealing with multiple timezones. Steve On Thu, Mar 5, 2009 at 6:34 PM, Tim Hoffman zutes...@gmail.com wrote: Hi You can't probably can't just download and include it with your project as it has too many files in the module. Have a look at this. http://takashi-matsuo.blogspot.com/2008/07/using-zipped-pytz-on-gae.html Rgds T On Mar 6, 6:29 am, andrew andrew.r...@gmail.com wrote: Any idea on how to include it with appengine? On Mar 5, 3:59 am, Tim Hoffman zutes...@gmail.com wrote: pytz isn't included with python or gae, you will need to get the package from pypi T On Mar 5, 10:34 am, andrew andrew.r...@gmail.com wrote: I was able to convert the datetime timezone from the datastore to EST by following thehttp://timezones.appspot.com/ for example: event.date = event.date.replace(tzinfo=TZINFOS ['utc']) event.date = event.date.astimezone(TZINFOS ['est']) This works great, however I noticed that EST is hardcoded to UTC-5: def utcoffset(self, dt): return datetime.timedelta(hours=-5) So when spring rolls around and we are in daylight savings, I'm going to have to update the code to UTC-4, or my time will be off by an hour. It seems that pytz would solve this problem but I couldn't figure out how to import it into my application. I tried import pytz but got error type 'exceptions.ImportError': No module named pytz Any suggestions? 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 -~--~~~~--~~--~--~---