[google-appengine] Re: GQL Query issue

2008-08-30 Thread fdezjose

I've found a solution to my case. I had to query on two properties:
latitude and longitude, surfing the net I discovered this thing called
Geohash (http://en.wikipedia.org/wiki/Geohash) so now I have a geohash
property that I can query without any problem.

This blog post was also useful:
http://labs.metacarta.com/blog/27.entry/geographic-queries-on-google-app-engine/



Thanks,

José Luis




On Aug 28, 10:33 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> 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] Re: Having doubts about AppEngine

2008-08-30 Thread Marcel Overdijk

Clear roadmap is a real must!

People are asking for this in a oot of discussions, but there is no
info from Google yet. To bad I think.
See also:
http://groups.google.com/group/google-appengine/browse_thread/thread/aab96f8adcb99725/00b76bbfc5a43a65?lnk=gst&q=overdijk#00b76bbfc5a43a65


On 30 aug, 04:02, Michael Schreifels <[EMAIL PROTECTED]> wrote:
> > The App Engine platform is a way to build massively scalable CRUD-
> > style web apps by sticking to a few simple constraints. It's perfect
> > for situational apps, one-offs, hobby projects, all of which can now
> > survive slashdotting without arcane architectural hacks. What's not to
> > love about that? Why criticize it for not being something it isn't
> > designed to be?
> > I missed where anyone from Google claimed to be looking for businesses
> > to develop their commercial applications on App Engine. Do you have
> > any pointers to such public statements?
>
> I think App Engine *is* targeting startups and other small businesses
> without the time, interest, or money to build a scalable
> infrastructure around them.
>
> Fromhttp://blogs.zdnet.com/SAAS/?p=489-- the AE project manager:
>
> “We’re much more suitable for the consumer marketplace during the
> preview release.”
>
> Now let's think about this. Google creates an infrastructure to create
> web applications with a seemingly infinite amount of no-hassle scaling
> (for a price, of course). Are they really targeting Joe Brown who is
> creating a website to share pictures of his new kid with his family?
> Of course not. The quota is theoretically capable of serving 5 million
> users for free. If we are just talking about mere hobbyists with a few
> hits a day, how would users ever exceed the quota and allow Google to
> charge them money?!
>
> But if Google is shooting for businesses, why did the product manager
> say it's best suited for the consumer marketplace ("DURING THE PREVIEW
> RELEASE")?
>
> "...citing as examples the lack of an SLA and the ceilings on usage
> that result in a denial of service when exceeding the limits..."
>
> Sounds like two problems that are most certainly going to be fixed
> after the preview.
>
> > I don't see how App Engine is "in competition" with Amazon. The
> > services (GAE vs EC2/S3/SQS/etc.) are not comparable. Amazon's
> > offerings are much lower-level, and require a great deal of tech savvy
> > to exploit. I use (and adore) the Amazon stack where appropriate, but
> > would never even think of using it for a web app like my wordle.net.
> > It would be like building a whole factory, from scratch, to sell
> > lemonade from my driveway.
>
> A lot of websites hosted on Amazon are just that--regular old CRUD
> apps. GAE doesn't offer anything close to the control that Amazon
> does, but I bet there are a lot of Amazon customers that would trade
> their control for the worry-free scaling of AE. They both are
> attacking the same problem, but very differently.
--~--~-~--~~~---~--~~
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

2008-08-30 Thread Davide Rognoni

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%}?

2008-08-30 Thread Davide Rognoni

...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] Re: The Newbie Doubts on Django Template

2008-08-30 Thread Tim Hoffman

Hi

zpt  (which comes from zope and has been integrated with django)
runs fine on gae,

Alternately you can quite easily get raw zope page templates
working with gae

I have a live gae app which uses a cut down zope3 stack and z3c.forms
and some patches and hacks.

Once I get past our movie launch this week, I will point it out and
start documenting how I got a useable zope3 stack working.

Rgds

Tim

On Aug 30, 5:29 am, 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: Is Google App Engine a "Virtual Machine" like Flash or Dot Net or Java ?

2008-08-30 Thread Mel_3

Andy (and others)

Thanks for the info.

First... what is a uber-lazy OP?

Second... it sounds like the GAE is a program that runs on the
server... and the developer creates server side apps using the python
language... and Google provides an SDK that you can download and run
locally during development...
... kinda like running IIS on your XP Pro PC to develope ASP apps...
... or like running Apache locally while developing server side
applications using PHP...

Where can I see some Google App Engine online examples?
Can you put them on your Google Sites page or on your web page at any
host or are they only avalable as Gadgets on Google Apps?

Thanks again for all the quick start help folks... multi-tasking here
so limited time to chase all this stuff down on the net... and that is
the great thing about online-fourms... where users can help users :)

=
On Aug 27, 6:27 am, "Andrew Badera" <[EMAIL PROTECTED]> wrote:
> But that's not what the uber-lazy OP is asking.
>
> OP, just to silence this thread already, no, clients don't download
> anything. GAE presents a dynamic website/webapp environment that clients,
> like browsers or desktop clients or mobile clients, access by URI (URL).
>
> There COULD, in theory, be a custom client app or even a VM that's in play,
> but that has nothing to do with GAE. It's like weather.com or an ecommerce
> site or your favorite Web 2.0 app -- you can build all sorts of interactive,
> dynamic components, store information in and retrieve it from a somewhat
> database-like datastore, and access it over the web.
>
> On Wed, Aug 27, 2008 at 8:35 AM, Barry Hunter
> <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
>
>
> > Both.
>
> > You download and run the SDK on your machine
> >http://code.google.com/appengine/downloads.html
> > which is basically a full appengine environment (but only designed for
> > development work), and only servers pages on your conputer
>
> > and its a online 'hosting' webserver running python in a CGI like
> > environment. Which serves webpages to your visitors.
>
> > (Also I think you mean Google App Engine, there is a related but
> > separate product Google Apps)
>
> > On Wed, Aug 27, 2008 at 1:17 PM, Mel_3 <[EMAIL PROTECTED]> wrote:
>
> > > Bill, thanks for the comments. I guess I'm really asking is...
>
> > > Is Google Apps a program that you download and install on your
> > > computer...
> > > no matter weather it is a 'virtual machine' or an 'interpreter' or
> > > whatever...
> > > So that once you download and run it... or install it... you can write
> > > code that it will execute for you...
>
> > > Or is Google Apps a 'server side' application... an application that
> > > runs on a server... and get's its instructions from code embedded in
> > > the web page code... like PHP, ASP, etc ??
>
> > > Thanks again for any help.
>
> > > On Aug 26, 3:50 pm, Bill <[EMAIL PROTECTED]> wrote:
> > >> > 1 - Is the Google App Engine a "Virtual Machine" like Flash or Dot Net
> > >> > or Java?
>
> > >> No.  And while Flash could be in the Virtual Machine (VM) camp, .NET
> > >> and Java are broad platforms that aren't just VMs.  If App Engine were
> > >> in .NET terms, it would be as if Microsoft provided scalable hosting
> > >> and a SQL server for a C# and ASP.NET.
>
> > --
> > Barry
>
> > -www.nearby.org.uk-www.geograph.org.uk-
>
> --
>
> Thanks-
> - Andy Badera
> - [EMAIL PROTECTED]
>
> - (518) 641-1280
> -http://higherefficiency.net
> -http://changeroundup.com/
> -http://flipbitsnotburgers.blogspot.com/
> -http://andrew.badera.us/
>
> - Google me:http://www.google.com/search?q=andrew+badera- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Is Google App Engine a "Virtual Machine" like Flash or Dot Net or Java ?

2008-08-30 Thread David Symonds

On Sat, Aug 30, 2008 at 10:09 PM, Mel_3 <[EMAIL PROTECTED]> wrote:

> First... what is a uber-lazy OP?

It's a very lazy Original Poster (OP). You seem to be asking people to
do your homework for you. All the questions you are asking are very
easy to find answers for yourself.

> Thanks again for all the quick start help folks... multi-tasking here
> so limited time to chase all this stuff down on the net... and that is
> the great thing about online-fourms... where users can help users :)

Many of us are happy to help, but we'd be much more helpful if you
actually put in some effort yourself. Please read
http://www.catb.org/~esr/faqs/smart-questions.html before asking any
more questions here, as you seem to be misunderstanding the point of
this discussion group.


Dave.

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



[google-appengine] Re: Google App Engine Development Tools (gaedt)

2008-08-30 Thread EricWittmann

Cool - thanks for the ideas.  I will need to put these into the gaedt
wiki at some point.

Re: Command-Line Args - gaedt introduces a file called gae.yaml.  This
file contains the dev server command line args.  Right now it is only
port, but the intent is to contain all of the dev server args.

I'll have to take a look at the profiling link - thanks for that.  I
haven't gotten far enough into my own gae work yet to have worried
about profiling.  But in general, I would think we'd want gaedt to
have as much built-in as possible, even if it's just integration with
existing technologies.  We'd want best practices for profiling, unit
testing, etc etc.

Built-in document is also a fantastic idea.  Perhaps a separate view
for that, or maybe there's a way to integrate into the existing
Eclipse Help framework.

On Aug 29, 5:38 pm, Sylvain <[EMAIL PROTECTED]> wrote:
> One word : great !
>
> ideas :
> * add options : same as  "Command-Line Arguments" (http://
> code.google.com/appengine/docs/thedevwebserver.html
> * automaticaly add the profiling code 
> :http://code.google.com/appengine/kb/commontasks.html#profiling
> * open the eclipse browser with the "local admin" _ah/admin
> * open the eclipse browser with the documentations (local, we can
> download it now or internet)
>
> On 29 août, 18:31, EricWittmann <[EMAIL PROTECTED]> wrote:
>
> > Hey everyone.
>
> > We have started a project to create an Eclipse-based IDE for
> > developing Google App Engine applications.  To that end, we have
> > create the following open source project:
>
> >http://code.google.com/p/gaedt/
>
> > Some of the features already present in gaedt:
>
> > 1) Based on PyDev for Eclipse
> > 2) New GAE Project Wizard
> > 3) Application Editor (editor for the app.yaml file)
> > 4) GAE Applications View - shows all GAE Applications found in the
> > workspace
> > 5) Quick Run/Debug/Browse (etc) actions for Applications listed in the
> > Applications View
>
> > The long-term goal of the project is for gaedt to become the top/
> > defacto development environment for create GAE apps.  To accomplish
> > this, we'd love to get help from the rest of the GAE community.
> > Anything from feature ideas to development contributions would be
> > greatly appreciated.  We'll be updating the gaedt ourselves as we
> > encounter stumbling blocks during development of our own GAE
> > project(s).  But what I think is really needed is solid contributions
> > from the GAE community.
>
> > Take a look at the project page and let us know what you 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] InPyTut - Interactive Python Tutorial

2008-08-30 Thread Davide Rognoni

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: Google App Engine Development Tools (gaedt)

2008-08-30 Thread Sylvain

Another ideas :)

- add "handler" to app.yaml editor (i.e : "add new static dir ->
browse it and select, add new static file, etc,...) Ordering handlers
must be possible (it's important)
- add an "index.yaml" editor
- add a "real" GAE template : with all "required" dirs (img, static,
css, template) that works with the webapp framework. And add your
favicon to this template :) it creates an error by default.
- add a built-in GQL manager : select db.Model and query the entities.
We could dump the rows and for example, with blob if we choose the
type (png, gif, binary, text,...) it could be possible to display the
"real content" not only binary string. Rows must be editabled.

Regards


On 30 août, 14:20, EricWittmann <[EMAIL PROTECTED]> wrote:
> Cool - thanks for the ideas.  I will need to put these into the gaedt
> wiki at some point.
>
> Re: Command-Line Args - gaedt introduces a file called gae.yaml.  This
> file contains the dev server command line args.  Right now it is only
> port, but the intent is to contain all of the dev server args.
>
> I'll have to take a look at the profiling link - thanks for that.  I
> haven't gotten far enough into my own gae work yet to have worried
> about profiling.  But in general, I would think we'd want gaedt to
> have as much built-in as possible, even if it's just integration with
> existing technologies.  We'd want best practices for profiling, unit
> testing, etc etc.
>
> Built-in document is also a fantastic idea.  Perhaps a separate view
> for that, or maybe there's a way to integrate into the existing
> Eclipse Help framework.
>
> On Aug 29, 5:38 pm, Sylvain <[EMAIL PROTECTED]> wrote:
>
> > One word : great !
>
> > ideas :
> > * add options : same as  "Command-Line Arguments" (http://
> > code.google.com/appengine/docs/thedevwebserver.html
> > * automaticaly add the profiling code 
> > :http://code.google.com/appengine/kb/commontasks.html#profiling
> > * open the eclipse browser with the "local admin" _ah/admin
> > * open the eclipse browser with the documentations (local, we can
> > download it now or internet)
>
> > On 29 août, 18:31, EricWittmann <[EMAIL PROTECTED]> wrote:
>
> > > Hey everyone.
>
> > > We have started a project to create an Eclipse-based IDE for
> > > developing Google App Engine applications.  To that end, we have
> > > create the following open source project:
>
> > >http://code.google.com/p/gaedt/
>
> > > Some of the features already present in gaedt:
>
> > > 1) Based on PyDev for Eclipse
> > > 2) New GAE Project Wizard
> > > 3) Application Editor (editor for the app.yaml file)
> > > 4) GAE Applications View - shows all GAE Applications found in the
> > > workspace
> > > 5) Quick Run/Debug/Browse (etc) actions for Applications listed in the
> > > Applications View
>
> > > The long-term goal of the project is for gaedt to become the top/
> > > defacto development environment for create GAE apps.  To accomplish
> > > this, we'd love to get help from the rest of the GAE community.
> > > Anything from feature ideas to development contributions would be
> > > greatly appreciated.  We'll be updating the gaedt ourselves as we
> > > encounter stumbling blocks during development of our own GAE
> > > project(s).  But what I think is really needed is solid contributions
> > > from the GAE community.
>
> > > Take a look at the project page and let us know what you 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: Encoding character. How to search/store strings with non-ascii chars?

2008-08-30 Thread Kyle Jensen

Hi Juan, try using the u"xxx" format, e.g.

ctmp = Category.gql("WHERE title = :1", u"Fórmula 1").get()

Also, maybe make sure your HTML files use utf-8 encoding...mine have

in the header and

at the very top (ahead of the  tag)

buen suerte, kyle

On Aug 28, 6:01 pm, Merlos <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a problem to get data that uses non ascii characters such as
> º,ª,á,é,í,ó,ú...
>
> I will explain how do I store and try to retrieve the data:
>
> On top of the python source file I have:
> # -*- coding: utf-8 -*-
>
> The form input:
> 
>
> Processing the form:
> def post...
>     ...
>     category.title = self.request.get("title")
>     ...
>     category.put()
>
> I fill the form with a category with title "Fórmula 1"
> I fill the form with a category with title "Baloncesto" (basket)
>
> Trying to find the category by title
>
> ctmp = Category.gql("WHERE title = :1","Fórmula 1").get()
> if ctmp is None:
>     self.response.out.write("Enjuto says: I cannot find tilded
> words :_(")
> else:
>      self.response.out.write("Pataliebre! I found it")
>
> Searching "Fórmula 1" is always None, but searching "Baloncesto" works
> fine.
>
> Somebody knows how do I have to store and retrieve data that has no
> ascii chars?
>
> Thank you in advance. Juan.
--~--~-~--~~~---~--~~
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] Same request *sometimes* gives high CPU warning -- random?

2008-08-30 Thread Kyle Jensen


Our app serves has a few hundred hits a day at a particular url/view.
Seemingly randomly, some of these requests will throw the high CPU
warning, i.e.

"This request used a high amount of CPU, and was roughly 2.6 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."

But, its certainly not all the time. Just seems to be some times.
Nothing special as far as I can tell about these requests.

Does this happen to other people?  Is it just ghosts in the machine?

Thx, Kyle
--~--~-~--~~~---~--~~
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

2008-08-30 Thread Chris Tan

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: Same request *sometimes* gives high CPU warning -- random?

2008-08-30 Thread Sekhar

I've had that problem when using urlfetch() in my app (http://
www.allurefx.com) - GAE seems to charge urlfetch() times to CPU, even
though that is sleeping time. I ended up making the remote files local
and removing urlfetch() altogether as a workaround. I believe this has
been reported to Google.

Also do a search on these forums, you'll find other potential causes.

On Aug 30, 8:25 am, Kyle Jensen <[EMAIL PROTECTED]> wrote:
> Our app serves has a few hundred hits a day at a particular url/view.
> Seemingly randomly, some of these requests will throw the high CPU
> warning, i.e.
>
> "This request used a high amount of CPU, and was roughly 2.6 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."
>
> But, its certainly not all the time. Just seems to be some times.
> Nothing special as far as I can tell about these requests.
>
> Does this happen to other people?  Is it just ghosts in the machine?
>
> Thx, Kyle
--~--~-~--~~~---~--~~
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

2008-08-30 Thread cpedia

By the way, the roadmap of the next release is here.

http://code.google.com/p/cpedialog/wiki/RoadMap_for_coming_v_2_0_release

On Aug 29, 10:05 am, cpedia <[EMAIL PROTECTED]> wrote:
> That's a good idea. Myabe we can make wiki support as a plugin to
> cpedialog.
> The next phase of cpedialog will focus on the Drag & Drop feature for
> customizing layout and page css-style redefine.
>
> On Aug 28, 3:24 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
>
>
>
> > 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!- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Same request *sometimes* gives high CPU warning -- random?

2008-08-30 Thread Sylvain

I have this problem too.

Currently to decrease these warnings, i'have :
- remove all debug parameters (webapp.WSGIApplication([('/', xxx)],
debug= False) and render(path, values, debug=False)
- remove the profiler code
- change list.sort(...) with new_list = sorted(list,...

I don't know why but the number of warnings has decreased.

I've created 2 issues about this : 678 (urlfetch) and 680 (profiling
info)

Regards.

On 30 août, 18:20, Sekhar <[EMAIL PROTECTED]> wrote:
> I've had that problem when using urlfetch() in my app 
> (http://www.allurefx.com) - GAE seems to charge urlfetch() times to CPU, even
> though that is sleeping time. I ended up making the remote files local
> and removing urlfetch() altogether as a workaround. I believe this has
> been reported to Google.
>
> Also do a search on these forums, you'll find other potential causes.
>
> On Aug 30, 8:25 am, Kyle Jensen <[EMAIL PROTECTED]> wrote:
>
> > Our app serves has a few hundred hits a day at a particular url/view.
> > Seemingly randomly, some of these requests will throw the high CPU
> > warning, i.e.
>
> > "This request used a high amount of CPU, and was roughly 2.6 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."
>
> > But, its certainly not all the time. Just seems to be some times.
> > Nothing special as far as I can tell about these requests.
>
> > Does this happen to other people?  Is it just ghosts in the machine?
>
> > Thx, Kyle
--~--~-~--~~~---~--~~
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] newbie doubt:TemplateDoesNotExist in live

2008-08-30 Thread v4vijayakumar


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] age off old data / archive / move data between databases

2008-08-30 Thread lhm

Any one have any ideas on how to age off data from a one database and
move to another database?

I would like to have to databases.
1.  Current data.
2.  Archived old data
and one script/cron job that is sceduled to moves all records older
than XXX time from the "current data" database to the "archived old
data" database.

--~--~-~--~~~---~--~~
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] select and filter by date

2008-08-30 Thread Kjartan

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: Internationalize GAE webapp

2008-08-30 Thread xavi

I also have the same problem. Did you solve it?
I tried what manatlan said, but it didn't help; anyway, it's not only
_() that doesn't work as expected but it also happens with the {%
trans %} template tag.

xavi

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: GAE and AWS

2008-08-30 Thread dar

Did you look at boto?

http://code.google.com/p/boto/wiki/SimpleDbIntro

On Aug 28, 5: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: Internationalize GAE webapp

2008-08-30 Thread xavi

Did you solve it? I have the same problem.
I tried what manatlan said, but it didn't help; anyway, besides the
_(), I'm also using the {% trans %} template tag, and the same problem
occurs.

xavi

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 myGAEproject 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: Having doubts about AppEngine

2008-08-30 Thread Michael Schreifels

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: Having doubts about AppEngine

2008-08-30 Thread Davide Rognoni

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

2008-08-30 Thread Davide Rognoni

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

2008-08-30 Thread Davide Rognoni

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

2008-08-30 Thread Davide Rognoni

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

2008-08-30 Thread Davide Rognoni

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] P3P header

2008-08-30 Thread kordi

Hello appengine team,

could it be possible that you set P3P Headers when setting the ACSID
Cookie. Why? That you can use the acsid cookie as third party cookie
in the internet explorer, without changing the privacy/cookie
settings.

Nikolai
--~--~-~--~~~---~--~~
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

2008-08-30 Thread Davide Rognoni

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

2008-08-30 Thread Noah Gift

On Sat, Aug 30, 2008 at 3: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.

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:

http://appengine-cookbook.appspot.com/

>
> And further, personally I think that if you find Django templates too
> limiting, you probably don't fully understand it.

It is still very controversial in the Python community to not include
the ability to run Python in the template.  I think it is very
appropriate for newcomers to question how and why something works the
way it does.  It is far from a foregone conclusion that Django
templates are the superior way to accomplish templating in Python.

I have personally observed two PHP developers turned off from wanting
to use Python ever again, because they were forced to use Django
templates in a project.

 Of course we Python programmers could say, wow your "stupid" because
you don't do it my way, it is the best.  On the other hand maybe they
have a point.  Sometimes, in my opinion too, some Python in the
template is the easiest way to solve a problem.

They were a bit offended that this design decision was not delegated
to them, instead of forced upon them.  I think it is ok, to question
this decision if you are from another language.

Here are links to blog entries by Shannon Behrens, a guy who wrote a
Python web framework in 2001, in which he also questions the wisdom of
Django templates:

http://jjinux.blogspot.com/search?q=django+template

I don't consider him to not understand Django templates, yet he also
doesn't use them.  This is really a personal decision though, as many
people are happy with Django templates.  To each their own.  One thing
I do disagree though is that if you don't like some portion of Django
like templates, or the URL dispatch, you don't know how it works.  I
think many people know how Django works, but only like certain parts
of it.  I happen to really like the admin interface and the URL
dispatching, and not the template or ORM.

In addition, I have personally done some very large Django projects,
and have some issues with doing things with the Django templates.  I
don't particularly care for them, and would prefer Genshi or Mako,
although they aren't horrible either.

One gripe I have with Google is that they need to correct their
documentation here:
http://code.google.com/appengine/docs/gettingstarted/usingwebapp.html

It states that app engine supports:   Django, CherryPy, Pylons, and
web.py  This is actually incorrect, as many of the components, like
templates, in Pylons are not fully tested and working.  Hopefully this
gets addressed soon.

 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

[google-appengine] Re: Having doubts about AppEngine

2008-08-30 Thread Roberto Saccon

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
> > > > 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] Model.get_by_key_name() needs the parent node specified

2008-08-30 Thread djidjadji

Hi,

I have a few objects put together in an entity group because they are
needed in a transaction.
These objects also have a key_name, set during creation. I want to
retrieve then with the
Model.get_by_key_name() function, and not with a GQL query.

The problem is that Model.get_by_key_name() can't find them by key_name.

After some experimentation I found when they are found, and now very
carefully read the manual for get_by_key_name().
You have to know which object is the parent of the object you look for
with the given key_name.
So, get the parent by key_name. And use the parent object to get the
one you want
Model.get_by_key_name(keyName, parent=parentObject).

But if the direct parent is not a root node you have to get his parent
too before you can get the direct parent.
You have to do it all the way to the root tree?
Or is it enough to get the root node of the entity group and use that
as a parent node in the calls to get_by_key_name() for the object in
the entity group?

In short the key_name of an object IS the path, series of
keys/IDs/key_names of all the parents of the object, followed by the
key_name you supply in the constructor.

Both data viewers, develop and production, don't show this
long-key_name. Not at all in list of objects of a certain kind, the
development data viewer shows that the entity has a parent node, the
production data viewer does NOT show a possible parent object.

It would be much more clear if the key_name that you specify in the
constructor is unique "as given".
And if you want to, you can specify a path like
"root_key/object1_key/object2_key/this_key".

Djidjadji

--~--~-~--~~~---~--~~
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

2008-08-30 Thread Davide Rognoni

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
> > > > > 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

[google-appengine] Re: Having doubts about AppEngine

2008-08-30 Thread Davide Rognoni

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 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 pro

[google-appengine] Re: The Newbie Doubts on Django Template

2008-08-30 Thread Davide Rognoni

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

2008-08-30 Thread Mike Orr

On Sat, Aug 30, 2008 at 2:25 PM, Davide Rognoni
<[EMAIL PROTECTED]> wrote:
>
> Not Google but:
>
> "Guido just pronounced: Django is the [Python] web framework
> http://www.cmlenz.net/archives/2006/08/the-python-web-framework

Note that that was written in 2006.  Since then the frameworks and
template engines have remained pretty much in their same relative
positions.  An exception is Mako, which I think was first released
around that time and has now become one of the frontrunners for
non-XML-style templates.  Jinja also appeared, which I think has a
Django template-like syntax.

In order for Django and TurboGears to merge, one of them would have to
give up its founding philosophy.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~-~--~~~---~--~~
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

2008-08-30 Thread Michael Schreifels

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

2008-08-30 Thread Noah Gift

On Sat, Aug 30, 2008 at 6:08 PM, Mike Orr <[EMAIL PROTECTED]> wrote:
>
> On Sat, Aug 30, 2008 at 2:25 PM, Davide Rognoni
> <[EMAIL PROTECTED]> wrote:
>>
>> Not Google but:
>>
>> "Guido just pronounced: Django is the [Python] web framework
>> http://www.cmlenz.net/archives/2006/08/the-python-web-framework
>
> Note that that was written in 2006.  Since then the frameworks and
> template engines have remained pretty much in their same relative
> positions.  An exception is Mako, which I think was first released
> around that time and has now become one of the frontrunners for
> non-XML-style templates.  Jinja also appeared, which I think has a
> Django template-like syntax.
>
> In order for Django and TurboGears to merge, one of them would have to
> give up its founding philosophy.

Additionally, the appengine is a whole new ballgame, so perhaps some
ambitious person, young or old, will read this tutorial:

http://pythonpaste.org/webob/do-it-yourself.html

And write their own appengine specific web framework that becomes the
defacto standard for appengine.  Who knows, maybe writing
webframeworks will become like the Olympics, and every four years a
new champion has a chance to win the Gold medal.  Of course it would
be nice if whoever did this did so in a way in which existing
libraries and work from other frameworks could be reused and or
integrated


>
> --
> Mike Orr <[EMAIL PROTECTED]>
>
> >
>



-- 
Noah Gift
http://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] Unable to make comments on http://appengine-cookbook.appspot.com

2008-08-30 Thread noah.gift

Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 501, in __call__
handler.post(*groups)
  File "/base/data/home/apps/appengine-cookbook/2.4/cookbook.py", line
373, in post
template_values = memcache.get(key)
  File "/base/python_lib/versions/1/google/appengine/api/memcache/
__init__.py", line 384, in get
request.add_key(_key_string(key))
  File "/base/python_lib/versions/1/google/appengine/api/memcache/
__init__.py", line 115, in _key_string
'received %d bytes' % (MAX_KEY_SIZE, len(server_key)))
ValueError: Keys may not be more than 250 bytes in length, received
282 bytes
--~--~-~--~~~---~--~~
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

2008-08-30 Thread Davide Rognoni

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

2008-08-30 Thread Michael Schreifels

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

2008-08-30 Thread Davide Rognoni

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: Unable to make comments on http://appengine-cookbook.appspot.com

2008-08-30 Thread Bill

It's a bit ironic since the cause of that error might be mitigated by
one of the submitted recipes:
http://appengine-cookbook.appspot.com/recipe/mapping-keys-to-urls/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tylgELEgtSZWNpcGVJbmRleCI8YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZ3c1NDRU5oZEdWbmIzSjVJZ2xFWVhSaGMzUnZjbVVNDAsSBlJlY2lwZSI9YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZ3c1NDRU5oZEdWbmIzSjVJZ2xFWVhSaGMzUnZjbVVNMgw
"Might" because using numeric IDs only work if you didn't store the
entities using a key name.

On Aug 30, 3:22 pm, "noah.gift" <[EMAIL PROTECTED]> wrote:
> Traceback (most recent call last):
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 501, in __call__
>     handler.post(*groups)
>   File "/base/data/home/apps/appengine-cookbook/2.4/cookbook.py", line
> 373, in post
>     template_values = memcache.get(key)
>   File "/base/python_lib/versions/1/google/appengine/api/memcache/
> __init__.py", line 384, in get
>     request.add_key(_key_string(key))
>   File "/base/python_lib/versions/1/google/appengine/api/memcache/
> __init__.py", line 115, in _key_string
>     'received %d bytes' % (MAX_KEY_SIZE, len(server_key)))
> ValueError: Keys may not be more than 250 bytes in length, received
> 282 bytes
--~--~-~--~~~---~--~~
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

2008-08-30 Thread Noah Gift

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 Django should probably drop, as it is false.

>
> 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?

Again please reference this URL for many examp

[google-appengine] Re: live debugging is horribly implemented

2008-08-30 Thread Luke Graybill
Alexander,

Thank you so much for pointing me towards the logging module. It has been a
great help, although not in solving the issue mentioned here. I was not
getting any errors in the appengine logs, as my issue was due to malformed
strings in app.yaml. Apparently the dev_appserver isn't as sensitive as the
live server, so it was functioning without complaint, and then DOA in live.

Anyhow, I still think that it's very inconvenient that the logs in the
appengine admin view don't display anything for malformed app.yaml.

Again, thanks for the tip on logging :)

Killarny

On Thu, Aug 28, 2008 at 12:45 AM, Alexander Kojevnikov <
[EMAIL PROTECTED]> wrote:

>
> You should also see the exception info in the log if it wasn't handled
> at all.
>
> On Aug 28, 3:58 pm, Alexander Kojevnikov <[EMAIL PROTECTED]>
> wrote:
> > Do you use the logging module?
> http://code.google.com/appengine/docs/python/logging.html
> >
> > You can try/except your code like this:
> >
> > try:
> > code_that_can_fail()
> > except:
> > logging.error('your_message', exc_info=sys.exc_info())
> >
> > You will then see the full exception information, including the stack
> > trace in the admin console / logs.
> >
> > On Aug 28, 2:31 pm, Killarny <[EMAIL PROTECTED]> wrote:
> >
> > > It is very frustrating that the dev_appserver will validate and run
> > > code that does not run on the live server. Even more frustrating is
> > > that the live server doesn't provide a way to view python traceback to
> > > determine what the actual problem is.
> >
> > > Does anyone know of a technique that I can use to debug my live
> > > server, other than trial and error updates? I'm getting a mysterious
> > > 500 server error with my code, but the code runs perfectly under
> > > dev_appserver!
> >
> > > Frustrated,
> >
> > > Killarny
> >
>

--~--~-~--~~~---~--~~
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: live debugging is horribly implemented

2008-08-30 Thread Alexander Kojevnikov

> Thank you so much for pointing me towards the logging module.

No worries, I too learned about it just a few days ago :)

> Apparently the dev_appserver isn't as sensitive as the
> live server, so it was functioning without complaint, and then DOA in live.
>
> Anyhow, I still think that it's very inconvenient that the logs in the
> appengine admin view don't display anything for malformed app.yaml.

I suggest adding an issue into the bug tracking system with a sample
app.yaml that reproduces this problem. IMO, the SDK should behave
as close as possible to the live version of GAE. And in any case
such errors should be logged.

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



[google-appengine] Re: Weird GQL Query Bug

2008-08-30 Thread bin

I experienced the same problem regarding this problem, then I tried to
iterate over the results and increment the count one by one but this
obviously trigger :

"This request used a high amount of CPU, and was roughly 5.1 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."

is there any workaround that doesn't trigger CPU warning?



On Jul 25, 7:55 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Thanks for the report, I've brought the issue to the attention of our
> engineering team.
>
> -Marzia
>
> On Thu, Jul 24, 2008 at 6:57 AM, Abel Rodriguez <[EMAIL PROTECTED]>
> wrote:
>
> > @afrobeard
>
> > I put my comment to your report, thanks,
>
> > 2008/7/24 afrobeard <[EMAIL PROTECTED]>:
>
> >> @Abel
>
> >> I filed the bug up on:-
>
> >>http://code.google.com/p/googleappengine/issues/detail?id=586&sort=-i...
>
> >> You can raise the number of stars or comment on it there. More stars
> >> means that google should hopefully solve it first.
>
> >> On Jul 24, 4:46 am, Nevin Freeman <[EMAIL PROTECTED]> wrote:
> >> > I don't think this is actually a bug. In the first example you give,
> >> > you never actually preform the query. See:
> >>http://code.google.com/appengine/docs/datastore/creatinggettinganddel...
> >> > (the part under "Executing the Query and Accessing Results")
>
> >> > You can execute the query by calling query_name.fetch(), or by
> >> > iterating over it (AppEngine automatically executes the query). Your
> >> > second example invokes that behavior with the "for a in r:" part. If
> >> > you were to do:
>
> >> > r = db.GqlQuery("SELECT * FROM Mojo WHERE keywords IN :1",
> >> > ['pakistan',
> >> > 'punjab'])
> >> > r.fetch(50)
> >> > print r.count()
>
> >> > I think it might work.
>
> >> > Nevin
>
> >> > On Jul 22, 7:38 am, afrobeard <[EMAIL PROTECTED]> wrote:
>
> >> > > I'm making a model with a string list in it:-
>
> >> > > class Mojo(db.Model):
> >> > >     keywords = db.StringListProperty()
>
> >> > > Then I added an Instance:-
>
> >> > > m = Mojo(keywords = ['punjab','pakistan'])
> >> > > m.put()
>
> >> > > After which I executed the following lines of code:-
>
> >> > > r = db.GqlQuery("SELECT * FROM Mojo WHERE keywords IN :1",['pakistan',
> >> > > 'punjab'])
> >> > > print r.count()
>
> >> > > to which I got the following error message:-
>
> >> > > Traceback (most recent call last):
> >> > >   File "C:\Program Files\Google\google_appengine\google\appengine\ext
> >> > > \admin\__init__.py", line 180, in post
> >> > >     exec(compiled_code, globals())
> >> > >   File "", line 6, in 
> >> > >   File "C:\Program Files\Google\google_appengine\google\appengine\ext
> >> > > \db\__init__.py", line 1276, in count
> >> > >     return self._get_query().Count(limit=limit)
> >> > >   File "C:\Program Files\Google\google_appengine\google\appengine\api
> >> > > \datastore.py", line 951, in Count
> >> > >     self._ToPb(limit=limit), resp)
> >> > >   File "C:\Program Files\Google\google_appengine\google\appengine\api
> >> > > \datastore.py", line 1104, in _ToPb
> >> > >     pb.set_kind(self.__kind.encode('utf-8'))
> >> > > AttributeError: 'NoneType' object has no attribute 'encode'
>
> >> > > However if I execute this :-
>
> >> > > r = db.GqlQuery("SELECT * FROM Mojo WHERE keywords IN :1",['pakistan',
> >> > > 'punjab'])
>
> >> > > for a in r:
> >> > >     print a.keywords
>
> >> > > I get :-
>
> >> > > [u'punjab',u'pakistan']
> >> > > [u'punjab',u'pakistan']
> >> > > [u'punjab',u'pakistan']
>
> >> > > Note:-
> >> > > This is the simplest repro done using the interactive console.
> >> > > The same behavior is also exhibited when everything is put on google's
> >> > > server and not executed from dev_appserver.py
>
> >> > > This shouldn't come up, any idea how we can get Google to correct his
> >> > > behavior ?
>
>
--~--~-~--~~~---~--~~
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] .8 release of appengine-utilities, a better cache and more event triggers

2008-08-30 Thread [EMAIL PROTECTED]

http://gaeutilities.appspot.com/

New cache is the major feature of this release. It uses both the
datastore and memcache much like session. It also has been refactored
to act as a django cache backend. The latest release of django has the
ability to plug in custom caching backends. Also, both cache and
sessions have had multiple event triggers added.

If anyone has any feature requests, this is the week to get them in.
I'm going to be working on documentation before a 1.0beta. Once the
beta goes up, the libraries will be feature frozen and only bugs will
be worked on for a 1.0 release.

changelog

 - cache: A lot of refactoring, preparing it for use as a drop in
cache backend for django.
 - cache: uses memcache in addition to the datastore
 - demo: added memcache stats to the demo
 - demo: updated demo to include deleting a cache object
 - cache: passed the pep8 test
 - event: passed the pep8 test
 - sessions: sessionDelete event changed to sessionDeleted
 - sessions: sessionInititalized, sessionGetFromDatastore,
sessionDataGetFromDatastore, sessionDataPut,
sessionDataGetFromMemcache, sessionMemcacheUpdated events added.
 - cache: cacheInitialized, cacheAdd, cacheSet,
cacheReadFromDatastore, cacheReadFromMemcache, cacheRead, cacheDeleted
events added.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---