[google-appengine] Re: HTTP request
Hi Jiang, see this link http://code.google.com/appengine/docs/webapp/requesthandlerclass.html get() post() put() head() delete() On Aug 27, 10:22 am, Jiang <[EMAIL PROTECTED]> wrote: > Hi, > > I have a quick question: does app engine support form "PUT" and > "DELETE"? > > They are covered in online doc. I have tried all of them but every > time i make a request, it will be transferred to the "GET" method > automatically. > > So could anyone here helps me that how to get "put" and "delete" > calls? > > Thanks in advance! --~--~-~--~~~---~--~~ 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: HTTP request
see --> self.request.method def get(self): logging.info("" + self.request.method) self.response.out.write('get') def post(self): logging.info("" + self.request.method) self.response.out.write('post') def put(self): logging.info("" + self.request.method) self.response.out.write('put') def delete(self): logging.info("" + self.request.method) self.response.out.write('delete') On Aug 28, 2:48 am, Jiang <[EMAIL PROTECTED]> wrote: > HiDavide, > > Thanks for your reply but i still get the problem. For example, i have > a simple class: > > class SimpleService(RequestHandler): > def get(self): > self.response.headers['Content-Type'] = 'text/plain' > self.response.out.write('get') > > def post(self): > self.response.headers['Content-Type'] = 'text/plain' > self.response.out.write('post') > > def put(self): > self.response.headers['Content-Type'] = 'text/plain' > self.response.out.write('put') > > def delete(self): > self.response.headers['Content-Type'] = 'text/plain' > self.response.out.write('delete') > > Every time i try "PUT" and "DELETE", it will be routed to the get > method automatically. So i am not sure where the problem is. > > Thanks > > On Aug 28, 5:46 am,DavideRognoni<[EMAIL PROTECTED]> wrote: > > > Hi Jiang, > > see this > > linkhttp://code.google.com/appengine/docs/webapp/requesthandlerclass.html > > > get() > > post() > > put() > > head() > > delete() > > > On Aug 27, 10:22 am, Jiang <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I have a quick question: does app engine support form "PUT" and > > > "DELETE"? > > > > They are covered in online doc. I have tried all of them but every > > > time i make a request, it will be transferred to the "GET" method > > > automatically. > > > > So could anyone here helps me that how to get "put" and "delete" > > > calls? > > > > Thanks in advance! --~--~-~--~~~---~--~~ 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] javascriptrun - server-side JavaScript
javascriptrun allows you to build web applications by server-side JavaScript. This idea is inspired to Netscape and based on SpiderMonkey. javascriptrun: One syntax for client and server. http://pyoohtml.appspot.com/javascriptrun --~--~-~--~~~---~--~~ 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: cpedialog v1.0 released
I like it :-) Can you create a WIKI system based on CPEDIA ? On Aug 28, 5:56 pm, cpedia <[EMAIL PROTECTED]> wrote: > I'm very glad to announce the first release of cpedialog. > cpedialog is a blog tool for appengine user. It's an open source > program that distributed under the terms of the Apache License 2.0. > > Now its downloadable version is available > from:http://code.google.com/p/cpedialog/downloads/list > > You can aslo get the project overview document > from:http://code.google.com/p/cpedialog > > How to install cpedialog on > appengine:http://code.google.com/p/cpedialog/wiki/How_To_Install_cpedialog > > How to integrate picasaweb album with > cpedialog:http://code.google.com/p/cpedialog/wiki/How_to_integrate_picasaweb_al... > > Any issue or bug, please report > to:http://code.google.com/p/cpedialog/issues/list > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: how to upload/download CSV file on Google App Engine
Downloading Data From GAE Using Pickle http://groups.google.com/group/google-appengine/browse_thread/thread/b480610aa0eddfac/84e3606f3e8e1f0e?lnk=gst&q=davide+rognoni+pickle#84e3606f3e8e1f0e On Aug 28, 5:05 am, VV <[EMAIL PROTECTED]> wrote: > Hi, > I'm new for Python and Google App Engine, So may I ask a very simple > or very stupid question ; ( > I'm trying to upload a table from a csv file , store to google data > store and show this table on the web. > then in another page, I need compose the query result to a table and > also this table can be downloaded in csv format. > is anybody can share the code for the above scenarios? thanks in > advance. --~--~-~--~~~---~--~~ 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: javascriptrun - server-side JavaScript
What's Erlang? http://www.erlang.org/doc/getting_started/conc_prog.html#3 On Aug 28, 9:35 pm, Roberto Saccon <[EMAIL PROTECTED]> wrote: > Can you give an overview on how this is supposed to work ? The example > just shows how to create some HTML with Javascript, but can one write > the whole MVC thingy in JS using our framework ? And once the JS is > parsed, what happens then ? Do you create Python source code or do you > somehow manage to inject the logic into a running app ! > > btw. I once started myself to write a JS framework running on a non-JS > platform (http://erlyjs.googlecode.com) > > regards > Roberto > > On Aug 28, 3:39 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > javascriptrun allows you to build web applications by server-side > > JavaScript. > > This idea is inspired to Netscape and based on SpiderMonkey. > > > javascriptrun: One syntax for client and server. > > >http://pyoohtml.appspot.com/javascriptrun --~--~-~--~~~---~--~~ 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: GQL Query issue
Only one? per query?? On Aug 28, 9:07 pm, fdezjose <[EMAIL PROTECTED]> wrote: > Hello! I'm new in the App Engine world and I've run into an issue > that's driving me crazy. I need to compare two properties (ex. > propertyA > 4 AND propertyB > 8) But by doing that I've discovered > that only one property per query may have inequality filters... Any > suggestion or workaround to be able to accomplish this task? > > Thanks! > > José Luis --~--~-~--~~~---~--~~ 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: GQL Query issue
File "C:\Program Files\Google\google_appengine\google\appengine\api \datastore.py", line 1077, in _CheckFilter ', '.join(self.INEQUALITY_OPERATORS)) BadFilterError: BadFilterError: invalid filter: Only one property per query may have inequality filters (<=, >=, <, >).. On Aug 28, 9:51 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Only one? per query?? > > On Aug 28, 9:07 pm, fdezjose <[EMAIL PROTECTED]> wrote: > > > Hello! I'm new in the App Engine world and I've run into an issue > > that's driving me crazy. I need to compare two properties (ex. > > propertyA > 4 AND propertyB > 8) But by doing that I've discovered > > that only one property per query may have inequality filters... Any > > suggestion or workaround to be able to accomplish this task? > > > Thanks! > > > José Luis --~--~-~--~~~---~--~~ 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: GQL Query issue
For your local application you can comment these checks :-) if operator in self.INEQUALITY_OPERATORS: if self.__inequality_prop and property != self.__inequality_prop: raise datastore_errors.BadFilterError( 'Only one property per query may have inequality filters (%s).' % ', '.join(self.INEQUALITY_OPERATORS)) elif len(self.__orderings) >= 1 and self.__orderings[0][0] != property: raise datastore_errors.BadFilterError( 'Inequality operators (%s) must be on the same property as the ' 'first sort order, if any sort orders are supplied' % ', '.join(self.INEQUALITY_OPERATORS)) On Aug 28, 9:07 pm, fdezjose <[EMAIL PROTECTED]> wrote: > Hello! I'm new in the App Engine world and I've run into an issue > that's driving me crazy. I need to compare two properties (ex. > propertyA > 4 AND propertyB > 8) But by doing that I've discovered > that only one property per query may have inequality filters... Any > suggestion or workaround to be able to accomplish this task? > > Thanks! > > José Luis --~--~-~--~~~---~--~~ 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: GQL Query issue
Why this limitation? On Aug 28, 10:17 pm, Nevin Freeman <[EMAIL PROTECTED]> wrote: > José, > > Many different workarounds are available, depending on your > circumstances. The simplest (not ideal) thing to do would be to run > two queries and then take the intersection of the two results, i.e.: > > q1 = Model.gql("WHERE prop1 < :1", number1) > q2 = Model.gql("WHERE prop2 > :1", number2) > > batch1 = q1.fetch(1000) > batch2 = q2.fetch(1000) > result = [] > > for entity in batch1: > if entity in batch2: > result.append(entity) > > return result > > If you give us a little more context, maybe people who have similar > situations can share with you how they have dealt with the limitation. > In my case, I had to change the way I store my data so that I can get > the right results with only one inequality operator per query (but > name equality operators). > > Nevin > > On Aug 28, 12:07 pm, fdezjose <[EMAIL PROTECTED]> wrote: > > > Hello! I'm new in the App Engine world and I've run into an issue > > that's driving me crazy. I need to compare two properties (ex. > > propertyA > 4 AND propertyB > 8) But by doing that I've discovered > > that only one property per query may have inequality filters... Any > > suggestion or workaround to be able to accomplish this task? > > > Thanks! > > > José Luis --~--~-~--~~~---~--~~ 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 objects different based on email case?
str(user1).lower() == str(user2).lower() On Aug 28, 6:35 pm, Savraj Singh <[EMAIL PROTECTED]> wrote: > Hi everyone, quick question. > > class Tests(webapp.RequestHandler): > def get(self): > user1 = users.User(email="[EMAIL PROTECTED]") > user2 = users.User(email="[EMAIL PROTECTED]") > > if user1 == user2: > self.response.out.write("users are the same") > else: > self.response.out.write("users are different") > > The result is that "users are different" -- I'm surprised by that. > Shouldn't they be the same? Especially savraj and Savraj both point to > my valid google account? I can work around this issue but according > to the API documentation I would assume that user1 and user2 are > equal. > > Thanks for your help! > > -Savraj --~--~-~--~~~---~--~~ 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: GQL Query issue
I don't like this "Restrictions on Queries" :-( On Aug 28, 10:26 pm, Nevin Freeman <[EMAIL PROTECTED]> wrote: > From:http://code.google.com/appengine/docs/datastore/queriesandindexes.html > > "The query mechanism relies on all results for a query to be adjacent > to one another in the index table, to avoid having to scan the entire > table for results. A single index table cannot represent multiple > inequality filters on multiple properties while maintaining that all > results are consecutive in the table." > > Nevin > > On Aug 28, 1:23 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Why this limitation? > > > On Aug 28, 10:17 pm, Nevin Freeman <[EMAIL PROTECTED]> wrote: > > > > José, > > > > Many different workarounds are available, depending on your > > > circumstances. The simplest (not ideal) thing to do would be to run > > > two queries and then take the intersection of the two results, i.e.: > > > > q1 = Model.gql("WHERE prop1 < :1", number1) > > > q2 = Model.gql("WHERE prop2 > :1", number2) > > > > batch1 = q1.fetch(1000) > > > batch2 = q2.fetch(1000) > > > result = [] > > > > for entity in batch1: > > > if entity in batch2: > > > result.append(entity) > > > > return result > > > > If you give us a little more context, maybe people who have similar > > > situations can share with you how they have dealt with the limitation. > > > In my case, I had to change the way I store my data so that I can get > > > the right results with only one inequality operator per query (but > > > name equality operators). > > > > Nevin > > > > On Aug 28, 12:07 pm, fdezjose <[EMAIL PROTECTED]> wrote: > > > > > Hello! I'm new in the App Engine world and I've run into an issue > > > > that's driving me crazy. I need to compare two properties (ex. > > > > propertyA > 4 AND propertyB > 8) But by doing that I've discovered > > > > that only one property per query may have inequality filters... Any > > > > suggestion or workaround to be able to accomplish this task? > > > > > Thanks! > > > > > José Luis --~--~-~--~~~---~--~~ 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] GAE and AWS
Amazon Web Services http://aws.amazon.com/ The best way is the cooperation, but I don't see Python http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/GettingStartedGuide/index.html?ListAllItems.html Java C# Perl PHP VB.NET and my Python :-( --~--~-~--~~~---~--~~ 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: javascriptrun - server-side JavaScript
# An example on Java # http://dev.helma.org/ """Helma is written in Java and employs Javascript for its server-side scripting environment, removing the need for compilation cycles and reducing development costs while giving you instant access to leverage the whole wealth of Java libraries out there. Helma pioneered the simple and codeless mapping of application objects to database tables. In addition, an embedded object-oriented database performs automatic data persistence of unmapped objects. Helma has proven itself to be stable and fast, capable of serving high traffic sites with hundreds of thousands of dynamic pages per day. The Austrian Broadcasting Corporation, popular weblog hosting sites such as antville.org, twoday.net, and blogger.de, among many others, have successfully been deploying Helma for several years.""" On Aug 28, 8:39 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > javascriptrun allows you to build web applications by server-side > JavaScript. > This idea is inspired to Netscape and based on SpiderMonkey. > > javascriptrun: One syntax for client and server. > > http://pyoohtml.appspot.com/javascriptrun --~--~-~--~~~---~--~~ 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: javascriptrun - server-side JavaScript
No, javascriptrun is my secret framework to build back-end by JavaScript. I see the future of my javascriptrun: billion over billion of dollars. On Aug 29, 6:15 am, "Peter Svensson" <[EMAIL PROTECTED]> wrote: > Davide, I assume that your page was a wishlist page, for a feature you would > like to see in GAe. Isn't that so? > > Cheers, > PS > > On Thu, Aug 28, 2008 at 11:22 PM, Davide Rognoni > <[EMAIL PROTECTED]>wrote: > > > > > # An example on Java > > #http://dev.helma.org/ > > > """Helma is written in Java and employs Javascript for its server-side > > scripting environment, removing the need for compilation cycles and > > reducing development costs while giving you instant access to leverage > > the whole wealth of Java libraries out there. > > > Helma pioneered the simple and codeless mapping of application objects > > to database tables. In addition, an embedded object-oriented database > > performs automatic data persistence of unmapped objects. > > > Helma has proven itself to be stable and fast, capable of serving high > > traffic sites with hundreds of thousands of dynamic pages per day. The > > Austrian Broadcasting Corporation, popular weblog hosting sites such > > as antville.org, twoday.net, and blogger.de, among many others, have > > successfully been deploying Helma for several years.""" > > > On Aug 28, 8:39 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > javascriptrun allows you to build web applications by server-side > > > JavaScript. > > > This idea is inspired to Netscape and based on SpiderMonkey. > > > > javascriptrun: One syntax for client and server. > > > >http://pyoohtml.appspot.com/javascriptrun --~--~-~--~~~---~--~~ 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] GAE and PayPal
Exists? See this other: "GAE and AWS" http://groups.google.com/group/google-appengine/browse_thread/thread/1ff1434f0331959e/abea7cd156772940?lnk=gst&q=davide+rognoni#abea7cd156772940 --~--~-~--~~~---~--~~ 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: The Newbie Doubts on Django Template
Here another problem: "Re-using Template Snippets - Where's my {%with %}" http://groups.google.com/group/google-appengine/browse_thread/thread/9896097ec049cff6/156e2500cc58a732#156e2500cc58a732 """I'd happily switch to a different template language that would allow me to re-use snippets, but it looks like most template languages don't work on appengine""" PyOoHtml works! On Aug 24, 7:07 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Here another problem "parsing xml in the > template"http://groups.google.com/group/google-appengine/browse_thread/thread/... > > The response: "Django template syntax is more limited than standard > Python syntax..." > > My response is "PyOoHtml - Python Object Oriented HTML" (but it need > more code to resolve the common problems) > > On Aug 24, 6:39 pm,DavideRognoni<[EMAIL PROTECTED]> wrote: > > > and > > > """Variable names must consist of any letter (A-Z), any digit (0-9), > > an underscore or a dot. > > > Dots have a special meaning in template rendering. A dot in a variable > > name signifies lookup. Specifically, when the template system > > encounters a dot in a variable name, it tries the following lookups, > > in this order: > > > - Dictionary lookup. Example: foo["bar"] > > - Attribute lookup. Example: foo.bar > > - Method call. Example: foo.bar() > > - List-index lookup. Example: foo[bar] > > > The template system uses the first lookup type that works. It’s short- > > circuit > > logic."""http://www.djangoproject.com/documentation/templates_python/ > > > but I like Python syntax thenhttp://pypi.python.org/pypi/PyOoHtml/ > > :-) > > > On Aug 24, 6:05 pm,DavideRognoni<[EMAIL PROTECTED]> wrote: > > > > "A method call will only work if the method has no required > > > arguments"http://www.djangoproject.com/documentation/templates_python/ > > > > On Aug 24, 4:27 pm, "djidjadji BG" <[EMAIL PROTECTED]> wrote: > > > > > HiDavide, > > > > >http://www.djangoproject.com/documentation/templates/ > > > > The Section "Behind the scenes' > > > > > If the method has no parameters you can use > > > > > {{ model.key }} > > > > > If it is a tuple of list you can use > > > > > {{ item.0 }} > > > > > Is it possible to call methods that have parameters in the Django > > > > template? > > > > > Djidjadji > > > > > 2008/8/24DavideRognoni<[EMAIL PROTECTED]>: > > > > > > Into Django templates you can not use Python syntax, for example: > > > > > > {{model.key()}} > > > > > TemplateSyntaxError: Could not parse the remainder: () > > > > >http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > > > > {{item[0]}} > > > > > TemplateSyntaxError: Could not parse the remainder: [1] > > > > >http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > > > > If you want to use the Python syntax, you can use: > > > > >http://pypi.python.org/pypi/PyOoHtml/ --~--~-~--~~~---~--~~ 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: Re-using Template Snippets - Where's my {%with%}?
PyOoHtml works! On Jul 28, 1:12 am, Nick Retallack <[EMAIL PROTECTED]> wrote: > In Django, I was able to re-use template snippets like this: > > {% with your_things as those_things %} > {% include 'things_gallery.html' %} {# displays those_things #} > {% endwith %} > > {% with my_things as those_things %} > {% include 'things_gallery.html' %} > {% endwith %} > > However, I since I switched to appengine and implemented my app in > webapp, I get this when I try to use those templates: > TemplateSyntaxError: Invalid block tag: 'with' > > Can I add 'with' in somehow? Is there some other way to re-use > snippets? > (Hm. I suppose I could render the snippets first, and then pass them > in as strings to their parent?) > > I'd happily switch to a different template language that would allow > me to re-use snippets, but it looks like most template languages don't > work on appengine. There are postings on this board about how mako > and genshi don't work. What about tenjin? I haven't got an appengine > account yet -- can someone test tenjin out 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Having doubts about AppEngine
Doubts about Django Template http://groups.google.com/group/google-appengine/browse_thread/thread/3503204aed78e934# On Aug 28, 12:09 am, javaDinosaur <[EMAIL PROTECTED]> wrote: > I am starting to have doubts about continuing to develop my > applications for GAE. My concerns are not technical although I have a > some anxieties about transaction data propagation performance. > > My concerns center around Google’s commitment to the App Engine > project. Compared to Amazon’s Web Service forums this place feels like > a technical backwater. Developers hosting on Amazon AWS post > interesting questions and get deep-dive replies promptly from Amazon > staff. Amazon is releasing new Cloud development services monthly yet > all we get is minor patches. > > Here on the GAE forum elementary questions about how GAE ticks go > unanswered for months. Basic roadmap type info such as will we get SSL > or scheduled tasks is missing. > > I just feel that the GAE Team is not building up any development > stream in what should be the last 4 month run up to the year-end > release. Communication with the developer community here is abysmal > compared to the investment in developer relations made by companies > such as Microsoft, Redhat or Amazon. > > What’s happened to the early buzz Google? Has the top bass pinched > half the team to firefight problems on another project? --~--~-~--~~~---~--~~ 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: Re-using Template Snippets - Where's my {%with%}?
...because is 100% pure Python code :-) On Aug 29, 11:59 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > PyOoHtml works! > > On Jul 28, 1:12 am, Nick Retallack <[EMAIL PROTECTED]> wrote: > > > In Django, I was able to re-use template snippets like this: > > > {% with your_things as those_things %} > > {% include 'things_gallery.html' %} {# displays those_things #} > > {% endwith %} > > > {% with my_things as those_things %} > > {% include 'things_gallery.html' %} > > {% endwith %} > > > However, I since I switched to appengine and implemented my app in > > webapp, I get this when I try to use those templates: > > TemplateSyntaxError: Invalid block tag: 'with' > > > Can I add 'with' in somehow? Is there some other way to re-use > > snippets? > > (Hm. I suppose I could render the snippets first, and then pass them > > in as strings to their parent?) > > > I'd happily switch to a different template language that would allow > > me to re-use snippets, but it looks like most template languages don't > > work on appengine. There are postings on this board about how mako > > and genshi don't work. What about tenjin? I haven't got an appengine > > account yet -- can someone test tenjin out 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] InPyTut - Interactive Python Tutorial
This tutorial is useful for the Python newbie http://pyoohtml.appspot.com/IronBrowser/static/InPyTut/index.html For the scripts execution you must open the URL using IronBrowser (Iron Python Web Browser) http://pyoohtml.appspot.com/IronBrowser/download IronBrowser depend from IronPython (the implementation of the Python programming language on .NET) http://www.codeplex.com/IronPython Comments here http://appgallery.appspot.com/about_app?app_id=agphcHBnYWxsZXJ5chMLEgxBcHBsaWNhdGlvbnMY-CsM Bye bye :-) --~--~-~--~~~---~--~~ 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: Having doubts about AppEngine
No no, this post is for all: "Having doubts about AppEngine" 1) """My concerns center around Google’s commitment to the App Engine project""" My concerns center around Google’s commitment to Django template. 2) """Here on the GAE forum elementary questions about how GAE ticks go unanswered for months""" Also about the template system. 3) """Communication with the developer community here is abysmal compared to the investment in developer relations made by companies such as Microsoft Redhat or Amazon""" Django is free, no investment. On Aug 30, 9:05 pm, Michael Schreifels <[EMAIL PROTECTED]> wrote: > Davide, > > I really don't see the Django template language being a valid concern > at all. It is just a library that Google provides, no one is forcing > you to use it. > > And further, personally I think that if you find Django templates too > limiting, you probably don't fully understand it. I switched to Django > after coding with Ruby on Rails and PHP, both of which allow you to > embed code right in your templates. It was a difficult transition at > first, but the restrictions placed by the Django template language > make sense, and they encourage good programming practices of the > separation between programming logic and presentation code. > > And if you're concerned about reusing blocks of code, the concerns > about {% with %} are only relevant to Django < 1.0, and the devs have > been telling users to use SVN (which is very stable) and not 0.96 for > MONTHS now. (Yeah, AE only supports 0.96 out-of-the-box, but that > makes sense. Why would Google want to track SVN? I just have my own > checkout of Django I use. And besides, Django 1.0 is due for release > next week. I guarantee Google will support it.) And besides, I have > never had to use {% with %}. Most code repetition I come across is > more logically solved with block inheritance. > > I strongly recommend you upgrade to the latest Django beta and read > the template docs. And if it really doesn't work for you, there are > plenty of other options. > > This post is really about the problems that Google has with > communications about where App Engine is going (and WHEN). > > On Aug 30, 4:56 am, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Doubts about Django > > Templatehttp://groups.google.com/group/google-appengine/browse_thread/thread/... > > > On Aug 28, 12:09 am, javaDinosaur <[EMAIL PROTECTED]> wrote: > > > > I am starting to have doubts about continuing to develop my > > > applications for GAE. My concerns are not technical although I have a > > > some anxieties about transaction data propagation performance. > > > > My concerns center around Google’s commitment to the App Engine > > > project. Compared to Amazon’s Web Service forums this place feels like > > > a technical backwater. Developers hosting on Amazon AWS post > > > interesting questions and get deep-dive replies promptly from Amazon > > > staff. Amazon is releasing new Cloud development services monthly yet > > > all we get is minor patches. > > > > Here on the GAE forum elementary questions about how GAE ticks go > > > unanswered for months. Basic roadmap type info such as will we get SSL > > > or scheduled tasks is missing. > > > > I just feel that the GAE Team is not building up any development > > > stream in what should be the last 4 month run up to the year-end > > > release. Communication with the developer community here is abysmal > > > compared to the investment in developer relations made by companies > > > such as Microsoft, Redhat or Amazon. > > > > What’s happened to the early buzz Google? Has the top bass pinched > > > half the team to firefight problems on another project? --~--~-~--~~~---~--~~ 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: GAE and AWS
This is the right place to post :-) Boto, an integrated interface to current and future infrastructural services offered by Amazon Web Services. Currently, this includes: - Simple Storage Service (S3) - Simple Queue Service (SQS) - Elastic Compute Cloud (EC2) - Mechanical Turk - SimpleDB (SDB) - See SimpleDbPage for details http://code.google.com/p/boto/ On Aug 30, 5:43 pm, Chris Tan <[EMAIL PROTECTED]> wrote: > This isn't the right place to post (try Amazon's forums). > > Nonetheless, I recommend boto (http://code.google.com/p/boto/) for a > nice library for working with amazon's web services. A big caveat is > that you will have to substitute google's urlfetch where appropriate. > > On Aug 28, 6:09 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Amazon Web Serviceshttp://aws.amazon.com/ > > > The best way is the cooperation, but I don't see > > Pythonhttp://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/GettingSt... > > > Java > > C# > > Perl > > PHP > > VB.NET > > > and my Python :-( --~--~-~--~~~---~--~~ 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: The Newbie Doubts on Django Template
Another problem: "Internationalize GAE webapp" http://groups.google.com/group/google-appengine/browse_thread/thread/3b8d32a860a8ce83/354590672a4c9d18#354590672a4c9d18 """it don't work""" """I have to the same problem""" """it's not only _() that doesn't work as expected but it also happens with the {% trans %} template tag.""" On Aug 29, 11:29 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Here another problem: "Re-using Template Snippets - Where's my {%with > %}"http://groups.google.com/group/google-appengine/browse_thread/thread/... > > """I'd happily switch to a different template language that would > allow me to re-use snippets, but it looks like most template languages > don't work on appengine""" > > PyOoHtml works! > > On Aug 24, 7:07 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Here another problem "parsing xml in the > > template"http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > The response: "Django template syntax is more limited than standard > > Python syntax..." > > > My response is "PyOoHtml - Python Object Oriented HTML" (but it need > > more code to resolve the common problems) > > > On Aug 24, 6:39 pm,DavideRognoni<[EMAIL PROTECTED]> wrote: > > > > and > > > > """Variable names must consist of any letter (A-Z), any digit (0-9), > > > an underscore or a dot. > > > > Dots have a special meaning in template rendering. A dot in a variable > > > name signifies lookup. Specifically, when the template system > > > encounters a dot in a variable name, it tries the following lookups, > > > in this order: > > > > - Dictionary lookup. Example: foo["bar"] > > > - Attribute lookup. Example: foo.bar > > > - Method call. Example: foo.bar() > > > - List-index lookup. Example: foo[bar] > > > > The template system uses the first lookup type that works. It’s short- > > > circuit > > > logic."""http://www.djangoproject.com/documentation/templates_python/ > > > > but I like Python syntax thenhttp://pypi.python.org/pypi/PyOoHtml/ > > > :-) > > > > On Aug 24, 6:05 pm,DavideRognoni<[EMAIL PROTECTED]> wrote: > > > > > "A method call will only work if the method has no required > > > > arguments"http://www.djangoproject.com/documentation/templates_python/ > > > > > On Aug 24, 4:27 pm, "djidjadji BG" <[EMAIL PROTECTED]> wrote: > > > > > > HiDavide, > > > > > >http://www.djangoproject.com/documentation/templates/ > > > > > The Section "Behind the scenes' > > > > > > If the method has no parameters you can use > > > > > > {{ model.key }} > > > > > > If it is a tuple of list you can use > > > > > > {{ item.0 }} > > > > > > Is it possible to call methods that have parameters in the Django > > > > > template? > > > > > > Djidjadji > > > > > > 2008/8/24DavideRognoni<[EMAIL PROTECTED]>: > > > > > > > Into Django templates you can not use Python syntax, for example: > > > > > > > {{model.key()}} > > > > > > TemplateSyntaxError: Could not parse the remainder: () > > > > > >http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > > > > > {{item[0]}} > > > > > > TemplateSyntaxError: Could not parse the remainder: [1] > > > > > >http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > > > > > If you want to use the Python syntax, you can use: > > > > > >http://pypi.python.org/pypi/PyOoHtml/ --~--~-~--~~~---~--~~ 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: newbie doubt:TemplateDoesNotExist in live
See here http://www.djangobook.com/en/1.0/chapter04/ or send me your project source (a ZIP file, please) On Aug 30, 7:27 pm, v4vijayakumar <[EMAIL PROTECTED]> wrote: > I am getting TemplateDoesNotExist error when I access my app. It was > working fine with dev_appserver. > > raise TemplateDoesNotExist, name > TemplateDoesNotExist: main.html > > I guess something is wrong with the template path, but couldn't figure > it out. > > template_path = os.path.join(os.path.dirname(__file__), > 'templates/main.html') > > I also tried this. > > template_path = 'templates/main.html' > > I just can't wait to see my app online, any quick help would be > great. :) > > Thanks in advance. --~--~-~--~~~---~--~~ 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: select and filter by date
Can you make this test, using: query = Game.all() query.filter('time >=', datetime.datetime.strptime("2008-08-29", "%Y- %m-%d")) print query.count() On Aug 30, 9:58 am, Kjartan <[EMAIL PROTECTED]> wrote: > Hi gang. > > I'm having some problems selecting data from the datastore and filter > it by date. According to what I've read in thr groups I'm not the > only one experiencing this. > > This is the query I have: > > game_query = Game.gql('where game_date = :1', > datetime.datetime(2008,8,29,0,0,0)).get() > > It returns an empty query although the datastore contains a few > entities with the datetime 2008-08-29 00:00:00. > > Any ideas would be helpful in this case. > > Regards, > Kjartan S. --~--~-~--~~~---~--~~ 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: GAE and PayPal
June 10th, 2008 Google intentionally blocking PayPal from App Engine? http://blogs.zdnet.com/Google/?p=1067 Why? (no money no code :-) Has GAE a Pay system? On Aug 29, 11:21 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Exists? > > See this other: "GAE and > AWS"http://groups.google.com/group/google-appengine/browse_thread/thread/... --~--~-~--~~~---~--~~ 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: Having doubts about AppEngine
Not Google but: “Guido just pronounced: Django is the [Python] web framework http://www.cmlenz.net/archives/2006/08/the-python-web-framework On Aug 30, 11:09 pm, Roberto Saccon <[EMAIL PROTECTED]> wrote: > Davide, nobody cares about your personal concerns around Google’s > commitment to Django templates. There are plenty of other frameworks > and template languages, choose the one which fits your needs or if > none fits your needs build one yourself (aren't you doing that > already, the JS thingy ??), I am happy that Google has chosen the most > popular one in Python land. > > regards > Roberto > > On Aug 30, 4:34 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > No no, this post is for all: "Having doubts about AppEngine" > > > 1) """My concerns center around Google’s commitment to the App Engine > > project""" > > > My concerns center around Google’s commitment to Django template. > > > 2) """Here on the GAE forum elementary questions about how GAE ticks > > go unanswered for months""" > > > Also about the template system. > > > 3) """Communication with the developer community here is abysmal > > compared to the investment in developer relations made by companies > > such as Microsoft Redhat or Amazon""" > > > Django is free, no investment. > > > On Aug 30, 9:05 pm, Michael Schreifels <[EMAIL PROTECTED]> wrote: > > > > Davide, > > > > I really don't see the Django template language being a valid concern > > > at all. It is just a library that Google provides, no one is forcing > > > you to use it. > > > > And further, personally I think that if you find Django templates too > > > limiting, you probably don't fully understand it. I switched to Django > > > after coding with Ruby on Rails and PHP, both of which allow you to > > > embed code right in your templates. It was a difficult transition at > > > first, but the restrictions placed by the Django template language > > > make sense, and they encourage good programming practices of the > > > separation between programming logic and presentation code. > > > > And if you're concerned about reusing blocks of code, the concerns > > > about {% with %} are only relevant to Django < 1.0, and the devs have > > > been telling users to use SVN (which is very stable) and not 0.96 for > > > MONTHS now. (Yeah, AE only supports 0.96 out-of-the-box, but that > > > makes sense. Why would Google want to track SVN? I just have my own > > > checkout of Django I use. And besides, Django 1.0 is due for release > > > next week. I guarantee Google will support it.) And besides, I have > > > never had to use {% with %}. Most code repetition I come across is > > > more logically solved with block inheritance. > > > > I strongly recommend you upgrade to the latest Django beta and read > > > the template docs. And if it really doesn't work for you, there are > > > plenty of other options. > > > > This post is really about the problems that Google has with > > > communications about where App Engine is going (and WHEN). > > > > On Aug 30, 4:56 am, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > > > Doubts about Django > > > > Templatehttp://groups.google.com/group/google-appengine/browse_thread/thread/... > > > > > On Aug 28, 12:09 am, javaDinosaur <[EMAIL PROTECTED]> wrote: > > > > > > I am starting to have doubts about continuing to develop my > > > > > applications for GAE. My concerns are not technical although I have a > > > > > some anxieties about transaction data propagation performance. > > > > > > My concerns center around Google’s commitment to the App Engine > > > > > project. Compared to Amazon’s Web Service forums this place feels like > > > > > a technical backwater. Developers hosting on Amazon AWS post > > > > > interesting questions and get deep-dive replies promptly from Amazon > > > > > staff. Amazon is releasing new Cloud development services monthly yet > > > > > all we get is minor patches. > > > > > > Here on the GAE forum elementary questions about how GAE ticks go > > > > > unanswered for months. Basic roadmap type info such as will we get SSL > > > > > or scheduled tasks is missing. > > > > > > I just feel that the GAE Team is not building up any development > >
[google-appengine] Re: Having doubts about AppEngine
from http://www.cmlenz.net/archives/2007/06/logic-in-templates """How could a custom, sparingly documented, somewhat inconsistent, and mostly unproven (compared to Python) mini expression language be any better for template authors?""" """In my humble opinion, this kind of “dumbed-down” templating results in only one thing: more lines of code in the application modules, lines of code that are really only about presentation, and should be in the templates. And frustration every single time you need to add those lines.""" On Aug 30, 11:09 pm, Roberto Saccon <[EMAIL PROTECTED]> wrote: > Davide, nobody cares about your personal concerns around Google’s > commitment to Django templates. There are plenty of other frameworks > and template languages, choose the one which fits your needs or if > none fits your needs build one yourself (aren't you doing that > already, the JS thingy ??), I am happy that Google has chosen the most > popular one in Python land. > > regards > Roberto > > On Aug 30, 4:34 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > No no, this post is for all: "Having doubts about AppEngine" > > > 1) """My concerns center around Google’s commitment to the App Engine > > project""" > > > My concerns center around Google’s commitment to Django template. > > > 2) """Here on the GAE forum elementary questions about how GAE ticks > > go unanswered for months""" > > > Also about the template system. > > > 3) """Communication with the developer community here is abysmal > > compared to the investment in developer relations made by companies > > such as Microsoft Redhat or Amazon""" > > > Django is free, no investment. > > > On Aug 30, 9:05 pm, Michael Schreifels <[EMAIL PROTECTED]> wrote: > > > > Davide, > > > > I really don't see the Django template language being a valid concern > > > at all. It is just a library that Google provides, no one is forcing > > > you to use it. > > > > And further, personally I think that if you find Django templates too > > > limiting, you probably don't fully understand it. I switched to Django > > > after coding with Ruby on Rails and PHP, both of which allow you to > > > embed code right in your templates. It was a difficult transition at > > > first, but the restrictions placed by the Django template language > > > make sense, and they encourage good programming practices of the > > > separation between programming logic and presentation code. > > > > And if you're concerned about reusing blocks of code, the concerns > > > about {% with %} are only relevant to Django < 1.0, and the devs have > > > been telling users to use SVN (which is very stable) and not 0.96 for > > > MONTHS now. (Yeah, AE only supports 0.96 out-of-the-box, but that > > > makes sense. Why would Google want to track SVN? I just have my own > > > checkout of Django I use. And besides, Django 1.0 is due for release > > > next week. I guarantee Google will support it.) And besides, I have > > > never had to use {% with %}. Most code repetition I come across is > > > more logically solved with block inheritance. > > > > I strongly recommend you upgrade to the latest Django beta and read > > > the template docs. And if it really doesn't work for you, there are > > > plenty of other options. > > > > This post is really about the problems that Google has with > > > communications about where App Engine is going (and WHEN). > > > > On Aug 30, 4:56 am, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > > > Doubts about Django > > > > Templatehttp://groups.google.com/group/google-appengine/browse_thread/thread/... > > > > > On Aug 28, 12:09 am, javaDinosaur <[EMAIL PROTECTED]> wrote: > > > > > > I am starting to have doubts about continuing to develop my > > > > > applications for GAE. My concerns are not technical although I have a > > > > > some anxieties about transaction data propagation performance. > > > > > > My concerns center around Google’s commitment to the App Engine > > > > > project. Compared to Amazon’s Web Service forums this place feels like > > > > > a technical backwater. Developers hosting on Amazon AWS post > > > > > interesting questions and get deep-dive replies promptly from Amazon > > > > > staff. Amazon is releasing ne
[google-appengine] Re: The Newbie Doubts on Django Template
See the post http://groups.google.com/group/google-appengine/browse_thread/thread/674849930bd256da/db07511d3c79af0c#db07511d3c79af0c Generic doubts and Django template system doubts. On Aug 30, 9:52 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Another problem: "Internationalize GAE > webapp"http://groups.google.com/group/google-appengine/browse_thread/thread/... > > """it don't work""" > """I have to the same problem""" > """it's not only _() that doesn't work as expected but it also happens > with the {% trans %} template tag.""" > > On Aug 29, 11:29 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Here another problem: "Re-using Template Snippets - Where's my {%with > > %}"http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > """I'd happily switch to a different template language that would > > allow me to re-use snippets, but it looks like most template languages > > don't work on appengine""" > > > PyOoHtml works! > > > On Aug 24, 7:07 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > > Here another problem "parsing xml in the > > > template"http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > > The response: "Django template syntax is more limited than standard > > > Python syntax..." > > > > My response is "PyOoHtml - Python Object Oriented HTML" (but it need > > > more code to resolve the common problems) > > > > On Aug 24, 6:39 pm,DavideRognoni<[EMAIL PROTECTED]> wrote: > > > > > and > > > > > """Variable names must consist of any letter (A-Z), any digit (0-9), > > > > an underscore or a dot. > > > > > Dots have a special meaning in template rendering. A dot in a variable > > > > name signifies lookup. Specifically, when the template system > > > > encounters a dot in a variable name, it tries the following lookups, > > > > in this order: > > > > > - Dictionary lookup. Example: foo["bar"] > > > > - Attribute lookup. Example: foo.bar > > > > - Method call. Example: foo.bar() > > > > - List-index lookup. Example: foo[bar] > > > > > The template system uses the first lookup type that works. It’s short- > > > > circuit > > > > logic."""http://www.djangoproject.com/documentation/templates_python/ > > > > > but I like Python syntax thenhttp://pypi.python.org/pypi/PyOoHtml/ > > > > :-) > > > > > On Aug 24, 6:05 pm,DavideRognoni<[EMAIL PROTECTED]> wrote: > > > > > > "A method call will only work if the method has no required > > > > > arguments"http://www.djangoproject.com/documentation/templates_python/ > > > > > > On Aug 24, 4:27 pm, "djidjadji BG" <[EMAIL PROTECTED]> wrote: > > > > > > > HiDavide, > > > > > > >http://www.djangoproject.com/documentation/templates/ > > > > > > The Section "Behind the scenes' > > > > > > > If the method has no parameters you can use > > > > > > > {{ model.key }} > > > > > > > If it is a tuple of list you can use > > > > > > > {{ item.0 }} > > > > > > > Is it possible to call methods that have parameters in the Django > > > > > > template? > > > > > > > Djidjadji > > > > > > > 2008/8/24DavideRognoni<[EMAIL PROTECTED]>: > > > > > > > > Into Django templates you can not use Python syntax, for example: > > > > > > > > {{model.key()}} > > > > > > > TemplateSyntaxError: Could not parse the remainder: () > > > > > > >http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > > > > > > {{item[0]}} > > > > > > > TemplateSyntaxError: Could not parse the remainder: [1] > > > > > > >http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > > > > > > If you want to use the Python syntax, you can use: > > > > > > >http://pypi.python.org/pypi/PyOoHtml/ --~--~-~--~~~---~--~~ 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: Having doubts about AppEngine
OK, Django Template System is not GAE but a part of GAE, then? On Aug 31, 12:18 am, Michael Schreifels <[EMAIL PROTECTED]> wrote: > Not to start a flame war, but... > > On Aug 30, 2:34 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > 2) """Here on the GAE forum elementary questions about how GAE ticks > > go unanswered for months""" > > > Also about the template system. > > You realize that Django templates is bundled with AE, and is actually > a part of the Django project? The Django project has a HUGE developer > community. Try #django on irc.freenode.net or the django users mailing > list. As long as the question sticks to Django-related issues that > aren't affected by AE (such as the templates), I guarantee they would > be happier to help, and much more responsible than this mailing list. > > > 3) """Communication with the developer community here is abysmal > > compared to the investment in developer relations made by companies > > such as Microsoft Redhat or Amazon""" > > > Django is free, no investment. > > Well, let's see... > > 1. Yes, Django is free (open-source). > 2. No, there *is* an investment in terms of time (and thus money) > 3. I think you mean App Engine, not Django... > > Again, Django != 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 -~--~~~~--~~--~--~---
[google-appengine] Re: Having doubts about AppEngine
OK, I will go on the big Django Community http://www.djangoproject.com/community/ Bye bye :-D On Aug 31, 12:36 am, Michael Schreifels <[EMAIL PROTECTED]> wrote: > On Aug 30, 4:25 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Not Google but: > > > “Guido just pronounced: Django is the [Python] web > > frameworkhttp://www.cmlenz.net/archives/2006/08/the-python-web-framework > > So what? Guido likes > Django...http://www.djangoproject.com/weblog/2006/aug/07/guidointerview/ > > FYI if you listened to Guido's talk on building Django apps on AE at > Google I/O this year, he said that "Django is just one of many > frameworks you can use." The talk is available online. > > On Aug 30, 4:40 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > fromhttp://www.cmlenz.net/archives/2007/06/logic-in-templates > > > """How could a custom, sparingly documented, somewhat inconsistent, > > and mostly unproven (compared to Python) mini expression language be > > any better for template authors?""" > > I wasn't using Django over a year ago when that was published (just > think: that was when oldforms was still in, eeek), but I will say one > thing: out of all of the frameworks and libraries I have used, Django > is THE best documented web framework I have ever come across. Also, > that quote is comparing how proven an entire language is to a mere > collection of template tags and constructs... > > > """In my humble opinion, this kind of “dumbed-down” templating results > > in only one thing: more lines of code in the application modules, > > lines of code that are really only about presentation, and should be > > in the templates. And frustration every single time you need to add > > those lines.""" > > So Django templates aren't for everyone. Django was designed to be > loosely coupled so you can stick in your own preferences where > desired. > > On Aug 30, 4:05 pm, "Noah Gift" <[EMAIL PROTECTED]> wrote: > > > I think for new comers to Python, it IS presented as the only choice > > as many people would have difficulty "monkey-patching" another > > template engine, as there have been issues in getting, to my knowledge > > at least, Mako and Genshi to fully work on appengine. It seems like > > this new cookbook area would be a good spot to for developers of those > > other templates to put their integration recipes: > > If I wanted to work with PHP and didn't like the fact that it allowed > my designers to access PHP, I could certainly choose to use a template > language. But of course, it is going to involve overcoming a barrier > to implementation. Django templates works great for most people. For > those who it doesn't work for, they should be prepared to have to do > some extra work. Besides, for beginner's needs, what exactly is it > that Django templates doesn't work for? > > Django templates is incredibly newbie-friendly. As mentioned, the > documentation is (IMO) second-to-none, and there are other great > resources, like the free talks available online covering Django, and > djangobook, which is mostly up-to-date. > > But still, I don't think this conversation is the appropriate place > for this discussion. --~--~-~--~~~---~--~~ 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: Having doubts about AppEngine
I contact you now, here, online :-) For my PyOoHtml next release, I will put this http://www.python.org/dev/peps/pep-0020/ because it right and it has been placed in the public domain (like my PyOoHtml). And I will put a link to this post because it explains the aim of my new project. On Aug 31, 2:08 am, "Noah Gift" <[EMAIL PROTECTED]> wrote: > On Sat, Aug 30, 2008 at 6:36 PM, Michael Schreifels <[EMAIL PROTECTED]> wrote: > > > On Aug 30, 4:25 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > >> Not Google but: > > >> "Guido just pronounced: Django is the [Python] web > >> frameworkhttp://www.cmlenz.net/archives/2006/08/the-python-web-framework > > > So what? Guido likes > > Django...http://www.djangoproject.com/weblog/2006/aug/07/guidointerview/ > > > FYI if you listened to Guido's talk on building Django apps on AE at > > Google I/O this year, he said that "Django is just one of many > > frameworks you can use." The talk is available online. > > I was at Google I/O and attended that talk. Yes, I think that is a > great goal for the Google App Engine team, but it is currently not a > reality. I hope this can be addressed soon, as personally I feel it > is one of the biggest issues facing the project. There are many > incredible tools from other frameworks and applications like say, > MoinMoin, that could benefit from a more complete version of Python. > At the very least the documentation should be updated to state that it > is the goal to support other frameworks than webapp. > > > > > On Aug 30, 4:40 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > >> fromhttp://www.cmlenz.net/archives/2007/06/logic-in-templates > > >> """How could a custom, sparingly documented, somewhat inconsistent, > >> and mostly unproven (compared to Python) mini expression language be > >> any better for template authors?""" > > > I wasn't using Django over a year ago when that was published (just > > think: that was when oldforms was still in, eeek), but I will say one > > thing: out of all of the frameworks and libraries I have used, Django > > is THE best documented web framework I have ever come across. Also, > > that quote is comparing how proven an entire language is to a mere > > collection of template tags and constructs... > > Let me preface that I use Django for many projects and I like it for > certain things. Please don't take offense anyone at my view about > flaws in Django: > > This is an excellent argument actually. Why reinvent Python and keep > making special cases like threaded comments each time a new flaw in > the template design is found? This actually violates the "Zen of > Python",http://www.python.org/dev/peps/pep-0020/. Of course we can > take this discussion offline. > > This is a very valid point against Django templates. Reinventing constructs > > > > >> """In my humble opinion, this kind of "dumbed-down" templating results > >> in only one thing: more lines of code in the application modules, > >> lines of code that are really only about presentation, and should be > >> in the templates. And frustration every single time you need to add > >> those lines.""" > > > So Django templates aren't for everyone. Django was designed to be > > loosely coupled so you can stick in your own preferences where > > desired. > > This phrase, "Django was designed to be loosely coupled", is another > complaint I have against Django, and something I frequently hear. > What does this mean? In my opinion Pylons is loosely > coupled:http://pylonsbook.com/. Django does not do things that I feel are > loosely coupled, like documenting in a published book or official > documentation how to use third party components such as SQLAlchemy, > Jinja, or setuptools. Almost every alternate popular framework > supports directly, with copious official documentation, > setuptools:http://peak.telecommunity.com/DevCenter/setuptools, and > SQLAlchemy:http://www.sqlalchemy.org/. Here are a list of alternate > frameworks > in Python that people might reference: > > Zope 3: http://www.zope.org/Products/Zope3 > Grok: http://grok.zope.org/ > Pylons: http://pylonshq.com/ > Turbogears2: http://turbogears.org/2.0/ > Werkzeug: http://werkzeug.pocoo.org/documentation/tutorial/ > > All of these support in their documentation setuptools and SQLAlchemy > and are in my opinion loosely coupled. Loosely coupled means > different things to different people and it is marketing terminology > that
[google-appengine] Pure Python Template System for GAE
http://wiki.python.org/moin/Templating I see many systems, what is the best? - Engines Mixing Logic into Templates - Engines with Annotated Templates - HTML Shorthand Processors - HTML Generation Packages - Others? --~--~-~--~~~---~--~~ 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: Pure Python Template System for GAE
Why is Genshi not supported? Is not in pure Python? On Aug 31, 12:28 pm, Dirk Holtwick <[EMAIL PROTECTED]> wrote: > Hi, > > I prefer templating systems that respect the structure of XML and HTML > so that the template may also be modified in WYSIWYG editors. The best > choice in my opinion is Genshi. > > But Genshi is not supported by GAE yet. So I decided to write something > similar to that. Maybe you like to give it a try, it is in very early > alpha state but should result in a very easy to use and intuitive GAE > framework: > > http://code.google.com/p/pyxer/source/browse/#svn/trunk/src/pyxer/tem... > > Cheers > Dirk > > Davide Rognoni schrieb: > > >http://wiki.python.org/moin/Templating > > > I see many systems, what is the best? > > > - Engines Mixing Logic into Templates > > - Engines with Annotated Templates > > - HTML Shorthand Processors > > - HTML Generation Packages > > > - Others? --~--~-~--~~~---~--~~ 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: Pure Python Template System for GAE
Now you can vote your engine here: "Best Template Engine" http://pyoohtml.appspot.com/best-template-engine On Aug 31, 1:05 pm, Dirk Holtwick <[EMAIL PROTECTED]> wrote: > Davide Rognoni schrieb: > > > Why is Genshi not supported? Is not in pure Python? > > Because it uses the Python Abstract Syntax Tree (AST) which is turned > off in the GAE maybe for security reasons. More on this topic regarding > Genshi and GAE you will find here: > > <http://groups.google.com/group/genshi/browse_thread/thread/c7b6f38845...> > > Dirk > > > On Aug 31, 12:28 pm, Dirk Holtwick <[EMAIL PROTECTED]> wrote: > >> Hi, > > >> I prefer templating systems that respect the structure of XML and HTML > >> so that the template may also be modified in WYSIWYG editors. The best > >> choice in my opinion is Genshi. > > >> But Genshi is not supported by GAE yet. So I decided to write something > >> similar to that. Maybe you like to give it a try, it is in very early > >> alpha state but should result in a very easy to use and intuitive GAE > >> framework: > > >>http://code.google.com/p/pyxer/source/browse/#svn/trunk/src/pyxer/tem... > > >> Cheers > >> Dirk > > >> Davide Rognoni schrieb: > > >>>http://wiki.python.org/moin/Templating > >>> I see many systems, what is the best? > >>> - Engines Mixing Logic into Templates > >>> - Engines with Annotated Templates > >>> - HTML Shorthand Processors > >>> - HTML Generation Packages > >>> - Others? --~--~-~--~~~---~--~~ 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: javascriptrun - server-side JavaScript
[python-spidermonkey] "A bridge between Python and the Mozilla SpiderMonkey JavaScript engine" http://code.google.com/p/python-spidermonkey/ On Aug 28, 9:35 pm, Roberto Saccon <[EMAIL PROTECTED]> wrote: > Can you give an overview on how this is supposed to work ? The example > just shows how to create some HTML with Javascript, but can one write > the whole MVC thingy in JS using our framework ? And once the JS is > parsed, what happens then ? Do you create Python source code or do you > somehow manage to inject the logic into a running app ! > > btw. I once started myself to write a JS framework running on a non-JS > platform (http://erlyjs.googlecode.com) > > regards > Roberto > > On Aug 28, 3:39 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > javascriptrun allows you to build web applications by server-side > > JavaScript. > > This idea is inspired to Netscape and based on SpiderMonkey. > > > javascriptrun: One syntax for client and server. > > >http://pyoohtml.appspot.com/javascriptrun --~--~-~--~~~---~--~~ 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: Pure Python Template System for GAE
Django template system (4) Pyxer Templating (1) PyOoHtml (1) Genshi (1) Airspeed (1) from "Best Template Engine" http://pyoohtml.appspot.com/best-template-engine On Aug 31, 3:53 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Now you can vote your engine here: > > "Best Template Engine"http://pyoohtml.appspot.com/best-template-engine > > On Aug 31, 1:05 pm, Dirk Holtwick <[EMAIL PROTECTED]> wrote: > > > Davide Rognoni schrieb: > > > > Why is Genshi not supported? Is not in pure Python? > > > Because it uses the Python Abstract Syntax Tree (AST) which is turned > > off in the GAE maybe for security reasons. More on this topic regarding > > Genshi and GAE you will find here: > > > <http://groups.google.com/group/genshi/browse_thread/thread/c7b6f38845...> > > > Dirk > > > > On Aug 31, 12:28 pm, Dirk Holtwick <[EMAIL PROTECTED]> wrote: > > >> Hi, > > > >> I prefer templating systems that respect the structure of XML and HTML > > >> so that the template may also be modified in WYSIWYG editors. The best > > >> choice in my opinion is Genshi. > > > >> But Genshi is not supported by GAE yet. So I decided to write something > > >> similar to that. Maybe you like to give it a try, it is in very early > > >> alpha state but should result in a very easy to use and intuitive GAE > > >> framework: > > > >>http://code.google.com/p/pyxer/source/browse/#svn/trunk/src/pyxer/tem... > > > >> Cheers > > >> Dirk > > > >> Davide Rognoni schrieb: > > > >>>http://wiki.python.org/moin/Templating > > >>> I see many systems, what is the best? > > >>> - Engines Mixing Logic into Templates > > >>> - Engines with Annotated Templates > > >>> - HTML Shorthand Processors > > >>> - HTML Generation Packages > > >>> - Others? --~--~-~--~~~---~--~~ 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: Template : looping over a list of lists
You could use another templating engine. -- "Best Template Engine" http://pyoohtml.appspot.com/best-template-engine On Aug 31, 10:12 pm, jorgian <[EMAIL PROTECTED]> wrote: > I want to update the defaulttags.py file on appengine so that i loop > over a list of lists. I got it working on my machine but im having a > very hard time in getting appengine upload the changes i made to > appengine. > > "New in Django development version 0.97 If you need to loop over a > list of lists, you can unpack the values in each sub-list into > individual variable." > > ex: > {% for x, y in points %} > There is a point at {{ x }},{{ y }} > {% endfor %} > > I don't want to set the full django environment i only want to modify > the existing defaulttags.py. > > Does anyone know if this is possible? > Any suggestions are more than welcome > > --|an --~--~-~--~~~---~--~~ 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: Template : looping over a list of lists
I see that you like "Django template system" :-) You prefer "Engines Mixing Logic into Templates". I like "HTML Generation Packages". Your engine is good when you have a static HTML template to make dynamic. But I start to build templates from Python and CSS, generating the HTML code. On Aug 31, 10:35 pm, jorgian <[EMAIL PROTECTED]> wrote: > Which one do you suggest? > > On Aug 31, 10:23 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > You could use another templating engine. > > > -- > > "Best Template Engine"http://pyoohtml.appspot.com/best-template-engine > > > On Aug 31, 10:12 pm, jorgian <[EMAIL PROTECTED]> wrote: > > > > I want to update the defaulttags.py file on appengine so that i loop > > >overalistoflists. I got it working on my machine but im having a > > > very hard time in getting appengine upload the changes i made to > > > appengine. > > > > "New in Django development version 0.97 If you need to loopovera > > >listoflists, you can unpack the values in each sub-listinto > > > individual variable." > > > > ex: > > > {% for x, y in points %} > > > There is a point at {{ x }},{{ y }} > > > {% endfor %} > > > > I don't want to set the full django environment i only want to modify > > > the existing defaulttags.py. > > > > Does anyone know if this is possible? > > > Any suggestions are more than welcome > > > > --|an --~--~-~--~~~---~--~~ 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: Template : looping over a list of lists
I waiting for more votes, before to take a final decision. -- "Best Template Engine" http://pyoohtml.appspot.com/best-template-engine On Aug 31, 10:35 pm, jorgian <[EMAIL PROTECTED]> wrote: > Which one do you suggest? > > On Aug 31, 10:23 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > You could use another templating engine. > > > -- > > "Best Template Engine"http://pyoohtml.appspot.com/best-template-engine > > > On Aug 31, 10:12 pm, jorgian <[EMAIL PROTECTED]> wrote: > > > > I want to update the defaulttags.py file on appengine so that i loop > > >overalistoflists. I got it working on my machine but im having a > > > very hard time in getting appengine upload the changes i made to > > > appengine. > > > > "New in Django development version 0.97 If you need to loopovera > > >listoflists, you can unpack the values in each sub-listinto > > > individual variable." > > > > ex: > > > {% for x, y in points %} > > > There is a point at {{ x }},{{ y }} > > > {% endfor %} > > > > I don't want to set the full django environment i only want to modify > > > the existing defaulttags.py. > > > > Does anyone know if this is possible? > > > Any suggestions are more than welcome > > > > --|an --~--~-~--~~~---~--~~ 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] Best Template Engine (14 votes)
You can vote a engine: http://pyoohtml.appspot.com/best-template-engine Django template system (6) PyOoHtml (2) Genshi (2) Airspeed (2) Pyxer Templating (1) Spyce (1) --~--~-~--~~~---~--~~ 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: Best Template Engine (14 votes)
:-D Django template system (10) Mako (3) Genshi (3) PyOoHtml (2) Airspeed (2) Pyxer Templating (1) Tenjin (1) Evoque (1) Spyce (1) :-) On Sep 2, 1:34 am, "Jorge Vargas" <[EMAIL PROTECTED]> wrote: > please stop sending this emails, they add little knowledge to the group. > There is no best, it depends on the project requirements, it's scope and > more important taste of the people involved. > > On Mon, Sep 1, 2008 at 1:22 PM, Davide Rognoni <[EMAIL PROTECTED]>wrote: > > > > > You can vote a engine: > >http://pyoohtml.appspot.com/best-template-engine > > > Django template system (6) > > PyOoHtml (2) > > Genshi (2) > > Airspeed (2) > > Pyxer Templating (1) > > Spyce (1) --~--~-~--~~~---~--~~ 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: newbie doubt:TemplateDoesNotExist in live
Good :-) -- "Best Template Engine" http://pyoohtml.appspot.com/best-template-engine On Sep 2, 6:12 pm, v4vijayakumar <[EMAIL PROTECTED]> wrote: > On Aug 30, 10:27 pm, v4vijayakumar <[EMAIL PROTECTED]> > wrote: > ...> I just can't wait to see my app online, any quick help would be > > great. :) > > ... > > Finally I made it. :-) > > last (?!) bug was, > > > > element.innerHTML returns in firefox, and in > explorer. good grief! > > Now, I have just implemented a game played in my village. It is > called aadupuli (In Tamil, aadu - goat, puli - tiger). Some times > back, I did the same on google pages, > > http://v4vijayakumar.googlepages.com/goats-and-tigers.html > > now it has no ajax, you have to manually refresh screen to see other > user's move. > > http://aadupuli.appspot.com/http://aadupuli.appspot.com/help > > These two pages do not require authentication. > > soon (?!), entire game will not require authentication, asynchronously > update other user's moves, better user interface. > > not spamming, I think. :) --~--~-~--~~~---~--~~ 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: server time zone: datetime.utcnow() or now()?
Yes, more docs and more examples, please :-) (you conquest the developers and you will conquest the web) -- "Best Template Engine" http://pyoohtml.appspot.com/best-template-engine On Sep 2, 8:11 am, Waldemar Kornewald <[EMAIL PROTECTED]> wrote: > Hi Ryan, > > On 2 Sep., 00:44, ryan <[EMAIL PROTECTED]> wrote: > > > hi waldemar! as mentioned in the docs, both the SDK and the production > > environment always use UTC: > > Thanks! I've read that part in the documentation, but didn't > understand it. For example, it says: > > "If the datetime value has a tzinfo attribute, it will be converted to > the UTC time zone for storage." > > Unfortunately, if you use now() there's no tzinfo, so how could the > datastore know how to convert to UTC? Maybe I just didn't look well > enough, but while the documentation does mention that the datastore > always stores as UTC it doesn't mention anywhere that the front-end > server's time zone is UTC and that now() is always the same as > utcnow(). Could you please improve the docs in this area? Thanks. > > Bye, > Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Mako Templates for Python
http://www.makotemplates.org Mako is a template library written in Python. Insanely Fast. An included bench suite, adapted from a suite included with Genshi, has these results for a simple three-sectioned layout: Mako: 1.10 ms Myghty: 4.52 ms Cheetah:1.10 ms Genshi: 11.46 ms Django: 2.74 ms Kid:14.54 ms Since a speed test is always a flashpoint for controversy, and you can modify the bench to show different variances, the point here is not that "Mako is faster"; its not meant as a competitive point. The point is, "Mako is as fast as any of the other currently popular approaches". -- Best Template Engine http://pyoohtml.appspot.com/best-template-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 -~--~~~~--~~--~--~---
[google-appengine] Re: Mako Templates for Python
Because I'm looking for alternatives to Django template system. On Sep 3, 9:52 pm, "Andrew Badera" <[EMAIL PROTECTED]> wrote: > Why are you posting this to this list? > > On Wed, Sep 3, 2008 at 3:49 PM, Davide Rognoni <[EMAIL PROTECTED]>wrote: > > > > >http://www.makotemplates.org > > Mako is a template library written in Python. > > > Insanely Fast. An included bench suite, adapted from a suite included > > with Genshi, has these results for a simple three-sectioned layout: > > > Mako: 1.10 ms Myghty: 4.52 ms > > Cheetah: 1.10 ms Genshi: 11.46 ms > > Django: 2.74 ms Kid: 14.54 ms > > > Since a speed test is always a flashpoint for controversy, and you can > > modify the bench to show different variances, the point here is not > > that "Mako is faster"; its not meant as a competitive point. The point > > is, "Mako is as fast as any of the other currently popular > > approaches". > > > -- Best Template Engine > > [gratuitous self-promoting link removed] --~--~-~--~~~---~--~~ 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: Mako Templates for Python
- First aim: performance; On Sep 3, 9:57 pm, "Andrew Badera" <[EMAIL PROTECTED]> wrote: > Perhaps you need to elucidate your purpose better instead of posting > seemingly random performance stats. > > On Wed, Sep 3, 2008 at 3:56 PM, Davide Rognoni <[EMAIL PROTECTED]>wrote: > > > > > Because I'm looking for alternatives to Django template system. > > > On Sep 3, 9:52 pm, "Andrew Badera" <[EMAIL PROTECTED]> wrote: > > > Why are you posting this to this list? > > > > On Wed, Sep 3, 2008 at 3:49 PM, Davide Rognoni <[EMAIL PROTECTED] > > >wrote: > > > > >http://www.makotemplates.org > > > > Mako is a template library written in Python. > > > > > Insanely Fast. An included bench suite, adapted from a suite included > > > > with Genshi, has these results for a simple three-sectioned layout: > > > > > Mako: 1.10 ms Myghty: 4.52 ms > > > > Cheetah: 1.10 ms Genshi: 11.46 ms > > > > Django: 2.74 ms Kid: 14.54 ms > > > > > Since a speed test is always a flashpoint for controversy, and you can > > > > modify the bench to show different variances, the point here is not > > > > that "Mako is faster"; its not meant as a competitive point. The point > > > > is, "Mako is as fast as any of the other currently popular > > > > approaches". > > > > > -- Best Template Engine > > > > [gratuitous self-promoting link removed] --~--~-~--~~~---~--~~ 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: Mako Templates for Python
Then you can vote this template :-) -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine On Sep 3, 10:30 pm, Thomas Johansson <[EMAIL PROTECTED]> wrote: > Jinja 2. Similar to django templates but much more powerful and rivals > mako in speed. It also has sane, python-like conditionals; No > "ifnotequal" and such sillyness. Important to note that it is however > NOT embedded python. > > http://jinja.pocoo.org/2/ > > On Sep 3, 9:49 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > >http://www.makotemplates.org > > Mako is a template library written in Python. > > > Insanely Fast. An included bench suite, adapted from a suite included > > with Genshi, has these results for a simple three-sectioned layout: > > > Mako: 1.10 ms Myghty: 4.52 ms > > Cheetah: 1.10 ms Genshi: 11.46 ms > > Django: 2.74 ms Kid: 14.54 ms > > > Since a speed test is always a flashpoint for controversy, and you can > > modify the bench to show different variances, the point here is not > > that "Mako is faster"; its not meant as a competitive point. The point > > is, "Mako is as fast as any of the other currently popular > > approaches". > > > -- Best Template Enginehttp://pyoohtml.appspot.com/best-template-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 -~--~~~~--~~--~--~---
[google-appengine] Re: Mako Templates for Python
But on GAE cookbook I don't see the right category for no-django- template-system. On Sep 3, 10:49 pm, "Noah Gift" <[EMAIL PROTECTED]> wrote: > On Wed, Sep 3, 2008 at 4:48 PM, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Then you can vote this template :-) > > Hopefully, people using other templates would be kind enough to post a > how to on getting it working on the cookbook site google set up. > > http://appengine-cookbook.appspot.com/ > > > > > > > -- Best Template Engine > >http://pyoohtml.appspot.com/best-template-engine > > > On Sep 3, 10:30 pm, Thomas Johansson <[EMAIL PROTECTED]> wrote: > >> Jinja 2. Similar to django templates but much more powerful and rivals > >> mako in speed. It also has sane, python-like conditionals; No > >> "ifnotequal" and such sillyness. Important to note that it is however > >> NOT embedded python. > > >>http://jinja.pocoo.org/2/ > > >> On Sep 3, 9:49 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > >> >http://www.makotemplates.org > >> > Mako is a template library written in Python. > > >> > Insanely Fast. An included bench suite, adapted from a suite included > >> > with Genshi, has these results for a simple three-sectioned layout: > > >> > Mako: 1.10 ms Myghty: 4.52 ms > >> > Cheetah: 1.10 ms Genshi: 11.46 ms > >> > Django: 2.74 ms Kid: 14.54 ms > > >> > Since a speed test is always a flashpoint for controversy, and you can > >> > modify the bench to show different variances, the point here is not > >> > that "Mako is faster"; its not meant as a competitive point. The point > >> > is, "Mako is as fast as any of the other currently popular > >> > approaches". > > >> > -- Best Template Enginehttp://pyoohtml.appspot.com/best-template-engine > > -- > Noah Gifthttp://noahgift.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Mako Templates for Python
Yes, but the vote indicates the developers preference about the template systems. Then you can focus on the best library. What is? -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine On Sep 3, 11:16 pm, Brian Clapper <[EMAIL PROTECTED]> wrote: > On 9/3/08 4:49 PM, Noah Gift wrote: > > > On Wed, Sep 3, 2008 at 4:48 PM, Davide Rognoni <[EMAIL PROTECTED]> wrote: > >> Then you can vote this template :-) > > > Hopefully, people using other templates would be kind enough to post a > > how to on getting it working on the cookbook site google set up. > > >http://appengine-cookbook.appspot.com/ > > I agree. I'm far less interested in people's votes. Votes are noise to me. > Info on getting other engines working, though--that's useful information. > > Brian Clapper,http://www.clapper.org/bmc/ > A psychiatrist is a person who will give you expensive answers that > your wife will give you for free. --~--~-~--~~~---~--~~ 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: Fixed: admin pages, is_current_user_admin, and sending mail as admin
Thank you :-) -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine On Sep 3, 10:30 pm, "Jeff S (Google)" <[EMAIL PROTECTED]> wrote: > Hi all, > > We recently rolled out a new version which contained a bug in > users.is_current_user_admin() which caused it to always return False. > As a result, admin only pages were unavailable and your apps were > unable to send email as admins. The issue has been resolved and you > should be able to use your admin pages in under an hour. If you would > like the fix sooner, please redeploy your app. > > Apologies, > > Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Mako Templates for Python
The vote is similar to the rating: show the best on top. -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine On Sep 3, 11:43 pm, Brian Clapper <[EMAIL PROTECTED]> wrote: > On 9/3/08 5:23 PM, Davide Rognoni wrote: > > > Yes, but the vote indicates the developers preference about the > > template systems. > > Then you can focus on the best library. What is? > > I know the purpose of the vote. I just think voting on a favorite template > engine is ... well, not very useful. > > Brian Clapper,http://www.clapper.org/bmc/ > Cohen's Law: Everyone knows that the name of the game is what label you > succeed in imposing on the facts. --~--~-~--~~~---~--~~ 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: Mako Templates for Python
I can not study all egines http://wiki.python.org/moin/Templating -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine On Sep 3, 11:52 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > The vote is similar to the rating: show the best on top. > > -- Best Template Enginehttp://pyoohtml.appspot.com/best-template-engine > > On Sep 3, 11:43 pm, Brian Clapper <[EMAIL PROTECTED]> wrote: > > > On 9/3/08 5:23 PM, Davide Rognoni wrote: > > > > Yes, but the vote indicates the developers preference about the > > > template systems. > > > Then you can focus on the best library. What is? > > > I know the purpose of the vote. I just think voting on a favorite template > > engine is ... well, not very useful. > > > Brian Clapper,http://www.clapper.org/bmc/ > > Cohen's Law: Everyone knows that the name of the game is what label you > > succeed in imposing on the facts. --~--~-~--~~~---~--~~ 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: Django 1.0?
What are the new features of Django? -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine On Sep 4, 6:07 am, Nico <[EMAIL PROTECTED]> wrote: > I think the question is not if, but when. > I hope it will happen very soon, now that 1.0 final is out... > > On 4 Sep., 02:40, DaNmarner <[EMAIL PROTECTED]> wrote: > > > Does any body know whether GAE is going to update the version included > > Django to 1.0? --~--~-~--~~~---~--~~ 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: Django 1.0?
Very Good :-) ***NEWS*** Jython compatibility http://docs.djangoproject.com/en/dev/howto/jython/#howto-jython ***ISSUES*** Caveats with support of certain databases http://docs.djangoproject.com/en/dev/ref/databases/#mysql-notes http://docs.djangoproject.com/en/dev/ref/databases/#sqlite-notes http://docs.djangoproject.com/en/dev/ref/databases/#oracle-notes -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine On Sep 5, 5:29 am, Alexander Kojevnikov <[EMAIL PROTECTED]> wrote: > > What are the new features of Django? > > http://docs.djangoproject.com/en/dev/releases/1.0/ --~--~-~--~~~---~--~~ 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: When is GAE going to support Django 1.0?
I like "Jython compatibility" http://docs.djangoproject.com/en/dev/howto/jython/#howto-jython -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine On Aug 27, 3:40 pm, "Damien Hou" <[EMAIL PROTECTED]> wrote: > I've been using my own copy of django svn version along with my apps. As the > final 1.0 release approaching (scheduled for next week!), there has been > quite some major changes in the latest versions. > > To name one, the use of newforms is deprecated in favor of simply forms, and > in the latest beta releases newforms have been removed. I'm using a django > 1.0 alpha version with one of my apps and I see django raising errors about > GAE code still using the deprecated newforms. > > I haven't tried 1.0 beta on GAE yet. But plan to try the 1.0 final code and > see if there's any compatibility problems. But the best thing would be that > GAE by default supports the 1.0 final release and upgrade from the current > outdated 0.96 release > > -- > Best Regards, > Damien --~--~-~--~~~---~--~~ 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: Upload Post image app engine
Post here your main "app.py" file: def main(): application = webapp.WSGIApplication([ ('/', home.handler.Home), ... -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine On Sep 5, 3:23 pm, rive <[EMAIL PROTECTED]> wrote: > I do an multipart post to "http://rive.appspot.com/services/ > CountriesService.py" > > But I keep getting 400 bad requests back?? The file is really online. > This is the server side file I have online. (the same client side code > works perfect with PHP) > > from google.appengine.api import images > from google.appengine.api import users > from google.appengine.ext import db > from google.appengine.ext import webapp > from Model import tblMapCountries, DTO > > class CountriesService(webapp.RequestHandler): > def post(self): > if users.is_current_user_admin(): > > country = tblMapCountries() > country.country = self.request.get("country") > uploadimage = images.resize(self.request.get("Filedata"), > 25, 20, images.PNG) > country.flag = db.Blob(uploadimage) > country.put() > return "inserted in db app engine" > else: > return "kiekeboe" --~--~-~--~~~---~--~~ 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: I18N and google app engine
Try this :-D http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=http%3A%2F%2Fpyoohtml.appspot.com%2Fbest-template-engine&lp=en_fr&btnTrUrl=Translate -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine On Sep 4, 10:57 pm, Pierre <[EMAIL PROTECTED]> wrote: > Hi, > > Has anybody succeed in getting i18n working with gae ?(if yes, it > could be useful to create some kind of tutorial because I haven't > found much litterature about it when googling). > I thought it could be working with django and I installed django gae > helper to use it but no success. > > Is it possible to create an i18n app with out of the box google app > engine install ? > > Kind regards, merci, danke shöne ;-) > > Pierre --~--~-~--~~~---~--~~ 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: Internationalize GAE webapp
"Le meilleur moteur de calibre" http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=http%3A%2F%2Fpyoohtml.appspot.com%2Fbest-template-engine&lp=en_fr&btnTrUrl=Translate . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . On Jul 18, 9:52 pm, Pau <[EMAIL PROTECTED]> wrote: > I write the internationalization following the django documentation > inhttp://www.djangoproject.com/documentation/0.96/i18n/ > > If I write a "pure" django application, it work correctly. But if I > write a "pure" GAE (webapp) it's not work. > > Specifically: > > - The default translations writing in ...\django\conf\locale work > correctly. For example: > msg = _("English") is translate ok. > > - But I translate my text, for example msg = _("my web is beautiful"), > it's not translating. > > I follow the same steps as before: I create the translation files (.mo > nd .po) in my GAE project using make-messages.py and compile- > messages.py and I located them in {project}\locale\{locale} > \LC_MESSAGES directory, but it don't work. It's as if the translation > not existing or not found. > > Do you have any idea? > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Internationalize GAE webapp
Yes, the message is relevant, because this is the best way to all languages translation :-P On Sep 6, 12:05 pm, Pierre <[EMAIL PROTECTED]> wrote: > Sorry, > > Is your message relevant with the topic ? > Est ton message pertinent par rapport au sujet ? > > Thanks > Merci, > > Pierre > > On 6 sep, 12:02, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > "Le meilleur moteur de > > calibre"http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=b... > > . > > . > > . > > -- Best Template Enginehttp://pyoohtml.appspot.com/best-template-engine > > . > > . > > . > > On Jul 18, 9:52 pm, Pau <[EMAIL PROTECTED]> wrote: > > > > I write the internationalization following the django documentation > > > inhttp://www.djangoproject.com/documentation/0.96/i18n/ > > > > If I write a "pure" django application, it work correctly. But if I > > > write a "pure" GAE (webapp) it's not work. > > > > Specifically: > > > > - The default translations writing in ...\django\conf\locale work > > > correctly. For example: > > > msg = _("English") is translate ok. > > > > - But I translate my text, for example msg = _("my web is beautiful"), > > > it's not translating. > > > > I follow the same steps as before: I create the translation files (.mo > > > nd .po) in my GAE project using make-messages.py and compile- > > > messages.py and I located them in {project}\locale\{locale} > > > \LC_MESSAGES directory, but it don't work. It's as if the translation > > > not existing or not found. > > > > Do you have any idea? > > > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Internationalize GAE webapp
Ok, my is a provocation :-) But, for example, I can't make a chinese translation, without this: http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=http%3A%2F%2Fpyoohtml.appspot.com%2Fbest-template-engine&lp=en_zh&btnTrUrl=Translate . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . On Sep 6, 12:16 pm, A.TNG <[EMAIL PROTECTED]> wrote: > On Sat, Sep 6, 2008 at 6:15 PM, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Yes, the message is relevant, because this is the best way to all > > languages translation :-P > > It is a cool way. But not exactly what we want. > > Still thanks. :-) > > > > > > > On Sep 6, 12:05 pm, Pierre <[EMAIL PROTECTED]> wrote: > >> Sorry, > > >> Is your message relevant with the topic ? > >> Est ton message pertinent par rapport au sujet ? > > >> Thanks > >> Merci, > > >> Pierre > > >> On 6 sep, 12:02, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > >> > "Le meilleur moteur de > >> > calibre"http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=b... > >> > . > >> > . > >> > . > >> > -- Best Template Enginehttp://pyoohtml.appspot.com/best-template-engine > >> > . > >> > . > >> > . > >> > On Jul 18, 9:52 pm, Pau <[EMAIL PROTECTED]> wrote: > > >> > > I write the internationalization following the django documentation > >> > > inhttp://www.djangoproject.com/documentation/0.96/i18n/ > > >> > > If I write a "pure" django application, it work correctly. But if I > >> > > write a "pure" GAE (webapp) it's not work. > > >> > > Specifically: > > >> > > - The default translations writing in ...\django\conf\locale work > >> > > correctly. For example: > >> > > msg = _("English") is translate ok. > > >> > > - But I translate my text, for example msg = _("my web is beautiful"), > >> > > it's not translating. > > >> > > I follow the same steps as before: I create the translation files (.mo > >> > > nd .po) in my GAE project using make-messages.py and compile- > >> > > messages.py and I located them in {project}\locale\{locale} > >> > > \LC_MESSAGES directory, but it don't work. It's as if the translation > >> > > not existing or not found. > > >> > > Do you have any idea? > > >> > > Thanks > > -- > Best Regards, > TANG Jiyu --~--~-~--~~~---~--~~ 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 support multilingual interfaces in GAE?
In Python you can use the dictionary (IT = italian): >>> TRANS = { ... "IT" : { ... "hello" : "ciao", ... "apple" : "mela", ... } ... } >>> TRANS {'IT': {'hello': 'ciao', 'apple': 'mela'}} . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . On Sep 6, 1:25 pm, A.TNG <[EMAIL PROTECTED]> wrote: > On Mon, Jun 23, 2008 at 10:31 PM, Takashi Matsuo > > <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Perhaps you can use django's i18n capability. In my case, it worked > > perfectly. > > > Please see: > >http://www.djangoproject.com/documentation/i18n/ > > or > >http://www.djangoproject.com/documentation/0.96/i18n/ > > according to the django's version. > > > Happy coding :-) > > Hi, > > Following is my settings.py: > > # Django settings for the example project. > > DEBUG = True > TEMPLATE_DEBUG = DEBUG > ROOT_URLCONF = 'urls' > > import os > ROOT_PATH = os.path.dirname(__file__) > TEMPLATE_DIRS = ( > # Put strings here, like "/home/html/django_templates" or > # "C:/www/django/templates". Always use forward slashes, even on Windows. > # Don't forget to use absolute paths, not relative paths. > ROOT_PATH + '/templates', > ) > > MIDDLEWARE_CLASSES = ( > #'django.middleware.locale.LocaleMiddleware', > 'django.middleware.common.CommonMiddleware', > ) > > LANGUAGE_CODE = 'zh-cn' > > INSTALLED_APPS = ( > #'django_hello.hello', > #'django_hello.newtest' > ) > > But, Django's i18n module only search .mo under > "google_appengine\lib\django\django\conf\locale". I have created > folder 'locale' under myapp. But it take no effect. > > Could I need one more parameter "LOCALE_PATHS" in settings.py? How to > set the value of "LOCALE_PATHS"? > > Could you offer a example? Thanks. > > > > > > > -- Takashi > > > On Mon, Jun 23, 2008 at 11:20 PM, limodou <[EMAIL PROTECTED]> wrote: > >> On Mon, Jun 23, 2008 at 10:11 PM, slizardo <[EMAIL PROTECTED]> > >> wrote: > > >>> The sure-shoot approach might be trough the use of template values > >>> with all the literals. > >>> But I would like to have something similar to a properties file * > >>> (like in Java or PHP), one for each locale. > >>> Any ideas or sample implementations? > > >>> Thank you! > > >> I'm developing a new framework named uliweb, and it has already support > >> i18n > >> now. maybe you can see it for some help. But I have no time to write > >> document about i18n process yet, I'll write the document as soon as I can. > > >> -- > >> I like python! > >> UliPad <>:http://code.google.com/p/ulipad/ > >> UliWeb <>:http://uliwebproject.appspot.com > >> My Blog: (new)http://http://hi.baidu.com/limodou > >> (old)http://www.donews.net/limodou > > -- > Best Regards, > TANG Jiyu --~--~-~--~~~---~--~~ 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: Internationalize GAE webapp
Yes, but I don't know the chinese. The english is the main language and I see into the short future, Good Machine Translations :-) On Sep 6, 2:27 pm, Wooble <[EMAIL PROTECTED]> wrote: > If you want your users to actually be able to *use* your application, > bad machine translation probably isn't a great solution. I'd argue > it's probably worse than doing nothing. > > On Sep 6, 6:28 am, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Ok, my is a provocation :-) > > > But, for example, I can't make a chinese translation, without > > this:http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=b... > > . > > . > > . > > -- Best Template Enginehttp://pyoohtml.appspot.com/best-template-engine > > . > > . > > . > > On Sep 6, 12:16 pm, A.TNG <[EMAIL PROTECTED]> wrote: > > > > On Sat, Sep 6, 2008 at 6:15 PM, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > > > Yes, the message is relevant, because this is the best way to all > > > > languages translation :-P > > > > It is a cool way. But not exactly what we want. > > > > Still thanks. :-) > > > > > On Sep 6, 12:05 pm, Pierre <[EMAIL PROTECTED]> wrote: > > > >> Sorry, > > > > >> Is your message relevant with the topic ? > > > >> Est ton message pertinent par rapport au sujet ? > > > > >> Thanks > > > >> Merci, > > > > >> Pierre > > > > >> On 6 sep, 12:02, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > > >> > "Le meilleur moteur de > > > >> > calibre"http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=b... > > > >> > . > > > >> > . > > > >> > . > > > >> > -- Best Template > > > >> > Enginehttp://pyoohtml.appspot.com/best-template-engine > > > >> > . > > > >> > . > > > >> > . > > > >> > On Jul 18, 9:52 pm, Pau <[EMAIL PROTECTED]> wrote: > > > > >> > > I write the internationalization following the django > > > >> > > documentation > > > >> > > inhttp://www.djangoproject.com/documentation/0.96/i18n/ > > > > >> > > If I write a "pure" django application, it work correctly. But if I > > > >> > > write a "pure" GAE (webapp) it's not work. > > > > >> > > Specifically: > > > > >> > > - The default translations writing in ...\django\conf\locale work > > > >> > > correctly. For example: > > > >> > > msg = _("English") is translate ok. > > > > >> > > - But I translate my text, for example msg = _("my web is > > > >> > > beautiful"), > > > >> > > it's not translating. > > > > >> > > I follow the same steps as before: I create the translation files > > > >> > > (.mo > > > >> > > nd .po) in my GAE project using make-messages.py and compile- > > > >> > > messages.py and I located them in {project}\locale\{locale} > > > >> > > \LC_MESSAGES directory, but it don't work. It's as if the > > > >> > > translation > > > >> > > not existing or not found. > > > > >> > > Do you have any idea? > > > > >> > > Thanks > > > > -- > > > Best Regards, > > > TANG Jiyu --~--~-~--~~~---~--~~ 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] Language Tools and GAE
Hi, how can I use the language tools with GAE? http://www.google.com/language_tools?hl=en . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-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 -~--~~~~--~~--~--~---
[google-appengine] Re: Language Tools and GAE
Googling I see "Google AJAX Language API" http://code.google.com/apis/ajaxlanguage/ On Sep 6, 2:48 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Hi, > how can I use the language tools with > GAE?http://www.google.com/language_tools?hl=en > . > . > . > -- Best Template Enginehttp://pyoohtml.appspot.com/best-template-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 -~--~~~~--~~--~--~---
[google-appengine] Re: Language Tools and GAE
Looking on the "Application Gallery" I've found: - "Geochat" - "Tell Babel: Language training game" but there is the message "This site is closed!" http://6gl4pp3ng.appspot.com/geochat/ This website has been closed due to violation of the terms and conditions of Google Adsense. We apologize for the inconvenience. :-( On Sep 6, 2:48 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Hi, > how can I use the language tools with > GAE?http://www.google.com/language_tools?hl=en > . > . > . > -- Best Template Enginehttp://pyoohtml.appspot.com/best-template-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 -~--~~~~--~~--~--~---
[google-appengine] Re: Sample code of i18n on GAE+Django
How can you add "i18sample.zip" to the post? On Sep 6, 4:21 pm, A.TNG <[EMAIL PROTECTED]> wrote: > Hi All, > > Finally, I could make i18n work on GAE now (with built-in Django > 0.96.1). Please check attached ZIP file. Set LANGUAGE_CODE in > settings.py to get different locale. > > Enjoy. :-) > > -- > Best Regards, > TANG Jiyu > > i18nsample.zip > 9KViewDownload --~--~-~--~~~---~--~~ 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: GAE and PayPal
Ok I read now http://groups.google.com/group/google-appengine/browse_thread/thread/9059b0750c45703b/b1d0611dd4b04273?lnk=gst&q=translate#b1d0611dd4b04273 Then I can build my business :-) On Aug 30, 11:04 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > June 10th, 2008 > Google intentionally blocking PayPal from App Engine? > > http://blogs.zdnet.com/Google/?p=1067 > > Why? (no money no code :-) > Has GAE aPaysystem? > > On Aug 29, 11:21 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Exists? > > > See this other: "GAE and > > AWS"http://groups.google.com/group/google-appengine/browse_thread/thread/... --~--~-~--~~~---~--~~ 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: Sample code of i18n on GAE+Django
Yes you can :-) but I don't know where is the [button] to add files. I'm posting from web... On Sep 6, 5:01 pm, A.TNG <[EMAIL PROTECTED]> wrote: > On 9/6/08, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > > > How can you add "i18sample.zip" to the post? > > I just want to share the sample code. Anything wrong? File size is only 9k. > > > > > > > On Sep 6, 4:21 pm, A.TNG <[EMAIL PROTECTED]> wrote: > >> Hi All, > > >> Finally, I could make i18n work on GAE now (with built-in Django > >> 0.96.1). Please check attached ZIP file. Set LANGUAGE_CODE in > >> settings.py to get different locale. > > >> Enjoy. :-) > > >> -- > >> Best Regards, > >> TANG Jiyu > > >> i18nsample.zip > >> 9KViewDownload > > -- > Best Regards, > TANG Jiyu --~--~-~--~~~---~--~~ 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: Online development environment for GAE
I like your web-based idea but can you build this evolute web application using the GAE framework? . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . On Sep 5, 7:35 pm, windchess <[EMAIL PROTECTED]> wrote: > Has anybody heard if Google is planning on creating an online > development environment for GAE ? > > It would make it really easy to get started using GAE without having > to download and install anything on your computer. > > Several benefits I see: > - no need to install any software locally > - no need to manage versions/releases of GAE > - much easier to get started with it > - no need to deploy from local environment to Google > - much easier to work from any computer > > GAE could also manage the version of the code for us by default... --~--~-~--~~~---~--~~ 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: Sample code of i18n on GAE+Django
Ok, but you could send your file here: http://groups.google.com/group/google-appengine/files . . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . . On Sep 7, 4:12 am, A.TNG <[EMAIL PROTECTED]> wrote: > On Sun, Sep 7, 2008 at 5:29 AM, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Yes you can :-) but I don't know where is the [button] to add files. > > I'm posting from web... > > I use Gmail to check this group. So I could send a email to this group > with attachments. > > > > > > > On Sep 6, 5:01 pm, A.TNG <[EMAIL PROTECTED]> wrote: > >> On 9/6/08, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > >> > How can you add "i18sample.zip" to the post? > > >> I just want to share the sample code. Anything wrong? File size is only 9k. > > >> > On Sep 6, 4:21 pm, A.TNG <[EMAIL PROTECTED]> wrote: > >> >> Hi All, > > >> >> Finally, I could make i18n work on GAE now (with built-in Django > >> >> 0.96.1). Please check attached ZIP file. Set LANGUAGE_CODE in > >> >> settings.py to get different locale. > > >> >> Enjoy. :-) > > >> >> -- > >> >> Best Regards, > >> >> TANG Jiyu > > >> >> i18nsample.zip > >> >> 9KViewDownload > > >> -- > >> Best Regards, > >> TANG Jiyu > > -- > Best Regards, > TANG Jiyu --~--~-~--~~~---~--~~ 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: Upload Post image app engine
I see the mapping for ('/', MainPage) but where is the mapping for "CountriesService", for example: ('/countries', CountriesService) and can you use only "get" and "post" in the "CountriesService" handler? . . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . . On Sep 8, 9:47 am, rive <[EMAIL PROTECTED]> wrote: > WellDavide, > > this is my main "app.py" > I'm > usinghttp://code.google.com/p/rive/source/browse/trunk/RivePython/rive/src... > > And this is my upload script (from line > 9-19):http://code.google.com/p/rive/source/browse/trunk/RivePython/rive/src... > > Did I do something wrong in my "main.py" file then? > > On Sep 6, 10:53 am,DavideRognoni<[EMAIL PROTECTED]> wrote: > > > Post here your main "app.py" file: > > > def main(): > > application = webapp.WSGIApplication([ > > ('/', home.handler.Home), > > ... > > > -- Best Template Enginehttp://pyoohtml.appspot.com/best-template-engine > > > On Sep 5, 3:23 pm, rive <[EMAIL PROTECTED]> wrote: > > > > I do an multipart post to "http://rive.appspot.com/services/ > > > CountriesService.py" > > > > But I keep getting 400 bad requests back?? The file is really online. > > > This is the server side file I have online. (the same client side code > > > works perfect with PHP) > > > > from google.appengine.api import images > > > from google.appengine.api import users > > > from google.appengine.ext import db > > > from google.appengine.ext import webapp > > > from Model import tblMapCountries, DTO > > > > class CountriesService(webapp.RequestHandler): > > > def post(self): > > > if users.is_current_user_admin(): > > > > country = tblMapCountries() > > > country.country = self.request.get("country") > > > uploadimage = images.resize(self.request.get("Filedata"), > > > 25, 20, images.PNG) > > > country.flag = db.Blob(uploadimage) > > > country.put() > > > return "inserted in db app engine" > > > else: > > > return "kiekeboe" --~--~-~--~~~---~--~~ 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: A Very Specific AJAX RPC App Engine Question
JSON-P example: function foo(json) { alert( json["responseData"]["translatedText"] ); } http://ajax.googleapis.com/ajax/services/language/ translate?v=1.0&q=hello%20world&langpair=en%7Cit&callback=foo"> // - see the link http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=hello%20world&langpair=en%7Cit&callback=foo . . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . . On Sep 9, 9:01 am, "Peter Svensson" <[EMAIL PROTECTED]> wrote: > I didn't know that GAE / Django supported callbacks, but they're really not > needed, since you supply your own handler function in Dojo ('load'). > If the json object is properly formatted, it will be returned as text and > evaluated by Dojo (since you're using handleAs:'json'). > > So add a load function, and ditch the extraneous callbacks parameter; > > dojo.io.script.get({> url: > "http://localhost:8080/rpc?";, > > content: { > > action: "Add", > > arg0: "1", > > arg2: "2", > > time: Date() > > }, > > handleAs: "json", > > preventCache: true, > > error: function(text){ > > alert("An error has occurred - " + text); > > return text; > > }, > > load: function(response) > > { > // The response variable will now be a normal > js object referring to the evaluated json > } > > > }); > > } > > Also, I changed 'text/json' to only 'json'. For security reasons you should > use jsonp, which assumes that all json is wrapped in a comment '/* ... */', > but you have to be sure the server does that as well :) > > A final note; You might not need to use dojo.io.script, which is only > required if you're loading cross-domain. If you're conecting back to the > same domain the page was loaded from, you can use dojo.xhrGet instead, which > is slightly quicker. > > .. I would also recommend that you use firebug (or the Dojo firebug lite > console for mentally challenged browsers, which pops up if you use > isDebug:true in djConfig, so you don't have to suffer alerts :) > > Cheers, > PS > > On Tue, Sep 9, 2008 at 8:49 AM, Bill <[EMAIL PROTECTED]> wrote: > > > I've been building some AJAX clients that call App Engine backends. > > I'm not sure what documentation your citing, but App Engine is just > > like any server out there. The standard webapp framework nicely > > handles GET, POST, and other HTTP actions/verbs. You can set the > > content header in your handler by doing this: > > > self.response.headers['Content-Type'] = 'text/javascript' # or > > 'application/json' if you think IE won't choke on it > > self.response.out.write(...some json...) > > > That's it. The hard part on the backend is the code that autoconverts > > datastore structures into json. In particular, you have to convert > > datetime and recurse down into lists and dictionaries and convert them > > to simple json types. > > > On Sep 8, 8:42 pm, Downtown <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I am attempting to write a GAE application using AJAX. It states: > > > > "In its most generic sense, an AJAX Request will have a function name > > > followed by any optional parameters, the last of which, if it is a > > > function, is an optional OnSuccess callback. So, lets write a function > > > that handles this: > > > > . > > > (resulting in ..) > > > GEThttp://localhost:8080/rpc?action=Add&arg0=%221%22&arg1=%222%22&time=1... > > > " > > > > Where is the "OnSuccess" callback?? It is missing from the GET URL. > > > Can I assume the following is correct: > > > GEThttp://localhost:8080/rpc?action=Add&arg0=%221%22&arg1=%222%22&time=1... > > > > Also, can I assume on the server side: > > > > self.response.out.write(simplejson.dumps(result))...will send the > > > response to myjavascriptfunction?? > > > > If I am missing something fundamental, please explain. If not, please > > > update the example to include better documentation on the callback > > > function. > > > > P.S. If you help me fine tune your example I will post a Dojo > > > equivalent that would substantially reduce coding the AJAX GET. In > > > Dojo it would be as simple as: > > > > dojo.io.script.get({ > > > url: "http://localhost:8080/rpc?";, > > > content: { > > > action: "Add", > > > arg0: "1", > > > arg2: "2", > > > time: Date(), > > > OnSuccess: "myjavascriptfunction" > > >
[google-appengine] Re: unterminated string literal
ESCAPEJS http://www.djangoproject.com/documentation/templates/#escapejs . . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . . On Sep 9, 10:38 pm, thepopeofantelope <[EMAIL PROTECTED]> wrote: > I understand that. The line of failure in my original posting was > generated from this line: > > document.getElementById("recipeIngredients").value="{{recipe.ingredients}}"; > > recipe.ingredients is the value from a text area written to the > database. The new lines are necessary for display. > > Can you provide a suggestion on how two resolve this? > > On Sep 8, 4:54 pm, Wooble <[EMAIL PROTECTED]> wrote: > > > This has nothing whatsoever to do with App Engine, but 2 seconds in > > Google shows that if you want a multi-line string in Javascript you > > can just put a \ at the end of each line. > > > On Sep 8, 5:49 pm,thepopeofantelope<[EMAIL PROTECTED]> wrote: > > > > A javascript function fails to render because and object > > > member(ingredients and directions) is of TextProperty type and > > > includes a value with newlines/linebreaks. I've tried to format the > > > value in the javascript function with no luck. Below is the page > > > source. > > > > How do I resolve this? > > > > function editRecipe(recipe) { > > > var form = document.getElementById("recipeform"); > > > var dialog = document.getElementById("recipeform_dialog"); > > > > document.getElementById("recipeKey").value="ahNkZWxyYWVtYXJpZXNyZWNpcGVzcgwLEgZSZWNpcGUYBgw"; > > > document.getElementById("recipeName").value="Mark"; > > > > > > > document.getElementById("recipeCategory").value=getCategoryIndex("Dessert"); > > > > document.getElementById("recipeCuisine").value=getCuisineIndex("American"); > > > > document.getElementById("recipeOccasion").value=getOccasionIndex("Other"); > > > document.getElementById("recipeServes").value="4"; > > > document.getElementById("recipeIngredients").value="BOIL TO CRACK > > > STAGE. 280 DEGREES > > > 2 CUPS OF WHITE SUGAR > > > 1 CUP OF WATER > > > 3/4 CUP OF WHITE CORN SYRUP > > > > "; > > > document.getElementById("recipeDirections").value="REMOVE AND ADD > > > 1 TABLESPOON OF ANISE OIL. > > > 10 DROPS OF RED FOOD COLORING. > > > QUICKLY STIR TO MIX. > > > POUR INTO BUTTERED PAN. > > > WHEN COOLED BREAK INTO PIECES. > > > > "; --~--~-~--~~~---~--~~ 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: debugging application
Now you can use the logging :-) http://docs.python.org/lib/module-logging.html . . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . . On Sep 9, 9:45 pm, Aramaki <[EMAIL PROTECTED]> wrote: > Hi. Firstable say i'm absolutly new in python so maybe my question > will seem a nooby question > > I´m writting a short application as a way to get used to python. I > come from Java and I have installed Pydev plugin on my eclipse ide to > make it easier for me to get used, > > But running applications with the google SDK make debugging a > nightmare for me. Firstable I can´t put breakingpoints neither run the > application in debug mode son I am using a selfmade class to output > some intermediate and check results in html an so control my > application flow. This way is of course not user friendly and I am > spending a lot of time checking classes that otherwise with a > breakpoint should be debugged in 5 minutes > > Can anybody give me an advice about debugging applications for google > apps and ides to use. 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Can I use Python script in the HTML just like the javascript?
Yes, but you must use this danger browser http://pyoohtml.appspot.com/IronBrowser On Sep 11, 10:05 am, Allen <[EMAIL PROTECTED]> wrote: > Hey guys, > > I am newcommer of Google App > > Can I use Python script in the HTML just like the javascript? > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Can I use Python script in the HTML just like the javascript?
AHAHA :-D --> http://en.wikipedia.org/wiki/Rodney_Dangerfield Yes Yes, it's very danger! On Sep 11, 8:26 pm, "Andrew Badera" <[EMAIL PROTECTED]> wrote: > Danger browser? > > Is that the browser Danger Mouse uses? > > Or perhaps the browser preferred by Rodney Dangerfield? > > On Thu, Sep 11, 2008 at 2:20 PM, Davide Rognoni <[EMAIL PROTECTED]>wrote: > > > > > > > > > Yes, but you must use this danger browser > >http://pyoohtml.appspot.com/IronBrowser > > > On Sep 11, 10:05 am, Allen <[EMAIL PROTECTED]> wrote: > > > Hey guys, > > > > I am newcommer of Google App > > > > Can I use Python script in the HTML just like the javascript? > > > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Eclipse & GAE
Hi, this post is very very good: "debugging application" http://groups.google.com/group/google-appengine/browse_thread/thread/ab9a557d28bc2240/a16a74a70b665ca9#a16a74a70b665ca9 Alexander Kojevnikov Did you use this guide? http://code.google.com/appengine/articles/eclipse.html Debugging, including setting breakpoints and stepping through the code works fine afterwards. --- Thanks to Alexander :-) --~--~-~--~~~---~--~~ 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: Eclipse & GAE
And thanks to Joscha :-) On Sep 11, 10:26 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Hi, > this post is very very good: > > "debugging > application"http://groups.google.com/group/google-appengine/browse_thread/thread/... > > Alexander Kojevnikov > Did you use this guide?http://code.google.com/appengine/articles/eclipse.html > > Debugging, including setting breakpoints and stepping through the code > works fine afterwards. > --- > > Thanks to Alexander :-) --~--~-~--~~~---~--~~ 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: Eclipse & GAE
Do you like GAE on Eclipse? . . . . -- Best Template Engine http://pyoohtml.appspot.com/best-template-engine . . . . On Sep 11, 10:34 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > And thanks to Joscha :-) > > On Sep 11, 10:26 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > Hi, > > this post is very very good: > > > "debugging > > application"http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > Alexander Kojevnikov > > Did you use this > > guide?http://code.google.com/appengine/articles/eclipse.html > > > Debugging, including setting breakpoints and stepping through the code > > works fine afterwards. > > --- > > > Thanks to Alexander :-) --~--~-~--~~~---~--~~ 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: Can I use Python script in the HTML just like the javascript?
My new web browser is danger but powerful. On Sep 11, 8:26 pm, "Andrew Badera" <[EMAIL PROTECTED]> wrote: > Danger browser? > > Is that the browser Danger Mouse uses? > > Or perhaps the browser preferred by Rodney Dangerfield? > > On Thu, Sep 11, 2008 at 2:20 PM, Davide Rognoni <[EMAIL PROTECTED]>wrote: > > > > > Yes, but you must use this danger browser > >http://pyoohtml.appspot.com/IronBrowser > > > On Sep 11, 10:05 am, Allen <[EMAIL PROTECTED]> wrote: > > > Hey guys, > > > > I am newcommer of Google App > > > > Can I use Python script in the HTML just like the javascript? > > > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Eclipse & GAE
Others powerful Open Source IDE for GAE/Python ? (breakpoints, code completion, code navigation, ...) On Sep 12, 9:37 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Do you like GAE on Eclipse? > . > . > . > . > -- Best Template Enginehttp://pyoohtml.appspot.com/best-template-engine > . > . > . > . > On Sep 11, 10:34 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > And thanks to Joscha :-) > > > On Sep 11, 10:26 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > this post is very very good: > > > > "debugging > > > application"http://groups.google.com/group/google-appengine/browse_thread/thread/... > > > > Alexander Kojevnikov > > > Did you use this > > > guide?http://code.google.com/appengine/articles/eclipse.html > > > > Debugging, including setting breakpoints and stepping through the code > > > works fine afterwards. > > > --- > > > > Thanks to Alexander :-) --~--~-~--~~~---~--~~ 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] The Best IDE for GAE/Python
Hi, what is the powerful IDE ? (breakpoints, code complation, code navigation, ..., ..., ..., ..., ...) Eclipse & Pydev? http://pydev.sourceforge.net/features.html --~--~-~--~~~---~--~~ 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: The Best IDE for GAE/Python
Yes, but I think that the GAE Team uses a particular IDE... On Sep 13, 10:32 pm, Ovnicraft <[EMAIL PROTECTED]> wrote: > 2008/9/13 Davide Rognoni <[EMAIL PROTECTED]> > > > > > Therefore the GAE Team uses this IDE ? > > IDE use is your chioce, i use emacs + pymacs + firebug and works ok ;-) > > > > > > > On Sep 13, 5:57 pm, Krishna <[EMAIL PROTECTED]> wrote: > > > Yes > > > >http://code.google.com/appengine/articles/eclipse.html > > > > Regards, > > > Krishna > > > > On Sep 13, 2:23 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > what is the powerful IDE ? (breakpoints, code complation, code > > > > navigation, ..., ..., ..., ..., ...) > > > > > Eclipse & Pydev?http://pydev.sourceforge.net/features.html > > -- > [b]question = (to) ? be : !be; .[/b] --~--~-~--~~~---~--~~ 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: Fwd: New Admin Console Released
Hi Marzia, before this new release my app version was 2.40 Now is 2 Is it right? On Sep 18, 7:30 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote: > Hi, > > This morning we released a new Admin Console which includes a more > descriptive accounting of your application's CPU stats. We now display the > amount of CPU consumed per request, as well as the avg amount of CPU used > per handler. > > In addition to the CPU stats, you can see the short-term request rate per > handler, as well as the total number of requests a day for each handler. > > Sign in to the admin console and check it out! > > -Marzia --~--~-~--~~~---~--~~ 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: The Best IDE for GAE/Python
Yes yes, VIM :-) Back to the Future http://wiki.python.org/moin/PythonEditors On Sep 19, 4:20 am, "Jorge Vargas" <[EMAIL PROTECTED]> wrote: > On Sat, Sep 13, 2008 at 3:23 AM, Davide Rognoni<[EMAIL PROTECTED]> wrote: > > > Hi, > > what is the powerful IDE ? (breakpoints, code complation, code > > navigation, ..., ..., ..., ..., ...) > > vim. > > > Eclipse & Pydev? > >http://pydev.sourceforge.net/features.html --~--~-~--~~~---~--~~ 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 create SOAP server in GAE
Yes, saving our time, please :-) QUICK START http://pywebsvcs.sourceforge.net/soappy.txt A simple "Hello World" http SOAP server: import SOAPpy def hello(): return "Hello World" server = SOAP.SOAPServer(("localhost", 8080)) server.registerFunction(hello) server.serve_forever() And the corresponding client: import SOAPpy server = SOAPpy.SOAPProxy("http://localhost:8080/";) print server.hello() On Sep 23, 1:22 pm, "Hasanat Kazmi" <[EMAIL PROTECTED]> wrote: > Of course I can do this but can't I somehow use SOAPpy to save my time? > > > > On Tue, Sep 23, 2008 at 6:32 AM, Greg <[EMAIL PROTECTED]> wrote: > > > You are right that appengine does the webserving for you. To provide a > > SOAP service, you simply need to... > > > - Decode the XML contained in the request > > - Do something with it > > - Encode the response in XML. > > > I'll leave it to you to google for python XML modules. > > > Cheers! > > Greg. > > > On Sep 23, 5:00 am, "Hasanat Kazmi" <[EMAIL PROTECTED]> wrote: > > > Hello folks, > > > I am facing a problem. I want to create SOAP web services using GAE. I > > want > > > to create server (so that others can utilize it) not client (I dont want > > to > > > utilize other SOAPes) > > > The problem is I have looked into few solutions on the internet specially > > > SOAPpy but when the create a SOAP server, they also create Web server to > > > handle it, secondly it is highly feasible that it won't work on GAE. > > > Anyone having an idea how to do it > > > > Regards > > > > -- > > > [EMAIL PROTECTED] > > > +923464362473 > > -- > [EMAIL PROTECTED] > +923464362473 --~--~-~--~~~---~--~~ 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: Google Apps, Python & C++
With a pure Python implementation ;-) http://code.google.com/appengine/docs/python/purepython.html On Sep 24, 8:35 pm, Jason <[EMAIL PROTECTED]> wrote: > What is the best way for a calculation hungry app (video processing) > which I have already in C++ to be ported to google apps? > > I'm no python expert but can get by but any help would be great. > > Ta. --~--~-~--~~~---~--~~ 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] Warning 1221mcycles /!\ 0kb
Why I see this warning? 09-28 12:44PM 34.736 / 302 371ms 1221mcycles /!\ 0kb 80.104.73.53 - - [28/09/2008:12:44:35 -0700] "GET / HTTP/1.1" 302 0 - - This request used a high amount of CPU, and was roughly 1.2 times over the average request CPU limit. High CPU requests have a small quota, and if you exceed this quota, your app will be temporarily disabled. --~--~-~--~~~---~--~~ 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: Caching images
Using the same URL. "HTTP Caching" http://httpwatch.com/httpgallery/caching/ This is not a GAE question :-) On Sep 28, 10:10 pm, fedekun <[EMAIL PROTECTED]> wrote: > Is there a way to store dynamic images in the browser cache? > > -- > Best Regards. > fedekun --~--~-~--~~~---~--~~ 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: Warning 1221mcycles /!\ 0kb
I don't understand, because the page is very simple: from google.appengine.ext import webapp class Home(webapp.RequestHandler): def get(self): self.redirect("http://appgallery.appspot.com/about_app? app_id=agphcHBnYWxsZXJ5chMLEgxBcHBsaWNhdGlvbnMYtR8M") On Sep 28, 10:05 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Why I see this warning? > > 09-28 12:44PM 34.736 / 302 371ms 1221mcycles /!\ 0kb > 80.104.73.53 - - [28/09/2008:12:44:35 -0700] "GET / HTTP/1.1" 302 0 - > - > This request used a high amount of CPU, and was roughly 1.2 times over > the average request CPU limit. High CPU requests have a small quota, > and if you exceed this quota, your app will be temporarily disabled. --~--~-~--~~~---~--~~ 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: Warning 1221mcycles /!\ 0kb
I don't understand, because the page is very simple: from google.appengine.ext import webapp class Home(webapp.RequestHandler): def get(self): self.redirect("http://appgallery.appspot.com/about_app? app_id=agphcHBnYWxsZXJ5chMLEgxBcHBsaWNhdGlvbnMYtR8M") On Sep 28, 10:05 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote: > Why I see this warning? > > 09-28 12:44PM 34.736 / 302 371ms 1221mcycles /!\ 0kb > 80.104.73.53 - - [28/09/2008:12:44:35 -0700] "GET / HTTP/1.1" 302 0 - > - > This request used a high amount of CPU, and was roughly 1.2 times over > the average request CPU limit. High CPU requests have a small quota, > and if you exceed this quota, your app will be temporarily disabled. --~--~-~--~~~---~--~~ 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: Comment Function?
Hi Isa, # logged-in users: http://code.google.com/appengine/docs/configuringanapp.html you must configure the file "app.yaml": - url: /comment script: app.py login: required # store a reference http://code.google.com/appengine/docs/datastore/entitiesandmodels.html # by email http://code.google.com/appengine/docs/mail/sendingmail.html Can you pay for your "commment function" ? :-) -- David(e) [EMAIL PROTECTED] ha scritto: > Hello > > I would like to implement a comment function where logged-in users can > post comments to something (a post or an image). Should I store a > reference of the comments-object in the something-object or the other > way around. > > Replies should inform all commentators by email about the new comment. > > Is there a short example on how to best do this? > > Thank you, > Isa --~--~-~--~~~---~--~~ 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: Comment Function?
Hi Isa, # logged-in users: http://code.google.com/appengine/docs/configuringanapp.html you must configure the file "app.yaml": - url: /comment script: app.py login: required # store a reference http://code.google.com/appengine/docs/datastore/entitiesandmodels.html # by email http://code.google.com/appengine/docs/mail/sendingmail.html Can you pay to develope your "commment function" ? :-) -- David(e) On Sep 29, 6:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello > > I would like to implement a comment function where logged-in users can > post comments to something (a post or an image). Should I store a > reference of the comments-object in the something-object or the other > way around. > > Replies should inform all commentators by email about the new comment. > > Is there a short example on how to best do this? > > Thank you, > Isa --~--~-~--~~~---~--~~ 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: Comment Function?
Hi Isa, # logged-in users: http://code.google.com/appengine/docs/configuringanapp.html you must configure the file "app.yaml": - url: /comment script: app.py login: required # store a reference http://code.google.com/appengine/docs/datastore/entitiesandmodels.html # by email http://code.google.com/appengine/docs/mail/sendingmail.html Can you pay for your "commment function" ? :-) -- David(e) [EMAIL PROTECTED] ha scritto: > Hello > > I would like to implement a comment function where logged-in users can > post comments to something (a post or an image). Should I store a > reference of the comments-object in the something-object or the other > way around. > > Replies should inform all commentators by email about the new comment. > > Is there a short example on how to best do this? > > Thank you, > Isa --~--~-~--~~~---~--~~ 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: Comment Function?
Hi Isa, # logged-in users: http://code.google.com/appengine/docs/configuringanapp.html you must configure the file "app.yaml": - url: /comment script: app.py login: required # store a reference http://code.google.com/appengine/docs/datastore/entitiesandmodels.html # by email http://code.google.com/appengine/docs/mail/sendingmail.html Can you pay for your "commment function" ? :-) -- David(e) On Sep 29, 6:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello > > I would like to implement a comment function where logged-in users can > post comments to something (a post or an image). Should I store a > reference of the comments-object in the something-object or the other > way around. > > Replies should inform all commentators by email about the new comment. > > Is there a short example on how to best do this? > > Thank you, > Isa --~--~-~--~~~---~--~~ 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] Sorry for the multiple comments :-(
:-( here "Comment Function? " http://groups.google.com/group/google-appengine/browse_thread/thread/706fb278a6b7a830# and here "Google App Engine" http://groups.google.com/group/google-appengine/browse_thread/thread/a81b5dcf8a4dcbce/9edc1cd5433f5768#9edc1cd5433f5768 --~--~-~--~~~---~--~~ 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: if url contains chinese character ,sometimes will catch Server error
Can we use the binary codification http://www.woiclub.cn/category/01010101010101010101 :-) On Sep 29, 3:26 am, 平平 <[EMAIL PROTECTED]> wrote: > in order to make url pretty and Restful.i make url such as: > > http://www.woiclub.cn/post/haha > > http://www.woiclub.cn/tags/java > > http://www.woiclub.cn/category/北京 > > if url contains chinese character,sometimes ok,sometimes will catch > server 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: I can't get the hello world tutorial to work!
The problem is here (have you the "app.yaml" file?): def CreateServer(root_path, login_url, port, template_dir, serve_address='', require_indexes=False, python_path_list=sys.path): """Creates an new HTTPServer for an application. Args: root_path: String containing the path to the root directory of the application where the app.yaml file is. login_url: Relative URL which should be used for handling user login/logout. port: Port to start the application server on. template_dir: Path to the directory in which the debug console templates are stored. serve_address: Address on which the server should serve. require_indexes: True if index.yaml is read-only gospel; default False. python_path_list: Used for dependency injection. Returns: Instance of BaseHTTPServer.HTTPServer that's ready to start accepting. """ On Sep 28, 12:04 pm, dr hil <[EMAIL PROTECTED]> wrote: > I installed python 2.5 on my machine, working fine. > I am working on windows XP sp3, > I installed the google app engine as explained in the tutorial and > when I tried to run the script I have got: > > C:\Program Files\Google\google_appengine>dev_appserver.py helloworld/ > Traceback (most recent call last): > File "C:\Program Files\Google\google_appengine\dev_appserver.py", > line 55, in > > execfile(script_path, globals()) > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \dev_apps > erver_main.py", line 358, in > sys.exit(main(sys.argv)) > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \dev_apps > erver_main.py", line 306, in main > config, matcher = dev_appserver.LoadAppConfig(root_path, {}) > File "C:\Program Files\Google\google_appengine\google\appengine\tools > \dev_apps > erver.py", line 2636, in LoadAppConfig > raise AppConfigNotFoundError > google.appengine.tools.dev_appserver.AppConfigNotFoundError > > the port localhost:8080 is not working. > what could be the problem? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---